summaryrefslogtreecommitdiffstats
path: root/drivers/net/ifb.c
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/ifb.c
parent049ff57a2aa6ead1daf16b4d11da44ed17bdb0b5 (diff)
downloadlinux-b1d2e4e03f92734ff524f96c4b2287133de7a4a3.tar.bz2
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/ifb.c')
-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);
}
}