projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e10da5
)
veth: use skb_prepare_for_gro()
author
Paolo Abeni
<pabeni@redhat.com>
Wed, 28 Jul 2021 16:24:04 +0000
(18:24 +0200)
committer
David S. Miller
<davem@davemloft.net>
Thu, 29 Jul 2021 11:18:12 +0000
(12:18 +0100)
Leveraging the previous patch we can now avoid orphaning the
skb in the veth gro path, allowing correct backpressure.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c
patch
|
blob
|
history
diff --git
a/drivers/net/veth.c
b/drivers/net/veth.c
index
381670c
..
50eb43e
100644
(file)
--- a/
drivers/net/veth.c
+++ b/
drivers/net/veth.c
@@
-713,7
+713,7
@@
static struct sk_buff *veth_xdp_rcv_skb(struct veth_rq *rq,
int mac_len, delta, off;
struct xdp_buff xdp;
- skb_
orphan_partial
(skb);
+ skb_
prepare_for_gro
(skb);
rcu_read_lock();
xdp_prog = rcu_dereference(rq->xdp_prog);