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)
commitd71c0dc4e961e74143a644f248fc1a39cabf6586
tree7cfcab8112f848ace6738b699afe630e8430bef9
parentb6bd26c4de0141d0736a51487e4ca37390fcae03
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