aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Abeni <pabeni@redhat.com>2021-07-28 18:24:04 +0200
committerDavid S. Miller <davem@davemloft.net>2021-07-29 12:18:12 +0100
commitd504fff0d14a0fd683e9ec1f736c6e1f894667ae (patch)
tree3fd1eae06a0bb5286063d8aed35c11a51db5c531
parentskbuff: allow 'slow_gro' for skb carring sock reference (diff)
downloadlinux-dev-d504fff0d14a0fd683e9ec1f736c6e1f894667ae.tar.xz
linux-dev-d504fff0d14a0fd683e9ec1f736c6e1f894667ae.zip
veth: use skb_prepare_for_gro()
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>
-rw-r--r--drivers/net/veth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c
index 381670c08ba7..50eb43e5bf45 100644
--- 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);