Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-block.git] / include / net / xdp_priv.h
CommitLineData
f033b688
JDB
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __LINUX_NET_XDP_PRIV_H__
3#define __LINUX_NET_XDP_PRIV_H__
4
5#include <linux/rhashtable.h>
6
7/* Private to net/core/xdp.c, but used by trace/events/xdp.h */
8struct xdp_mem_allocator {
9 struct xdp_mem_info mem;
10 union {
11 void *allocator;
12 struct page_pool *page_pool;
13 struct zero_copy_allocator *zc_alloc;
14 };
f033b688
JDB
15 struct rhash_head node;
16 struct rcu_head rcu;
f033b688
JDB
17};
18
19#endif /* __LINUX_NET_XDP_PRIV_H__ */