OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf071b
)
veth: use xdp_release_frame for XDP_PASS
author
Jesper Dangaard Brouer
<brouer@redhat.com>
Tue, 18 Jun 2019 13:05:32 +0000
(15:05 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 19 Jun 2019 15:23:13 +0000
(11:23 -0400)
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>
drivers/net/veth.c
patch
|
blob
|
history
diff --git
a/drivers/net/veth.c
b/drivers/net/veth.c
index
52110e5
..
c6916bf
100644
(file)
--- 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: