]> 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)
commit32bea50b293396a96302ae50c8e11d98162a49db
tree7cfcab8112f848ace6738b699afe630e8430bef9
parent6a5cb8f5565a984c0cb4eeb3e4ed5c6d77cf78f8
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