brcm2708: update to latest patches from the RPi foundation
[openwrt/staging/lynxis.git] / target / linux / brcm2708 / patches-4.14 / 950-0317-ifb-fix-packets-checksum.patch
1 From 258289e9f25dae86004eea357177ac9c372addc7 Mon Sep 17 00:00:00 2001
2 From: Jon Maxwell <jmaxwell37@gmail.com>
3 Date: Fri, 25 May 2018 07:38:29 +1000
4 Subject: [PATCH 317/454] ifb: fix packets checksum
5
6 commit b1d2e4e03f92734ff524f96c4b2287133de7a4a3 upstream.
7
8 Fixup the checksum for CHECKSUM_COMPLETE when pulling skbs on RX path.
9 Otherwise we get splats when tc mirred is used to redirect packets to ifb.
10
11 Before fix:
12
13 nic: hw csum failure
14
15 Signed-off-by: Jon Maxwell <jmaxwell37@gmail.com>
16 Signed-off-by: David S. Miller <davem@davemloft.net>
17 ---
18 drivers/net/ifb.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/net/ifb.c
22 +++ b/drivers/net/ifb.c
23 @@ -102,7 +102,7 @@ static void ifb_ri_tasklet(unsigned long
24 if (!skb->tc_from_ingress) {
25 dev_queue_xmit(skb);
26 } else {
27 - skb_pull(skb, skb->mac_len);
28 + skb_pull_rcsum(skb, skb->mac_len);
29 netif_receive_skb(skb);
30 }
31 }