]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: fix to limit max vlans supported in certain skews
authorAjit Khaparde <ajitkhaparde@gmail.com>
Tue, 9 Feb 2010 01:34:57 +0000 (01:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2010 20:27:59 +0000 (12:27 -0800)
commit76afaf11505dee5c024433c8faf885088eec5fe2
tree05788518e497b647076fcbb6d8d068b86ae17316
parent0f4ec3bdb17bd2b88272143b3c334d13f638456c
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