net: fix skb_add_data_nocache() to calc csum correctly
authorWei Yongjun <yjwei@cn.fujitsu.com>
Wed, 6 Apr 2011 18:40:12 +0000 (18:40 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 Apr 2011 06:05:01 +0000 (23:05 -0700)
commit912d398d28b4359c2fb1f3763f1ce4f86de8350e
tree5e5e0c4120ccff8b3885dc2660e37634115c8bac
parent7b1b3afadf33627e707c5038af991ae2ce9b5ac5
net: fix skb_add_data_nocache() to calc csum correctly

commit c6e1a0d12ca7b4f22c58e55a16beacfb7d3d8462 broken the calc
 (net: Allow no-cache copy from user on transmit)
of checksum, which may cause some tcp packets be dropped because
incorrect checksum. ssh does not work under today's net-next-2.6
tree.

Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Acked-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sock.h