1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * xdp_diag: interface for query/monitor XDP sockets
4 * Copyright(c) 2019 Intel Corporation.
7 #ifndef _LINUX_XDP_DIAG_H
8 #define _LINUX_XDP_DIAG_H
10 #include <linux/types.h>
18 __u32 xdiag_cookie[2];
26 __u32 xdiag_cookie[2];
29 #define XDP_SHOW_INFO (1 << 0) /* Basic information */
30 #define XDP_SHOW_RING_CFG (1 << 1)
31 #define XDP_SHOW_UMEM (1 << 2)
32 #define XDP_SHOW_MEMINFO (1 << 3)
33 #define XDP_SHOW_STATS (1 << 4)
42 XDP_DIAG_UMEM_FILL_RING,
43 XDP_DIAG_UMEM_COMPLETION_RING,
49 #define XDP_DIAG_MAX (__XDP_DIAG_MAX - 1)
51 struct xdp_diag_info {
56 struct xdp_diag_ring {
57 __u32 entries; /*num descs */
60 #define XDP_DU_F_ZEROCOPY (1 << 0)
62 struct xdp_diag_umem {
74 struct xdp_diag_stats {
78 __u64 n_fill_ring_empty;
80 __u64 n_tx_ring_empty;
83 #endif /* _LINUX_XDP_DIAG_H */