diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2019-06-18 15:05:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-19 11:23:13 -0400 |
commit | cbf3351067cea1a58862b2c7667b479a358a2071 (patch) | |
tree | f16ad9f0b493a18e06e2ec521e07aaed4d76700b | |
parent | 6bf071bf09d4b2ff3ee8783531e2ce814f0870cb (diff) | |
download | linux-cbf3351067cea1a58862b2c7667b479a358a2071.tar.bz2 |
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>
-rw-r--r-- | drivers/net/veth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 52110e54e621..c6916bf1017b 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -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: |