be2net: fix to limit max vlans supported in certain skews
commit82903e4bfca1578336a91c0c17839b484c12295d
authorAjit Khaparde <ajitkhaparde@gmail.com>
Tue, 9 Feb 2010 01:34:57 +0000 (9 01:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2010 20:27:59 +0000 (12 12:27 -0800)
tree05788518e497b647076fcbb6d8d068b86ae17316
parent205859a2ff922d0587a819b08007398cbd0a6a30
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>
drivers/net/benet/be.h
drivers/net/benet/be_main.c