aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorJon Maxwell <jmaxwell37@gmail.com>2018-05-25 07:38:29 +1000
committerDavid S. Miller <davem@davemloft.net>2018-05-28 23:02:22 -0400
commitb1d2e4e03f92734ff524f96c4b2287133de7a4a3 (patch)
tree2e83bb3b27f80a5a5b5a1b684e3fb263ef77a1bd /drivers/net
parentnet: phy: realtek: add suspend/resume callbacks for RTL8211B (diff)
downloadlinux-dev-b1d2e4e03f92734ff524f96c4b2287133de7a4a3.tar.xz
linux-dev-b1d2e4e03f92734ff524f96c4b2287133de7a4a3.zip
ifb: fix packets checksum
Fixup the checksum for CHECKSUM_COMPLETE when pulling skbs on RX path. Otherwise we get splats when tc mirred is used to redirect packets to ifb. Before fix: nic: hw csum failure Signed-off-by: Jon Maxwell <jmaxwell37@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ifb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ifb.c b/drivers/net/ifb.c
index 5f2897ec0edc..d345c61d476c 100644
--- a/drivers/net/ifb.c
+++ b/drivers/net/ifb.c
@@ -102,7 +102,7 @@ static void ifb_ri_tasklet(unsigned long _txp)
if (!skb->tc_from_ingress) {
dev_queue_xmit(skb);
} else {
- skb_pull(skb, skb->mac_len);
+ skb_pull_rcsum(skb, skb->mac_len);
netif_receive_skb(skb);
}
}