Ignore:
Timestamp:
2010-07-02T11:55:57+02:00 (6 years ago)
Author:
juhosg
Message:

generic: rtl8366: enable VLAN ingress filtering

File:
1 edited

Legend:

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

    r21985 r22044  
    7070#define RTL8366RB_PHY_NO_OFFSET                 9 
    7171#define RTL8366RB_PHY_NO_MASK                   (0x1f << 9) 
     72 
     73#define RTL8366RB_VLAN_INGRESS_CTRL2_REG        0x037f 
    7274 
    7375/* LED control registers */ 
     
    289291        REG_WR(smi, RTL8366RB_SSCR1, RTL8366RB_PORT_ALL); 
    290292 
     293        /* 
     294         * discard VLAN tagged packets if the port is not a member of 
     295         * the VLAN with which the packets is associated. 
     296         */ 
     297        REG_WR(smi, RTL8366RB_VLAN_INGRESS_CTRL2_REG, RTL8366RB_PORT_ALL); 
     298 
    291299        /* don't drop packets whose DA has not been learned */ 
    292300        REG_RMW(smi, RTL8366RB_SSCR2, RTL8366RB_SSCR2_DROP_UNKNOWN_DA, 0); 
Note: See TracChangeset for help on using the changeset viewer.