mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
2f0921262b
commit
1d0dc06930
3 changed files with 47 additions and 0 deletions
13
include/net/netns/xdp.h
Normal file
13
include/net/netns/xdp.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
#ifndef __NETNS_XDP_H__
|
||||
#define __NETNS_XDP_H__
|
||||
|
||||
#include <linux/rculist.h>
|
||||
#include <linux/mutex.h>
|
||||
|
||||
struct netns_xdp {
|
||||
struct mutex lock;
|
||||
struct hlist_head list;
|
||||
};
|
||||
|
||||
#endif /* __NETNS_XDP_H__ */
|
Loading…
Add table
Add a link
Reference in a new issue