1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __LINUX_NET_XDP_PRIV_H__ 2 #ifndef __LINUX_NET_XDP_PRIV_H__ 3 #define __LINUX_NET_XDP_PRIV_H__ 3 #define __LINUX_NET_XDP_PRIV_H__ 4 4 5 #include <linux/rhashtable.h> 5 #include <linux/rhashtable.h> 6 #include <net/xdp.h> 6 #include <net/xdp.h> 7 7 8 /* Private to net/core/xdp.c, but used by trac 8 /* Private to net/core/xdp.c, but used by trace/events/xdp.h */ 9 struct xdp_mem_allocator { 9 struct xdp_mem_allocator { 10 struct xdp_mem_info mem; 10 struct xdp_mem_info mem; 11 union { 11 union { 12 void *allocator; 12 void *allocator; 13 struct page_pool *page_pool; 13 struct page_pool *page_pool; 14 }; 14 }; 15 struct rhash_head node; 15 struct rhash_head node; 16 struct rcu_head rcu; 16 struct rcu_head rcu; 17 }; 17 }; 18 18 19 #endif /* __LINUX_NET_XDP_PRIV_H__ */ 19 #endif /* __LINUX_NET_XDP_PRIV_H__ */ 20 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.