github.com/vishvananda/netlink@v1.3.0/xdp_diag.go (about) 1 package netlink 2 3 import "github.com/vishvananda/netlink/nl" 4 5 const SOCK_ANY_COOKIE = uint64(nl.TCPDIAG_NOCOOKIE)<<32 + uint64(nl.TCPDIAG_NOCOOKIE) 6 7 // XDP diagnosis show flag constants to request particular information elements. 8 const ( 9 XDP_SHOW_INFO = 1 << iota 10 XDP_SHOW_RING_CFG 11 XDP_SHOW_UMEM 12 XDP_SHOW_MEMINFO 13 XDP_SHOW_STATS 14 ) 15 16 // XDP diag element constants 17 const ( 18 XDP_DIAG_NONE = iota 19 XDP_DIAG_INFO // when using XDP_SHOW_INFO 20 XDP_DIAG_UID // when using XDP_SHOW_INFO 21 XDP_DIAG_RX_RING // when using XDP_SHOW_RING_CFG 22 XDP_DIAG_TX_RING // when using XDP_SHOW_RING_CFG 23 XDP_DIAG_UMEM // when using XDP_SHOW_UMEM 24 XDP_DIAG_UMEM_FILL_RING // when using XDP_SHOW_UMEM 25 XDP_DIAG_UMEM_COMPLETION_RING // when using XDP_SHOW_UMEM 26 XDP_DIAG_MEMINFO // when using XDP_SHOW_MEMINFO 27 XDP_DIAG_STATS // when using XDP_SHOW_STATS 28 ) 29 30 // https://elixir.bootlin.com/linux/v6.2/source/include/uapi/linux/xdp_diag.h#L21 31 type XDPDiagInfoResp struct { 32 XDPDiagMsg *XDPSocket 33 XDPInfo *XDPInfo 34 }