tg3: Re-inline VLAN tags when appropriate
authorMatt Carlson <mcarlson@broadcom.com>
Mon, 12 Apr 2010 06:58:28 +0000 (06:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2010 09:25:45 +0000 (02:25 -0700)
commit9dc7a1134919bda8951bf5909fb79c14defb8317
tree29731e42632eff36276aa2726f1fcbd423532489
parentd2757fc4076118e13180e91f02c3c52659be3d9d
tg3: Re-inline VLAN tags when appropriate

The tg3 driver is written so that VLAN tagged packets can be accepted,
even if CONFIG_VLAN_8021Q or CONFIG_VLAN_8021Q_MODULE is not defined.
(Think raw interfaces.)  If the device has ASF support enabled, the
firmware requires the driver to enable VLAN tag stripping.  If VLAN
tagging is not explicitly supported by the kernel and ASF is enabled,
the driver will have to reinject the VLAN tag back into the packet
stream.

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