projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
049ff57
)
ifb: fix packets checksum
author
Jon Maxwell
<jmaxwell37@gmail.com>
Thu, 24 May 2018 21:38:29 +0000
(07:38 +1000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 29 May 2018 03:02:22 +0000
(23:02 -0400)
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>
drivers/net/ifb.c
patch
|
blob
|
history
diff --git
a/drivers/net/ifb.c
b/drivers/net/ifb.c
index 5f2897ec0edc516fcd846d0384f71888641d9b05..d345c61d476cd49a28a143e4578ac2d8429462c2 100644
(file)
--- 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);
}
}