xdp_priv.h 427 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __LINUX_NET_XDP_PRIV_H__
  3. #define __LINUX_NET_XDP_PRIV_H__
  4. #include <linux/rhashtable.h>
  5. #include <net/xdp.h>
  6. /* Private to net/core/xdp.c, but used by trace/events/xdp.h */
  7. struct xdp_mem_allocator {
  8. struct xdp_mem_info mem;
  9. union {
  10. void *allocator;
  11. struct page_pool *page_pool;
  12. };
  13. struct rhash_head node;
  14. struct rcu_head rcu;
  15. };
  16. #endif /* __LINUX_NET_XDP_PRIV_H__ */