From: Paolo Abeni Date: Wed, 28 Jul 2021 16:24:04 +0000 (+0200) Subject: veth: use skb_prepare_for_gro() X-Git-Tag: accepted/tizen/unified/20230118.172025~6527^2~362^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d504fff0d14a0fd683e9ec1f736c6e1f894667ae;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 381670c..50eb43e 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);