bnx2: Reinsert VLAN tag when necessary.
authorMichael Chan <mchan@broadcom.com>
Thu, 14 Aug 2008 22:30:14 +0000 (15:30 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Aug 2008 22:30:14 +0000 (15:30 -0700)
commitf22828e89f4f3e8c74ca7ffa69b0410afbd80eee
tree22f0627b6b65a905fc585f497ec9f9ae38157956
parent729b85cd47f4e63657505cb5c6af104e19250805
bnx2: Reinsert VLAN tag when necessary.

In certain cases when ASF or other management firmware is running, the
chip may be configured to always strip out the VLAN tag even when
VLAN acceleration is not enabled.  This causes some VLAN tagged
packets to be received by the host stack without any knowledge that
the original packet was VLAN tagged.

We fix this by re-inserting the VLAN tag into the packet when necessary.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c