Revert "net: Handle CHECKSUM_COMPLETE more adequately in pskb_trim_rcsum()."
authorDavid S. Miller <davem@davemloft.net>
Mon, 2 Dec 2013 22:26:05 +0000 (17:26 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Dec 2013 22:26:05 +0000 (17:26 -0500)
commit7ce5a27f2ef8ed4f8f892f46391f933c0e2ac0f1
tree0841c7f73548bfecd44049497a0833765431793c
parent28e24c62ab3062e965ef1b3bcc244d50aee7fa85
Revert "net: Handle CHECKSUM_COMPLETE more adequately in pskb_trim_rcsum()."

This reverts commit 018c5bba052b3a383d83cf0c756da0e7bc748397.

It causes regressions for people using chips driven by the sungem
driver.  Suspicion is that the skb->csum value isn't being adjusted
properly.

The change also has a bug in that if __pskb_trim() fails, we'll leave
a corruped skb->csum value in there.  We would really need to revert
it to it's original value in that case.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h