pch_gbe: fix ip_summed checksum reporting on rx
commitf13514fe977c6c745e49fee624332dd6187e9ffa
authorVeaceslav Falico <vfalico@redhat.com>
Mon, 25 Mar 2013 22:26:21 +0000 (25 22:26 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Apr 2013 02:20:15 +0000 (10 03:20 +0100)
treefbc9fd1254f624aff5397fee1c7b2d1d965ef2e9
parentd94b6028164b17b858e6e64a12a36e433787e898
pch_gbe: fix ip_summed checksum reporting on rx

[ Upstream commit 76a0e68129d7d24eb995a6871ab47081bbfa0acc ]

skb->ip_summed should be CHECKSUM_UNNECESSARY when the driver reports that
checksums were correct and CHECKSUM_NONE in any other case. They're
currently placed vice versa, which breaks the forwarding scenario. Fix it
by placing them as described above.

Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c