blob: a2d58b1a12e155249964f928f912d17fba26b0a5 [file] [log] [blame]
Jesper Dangaard Brouerf033b682019-06-18 15:05:58 +02001/* 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;
Jesper Dangaard Brouerf033b682019-06-18 15:05:58 +020013 };
Jesper Dangaard Brouerf033b682019-06-18 15:05:58 +020014 struct rhash_head node;
15 struct rcu_head rcu;
Jesper Dangaard Brouerf033b682019-06-18 15:05:58 +020016};
17
18#endif /* __LINUX_NET_XDP_PRIV_H__ */