aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/benet/be.h
diff options
context:
space:
mode:
authorAjit Khaparde <ajitkhaparde@gmail.com>2010-02-08 20:34:57 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-12 15:27:59 -0500
commit82903e4bfca1578336a91c0c17839b484c12295d (patch)
tree05788518e497b647076fcbb6d8d068b86ae17316 /drivers/net/benet/be.h
parent205859a2ff922d0587a819b08007398cbd0a6a30 (diff)
be2net: fix to limit max vlans supported in certain skews
In certain skews the ASIC can support only 16 vlans per interface. Once the limit is crossed, the ASIC is programmed in vlan promiscuous mode. Switch off the vlan promiscuous mode once the number of vlans falls back to the max vlans supported. Signed-off-by: Ajit Khaparde <ajitk@serverengines.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be.h')
-rw-r--r--drivers/net/benet/be.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/benet/be.h b/drivers/net/benet/be.h
index 242013157f20..476a5c455794 100644
--- a/drivers/net/benet/be.h
+++ b/drivers/net/benet/be.h
@@ -250,7 +250,8 @@ struct be_adapter {
250 bool rx_post_starved; /* Zero rx frags have been posted to BE */ 250 bool rx_post_starved; /* Zero rx frags have been posted to BE */
251 251
252 struct vlan_group *vlan_grp; 252 struct vlan_group *vlan_grp;
253 u16 num_vlans; 253 u16 vlans_added;
254 u16 max_vlans; /* Number of vlans supported */
254 u8 vlan_tag[VLAN_GROUP_ARRAY_LEN]; 255 u8 vlan_tag[VLAN_GROUP_ARRAY_LEN];
255 struct be_dma_mem mc_cmd_mem; 256 struct be_dma_mem mc_cmd_mem;
256 257