- Timestamp:
- 04/01/12 04:18:18 (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/linux/universal/linux-3.2/drivers/net/ethernet/ag71xx/ag71xx_ar7240.c
r18801 r18886 291 291 u8 ver; 292 292 bool vlan; 293 bool init; 293 294 u16 vlan_id[AR7240_MAX_VLANS]; 294 295 u8 vlan_table[AR7240_MAX_VLANS]; … … 864 865 865 866 memset(portmask, 0, sizeof(portmask)); 866 if ( as->vlan) {867 if (!as->init) { 867 868 /* calculate the port destination masks and load vlans 868 869 * into the vlan translation unit */ … … 907 908 { 908 909 struct ar7240sw *as = sw_to_ar7240(dev); 910 as->init = false; 909 911 ar7240sw_reset(as); 910 912 return 0; … … 1095 1097 1096 1098 as->vlan_table[0] = ar7240sw_port_mask_all(as); 1099 as->init = true; 1097 1100 1098 1101 return as;
Note: See TracChangeset
for help on using the changeset viewer.
