veth: use xdp_release_frame for XDP_PASS
authorJesper Dangaard Brouer <brouer@redhat.com>
Tue, 18 Jun 2019 13:05:32 +0000 (15:05 +0200)
committerDavid 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

index 52110e54e621fdd45ebab5560949f55c494053f6..c6916bf1017bcbac5a3251b3916fb99cd21b0c52 100644 (file)
@@ -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: