Changeset 22856


Ignore:
Timestamp:
2010-08-31T21:04:02+02:00 (6 years ago)
Author:
nbd
Message:

rtl8366_smi: when setting VLAN ports, always initialize the PVID to ensure that the VLAN MC entry gets allocated. Fixes problems with tagged-only ports (#7795)

File:
1 edited

Legend:

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

    r22703 r22856  
    947947        u32 member = 0; 
    948948        u32 untag = 0; 
     949        int err; 
    949950        int i; 
    950951 
     
    958959                if (!(port->flags & BIT(SWITCH_PORT_FLAG_TAGGED))) 
    959960                        untag |= BIT(port->id); 
     961 
     962                /* 
     963                 * To ensure that we have a valid MC entry for this VLAN, 
     964                 * initialize the port VLAN ID here. 
     965                 */ 
     966                err = rtl8366_set_pvid(smi, port->id, val->port_vlan); 
     967                if (err < 0) 
     968                        return err; 
    960969        } 
    961970 
Note: See TracChangeset for help on using the changeset viewer.