]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
smsc95xx: Fix tx checksum offload for small packets
authorSteve Glendinning <steve.glendinning@smsc.com>
Fri, 19 Mar 2010 05:18:41 +0000 (22:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2010 05:18:41 +0000 (22:18 -0700)
commit11bc3088373e913f165a8652601c6f8b8dc4aea2
tree5a82487caf4de60681ac0bd743bfeba4851254b8
parent0ecad5a262923967147e2d1725e277a2a5fbcdd4
smsc95xx: Fix tx checksum offload for small packets

TX checksum offload does not work properly when transmitting
UDP packets with 0, 1 or 2 bytes of data.  This patch works
around the problem by calculating checksums for these packets
in the driver.

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