pch_gbe: fix ip_summed checksum reporting on rx
Subsystems (2)
PATCH 1/1 pch_gbe: fix ip_summed checksum reporting on rx
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 <[email protected]>
--- .../net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c +2 -2
@@ -1726,9 +1726,9 @@ pch_gbe_clean_rx(struct pch_gbe_adapter *adapter, skb->protocol =eth_type_trans (skb, netdev);if (tcp_ip_status &PCH_GBE_RXD_ACC_STAT_TCPIPOK ) - skb->ip_summed =CHECKSUM_NONE ; -else skb->ip_summed =CHECKSUM_UNNECESSARY ; +else + skb->ip_summed =CHECKSUM_NONE ;napi_gro_receive (&adapter->napi, skb); (*work_done)++;
Signature · 1 line
1.7.1
David Miller
maintainerFrom: Veaceslav Falico <[email protected]>
Date: Tue, 26 Mar 2013 09:26:21 +0100
Quoted 6 lines
skb->ip_summedshould beCHECKSUM_UNNECESSARYwhen the driver reports that checksums were correct andCHECKSUM_NONEin 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 <[email protected]>
Applied and queued up for -stable, thanks.