net: move struct netdev_rx_queue out of netdevice.h
authorJakub Kicinski <kuba@kernel.org>
Thu, 3 Aug 2023 01:02:29 +0000 (18:02 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Thu, 3 Aug 2023 15:38:07 +0000 (08:38 -0700)
commit49e47a5b6145d86c30022fe0e949bbb24bae28ba
tree4bf14fb4971b2e6654ab08a30d7fa554c9ea37ea
parent92272ec4107ef4f826b694a1338562c007e09821
net: move struct netdev_rx_queue out of netdevice.h

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>
Link: https://lore.kernel.org/r/20230803010230.1755386-3-kuba@kernel.org
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
drivers/net/virtio_net.c
include/linux/netdevice.h
include/net/netdev_rx_queue.h [new file with mode: 0644]
net/bpf/test_run.c
net/core/dev.c
net/core/net-sysfs.c
net/xdp/xsk.c