]> git.ipfire.org Git - people/arne_f/kernel.git/commit
pch_gbe: fix ip_summed checksum reporting on rx
authorVeaceslav Falico <vfalico@redhat.com>
Mon, 25 Mar 2013 22:26:21 +0000 (22:26 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 17:16:54 +0000 (10:16 -0700)
commit3beceaf660dffbe11f5a5606ea379666eb9eaad0
tree914b76307216585ba9087b8c41ad433cafb05cd7
parentcb241ae254e1f4ee9a9f07e4a452b12cd674fffc
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/pch_gbe/pch_gbe_main.c