Subject: Re: [bpf-next V2 PATCH 11/14] virtio_net: setup xdp_rxq_info

From: Jesper Dangaard Brouer <[email-masked]>
Date: Tue, 26 Dec 2017 12:20:50 +0100

On Fri, 22 Dec 2017 18:12:31 +0100
Jesper Dangaard Brouer <[email-masked]> wrote:

> The virtio_net driver doesn't dynamically change the RX-ring queue
> layout and backing pages, but instead reject XDP setup if all the
> conditions for XDP is not meet.  Thus, the xdp_rxq_info also remains
> fairly static.  This allow us to simply add the reg/unreg to
> net_device open/close functions.
> 
> Driver hook points for xdp_rxq_info:
>  * reg  : virtnet_open
>  * unreg: virtnet_close
> 
> Cc: "Michael S. Tsirkin" <[email-masked]>
> Cc: Jason Wang <[email-masked]>
> Cc: [email-masked]
> Signed-off-by: Jesper Dangaard Brouer <[email-masked]>
> ---
>  drivers/net/virtio_net.c |   12 +++++++++++-

Found a bug while testing this... I forgot to update receive_mergeable() too.

I'll send a V3

-- 
Best regards,
  Jesper Dangaard Brouer
  MSc.CS, Principal Kernel Engineer at Red Hat
  LinkedIn: http://www.linkedin.com/in/brouer