]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Don't modify ip header fields when doing GSO
authorMichael Chan <mchan@broadcom.com>
Mon, 12 May 2014 03:22:53 +0000 (20:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 May 2014 22:38:51 +0000 (18:38 -0400)
commitfda99d1532625a4bbaa02a894ae20d631b80239c
tree7cfcab8112f848ace6738b699afe630e8430bef9
parentd7c3df1856254b11380e45ecb5e980df3bb1bbf6
tg3: Don't modify ip header fields when doing GSO

tg3 uses GSO as workaround if the hardware cannot perform TSO on certain
packets.  We should not modify the ip header fields if we do GSO on the
packet.  It happens to work by accident because GSO recalculates the IP
checksum and IP total length.

Also fix the tg3_start_xmit comment to reflect that this is the only
xmit function for all devices.

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