]> git.baikalelectronics.ru Git - kernel.git/commit
smsc95xx: fix tx checksum offload for big endian
authorSteve Glendinning <steve.glendinning@shawell.net>
Fri, 2 Nov 2012 00:44:20 +0000 (00:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2012 19:29:55 +0000 (15:29 -0400)
commitfb2bb7f80f6a0f1c7c20497161d92b8545347720
tree2f63cd23527f8b24dc508eb353a4271beed435b7
parent6cdc4dacb4ce8531ec4f6b675ef6932b7024f934
smsc95xx: fix tx checksum offload for big endian

8f30619 introduced tx checksum offload support for smsc95xx,
and enabled it by default. This feature doesn't take
endianness into account, so causes most tx to fail on
those platforms.

This patch fixes the problem fully by adding the missing
conversion.

An alternate workaround is to disable TX checksum offload
on those platforms. The cpu impact of this feature is very low.

Signed-off-by: Steve Glendinning <steve.glendinning@shawell.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c