mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 01:00:58 +07:00
veth: use xdp_release_frame for XDP_PASS
Like cpumap use xdp_release_frame() when an xdp_frame got converted into an SKB and send towars the network stack. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6bf071bf09
commit
cbf3351067
@ -547,6 +547,7 @@ static struct sk_buff *veth_xdp_rcv_one(struct veth_rq *rq,
|
||||
goto err;
|
||||
}
|
||||
|
||||
xdp_release_frame(frame);
|
||||
xdp_scrub_frame(frame);
|
||||
skb->protocol = eth_type_trans(skb, rq->dev);
|
||||
err:
|
||||
|
Loading…
Reference in New Issue
Block a user