]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: fix offloaded tx checksum for small packets.
authorfrançois romieu <romieu@fr.zoreil.com>
Sat, 18 May 2013 01:24:46 +0000 (01:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 May 2013 07:01:07 +0000 (00:01 -0700)
commitcce027ca23fb3fd437c96587832a530d83dab48f
tree4ba19fa8459f53280b1c70b85c67b614d141ad0e
parenta970d1d0ead575a3423f6466ac0995c8e836da43
r8169: fix offloaded tx checksum for small packets.

8168evl offloaded checksums are wrong since commit
f14e1cb1c68ddb91db6d246fd584142d7097b2e1 ("r8169: fix 8168evl frame padding.")
pads small packets to 60 bytes (without ethernet checksum). Typical symptoms
appear as UDP checksums which are wrong by the count of added bytes.

It isn't worth compensating. Let the driver checksum.

Due to the skb length changes, TSO code is moved before the Tx descriptor gets
written.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Tested-by: Holger Hoffstätte <holger.hoffstaette@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c