Skip to content

Commit 661b8d1

Browse files
magnus-karlssonborkmann
authored andcommitted
net: add umem reference in netdev{_rx}_queue
These references to the umem will be used to store information on what kind of AF_XDP umem that is bound to a queue id, if any. Signed-off-by: Magnus Karlsson <magnus.karlsson@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
1 parent 7ccc4f1 commit 661b8d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/linux/netdevice.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,9 @@ struct netdev_queue {
609609

610610
/* Subordinate device that the queue has been assigned to */
611611
struct net_device *sb_dev;
612+
#ifdef CONFIG_XDP_SOCKETS
613+
struct xdp_umem *umem;
614+
#endif
612615
/*
613616
* write-mostly part
614617
*/
@@ -738,6 +741,9 @@ struct netdev_rx_queue {
738741
struct kobject kobj;
739742
struct net_device *dev;
740743
struct xdp_rxq_info xdp_rxq;
744+
#ifdef CONFIG_XDP_SOCKETS
745+
struct xdp_umem *umem;
746+
#endif
741747
} ____cacheline_aligned_in_smp;
742748

743749
/*

0 commit comments

Comments
 (0)