tg3: Work around HW/FW limitations with vlan encapsulated frames
authorVlad Yasevich <vyasevich@gmail.com>
Thu, 18 Sep 2014 14:31:17 +0000 (10:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Sep 2014 18:20:23 +0000 (14:20 -0400)
commit476c18850c6cbaa3f2bb661ae9710645081563b9
treecd83fc62f9b3fa92f22e7f856ba66d20106905ed
parent07d92d5cc977a7fe1e683e1d4a6f723f7f2778cb
tg3: Work around HW/FW limitations with vlan encapsulated frames

TG3 appears to have an issue performing TSO and checksum offloading
correclty when the frame has been vlan encapsulated (non-accelrated).
In these cases, tcp checksum is not correctly updated.

This patch attempts to work around this issue.  After the patch,
802.1ad vlans start working correctly over tg3 devices.

CC: Prashant Sreedharan <prashant@broadcom.com>
CC: Michael Chan <mchan@broadcom.com>
Signed-off-by: Vladislav Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c