summaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorBjörn Töpel <bjorn.topel@intel.com>2019-01-24 13:59:37 -0500
committerDaniel Borkmann <daniel@iogearbox.net>2019-01-24 19:50:03 -0500
commit1d0dc06930a917eaca4156193c6c49f798b95ce7 (patch)
tree135d2cef69bf73b12ed394b63a0a57fa8929b3c8 /include/net/netns
parent2f0921262ba943fe9d9f59037a033927d8c4789b (diff)
net: xsk: track AF_XDP sockets on a per-netns list
Track each AF_XDP socket in a per-netns list. This will be used later by the sock_diag interface for querying sockets from userspace. Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/xdp.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/net/netns/xdp.h b/include/net/netns/xdp.h
new file mode 100644
index 000000000000..e5734261ba0a
--- /dev/null
+++ b/include/net/netns/xdp.h
@@ -0,0 +1,13 @@
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __NETNS_XDP_H__
3#define __NETNS_XDP_H__
4
5#include <linux/rculist.h>
6#include <linux/mutex.h>
7
8struct netns_xdp {
9 struct mutex lock;
10 struct hlist_head list;
11};
12
13#endif /* __NETNS_XDP_H__ */