Changeset 29719


Ignore:
Timestamp:
2012-01-12T11:15:11+01:00 (6 years ago)
Author:
nbd
Message:

ar8216: use vlan configuration for connecting ports (forced to be untagged) even with vlan_enable=0, but keep them isolated before the switch has been configured
this makes enable_vlan=0 practical for vlan passthrough

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/ar8216.c

    r29718 r29719  
    4848        bool port4_phy; 
    4949        char buf[80]; 
     50 
     51        bool init; 
    5052 
    5153        /* all fields below are cleared on reset */ 
     
    551553 
    552554        memset(portmask, 0, sizeof(portmask)); 
    553         if (priv->vlan) { 
     555        if (!priv->init) { 
    554556                /* calculate the port destination masks and load vlans 
    555557                 * into the vlan translation unit */ 
     
    878880        } 
    879881 
     882        priv->init = true; 
     883 
    880884        if (priv->chip == AR8316) { 
    881885                ret = ar8316_hw_init(priv); 
     
    912916                dev->netdev_ops = &priv->ndo; 
    913917        } 
     918 
     919        priv->init = false; 
    914920 
    915921done: 
Note: See TracChangeset for help on using the changeset viewer.