Re: [PATCH bpf-next v2 2/3] net: move struct netdev_rx_queue out of netdevice.h

Jesper Dangaard Brouer
2023-08-03T14:24:32Z

On 03/08/2023 03.02, Jakub Kicinski wrote:
> struct netdev_rx_queue is touched in only a few places
> and having it defined in netdevice.h brings in the dependency
> on xdp.h, because struct xdp_rxq_info gets embedded in
> struct netdev_rx_queue.
>
> In prep for removal of xdp.h from netdevice.h move all
> the netdev_rx_queue stuff to a new header.
>
> We could technically break the new header up to avoid
> the sysfs.h include but it's so rarely included it
> doesn't seem to be worth it at this point.
>
> Reviewed-by: Amritha Nambiar<amritha.nambiar@intel.com>
> Signed-off-by: Jakub Kicinski<kuba@kernel.org>
> ---

Acked-by: Jesper Dangaard Brouer <hawk@kernel.org>