Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __LINUX_NET_XDP_PRIV_H__
0003 #define __LINUX_NET_XDP_PRIV_H__
0004 
0005 #include <linux/rhashtable.h>
0006 #include <net/xdp.h>
0007 
0008 /* Private to net/core/xdp.c, but used by trace/events/xdp.h */
0009 struct xdp_mem_allocator {
0010     struct xdp_mem_info mem;
0011     union {
0012         void *allocator;
0013         struct page_pool *page_pool;
0014     };
0015     struct rhash_head node;
0016     struct rcu_head rcu;
0017 };
0018 
0019 #endif /* __LINUX_NET_XDP_PRIV_H__ */