mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
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>
This commit is contained in:
parent
5e10da5385
commit
d504fff0d1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user