Re: [PATCH net] virtio-net: re enable XDP_REDIRECT for mergeable buffer

From: Jason Wang
Date: Fri Mar 02 2018 - 04:28:02 EST




On 2018å03æ02æ 15:05, Jesper Dangaard Brouer wrote:
On Fri, 2 Mar 2018 14:25:29 +0800
Jason Wang <jasowang@xxxxxxxxxx> wrote:

@@ -770,6 +774,19 @@ static struct sk_buff *receive_mergeable(struct net_device *dev,
goto err_xdp;
rcu_read_unlock();
goto xdp_xmit;
+ case XDP_REDIRECT:
+ err = xdp_do_redirect(dev, &xdp, xdp_prog);
+ if (err) {
+ trace_xdp_exception(vi->dev, xdp_prog, act);
Do not add a trace_xdp_exception here... this is handled inside
xdp_do_redirect() invocation.



Right, let me post V2.

Thanks