mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07: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__ */
|