mirror of
https://github.com/torvalds/linux.git
synced 2024-11-25 13:41:51 +00:00
1d0dc06930
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>
14 lines
239 B
C
14 lines
239 B
C
/* 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__ */
|