Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jon Maxwell and committed by
David S. Miller
b1d2e4e0 049ff57a

+1 -1
+1 -1
drivers/net/ifb.c
··· 102 102 if (!skb->tc_from_ingress) { 103 103 dev_queue_xmit(skb); 104 104 } else { 105 - skb_pull(skb, skb->mac_len); 105 + skb_pull_rcsum(skb, skb->mac_len); 106 106 netif_receive_skb(skb); 107 107 } 108 108 }