diff options
author | Paolo Abeni <pabeni@redhat.com> | 2021-07-28 18:24:04 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-29 12:18:12 +0100 |
commit | d504fff0d14a0fd683e9ec1f736c6e1f894667ae (patch) | |
tree | 3fd1eae06a0bb5286063d8aed35c11a51db5c531 /drivers/net/veth.c | |
parent | 5e10da5385d20c4bae587bc2921e5fdd9655d5fc (diff) | |
download | linux-d504fff0d14a0fd683e9ec1f736c6e1f894667ae.tar.gz linux-d504fff0d14a0fd683e9ec1f736c6e1f894667ae.tar.bz2 linux-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>
Diffstat (limited to 'drivers/net/veth.c')
-rw-r--r-- | drivers/net/veth.c | 2 |
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); |