aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMagnus Karlsson <magnus.karlsson@intel.com>2018-10-01 14:51:33 +0200
committerDaniel Borkmann <daniel@iogearbox.net>2018-10-05 09:31:00 +0200
commit661b8d1b0e3a745e25f05adef2ebd00d830eeea7 (patch)
tree97bad9994df284cd9ef1ae1fec8e29336632765a /include
parentbpf: typo fix in Documentation/networking/af_xdp.rst (diff)
downloadlinux-dev-661b8d1b0e3a745e25f05adef2ebd00d830eeea7.tar.xz
linux-dev-661b8d1b0e3a745e25f05adef2ebd00d830eeea7.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 1cbbf77a685f..8318f79586c2 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -609,6 +609,9 @@ struct netdev_queue {
/* Subordinate device that the queue has been assigned to */
struct net_device *sb_dev;
+#ifdef CONFIG_XDP_SOCKETS
+ struct xdp_umem *umem;
+#endif
/*
* write-mostly part
*/
@@ -738,6 +741,9 @@ struct netdev_rx_queue {
struct kobject kobj;
struct net_device *dev;
struct xdp_rxq_info xdp_rxq;
+#ifdef CONFIG_XDP_SOCKETS
+ struct xdp_umem *umem;
+#endif
} ____cacheline_aligned_in_smp;
/*