1 /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 2 /* Do not edit directly, auto-generated from: */ 3 /* Documentation/netlink/specs/netdev.yaml */ 4 /* YNL-GEN uapi header */ 5 6 #ifndef _UAPI_LINUX_NETDEV_H 7 #define _UAPI_LINUX_NETDEV_H 8 9 #define NETDEV_FAMILY_NAME "netdev" 10 #define NETDEV_FAMILY_VERSION 1 11 12 /** 13 * enum netdev_xdp_act 14 * @NETDEV_XDP_ACT_BASIC: XDP feautues set supported by all drivers 15 * (XDP_ABORTED, XDP_DROP, XDP_PASS, XDP_TX) 16 * @NETDEV_XDP_ACT_REDIRECT: The netdev supports XDP_REDIRECT 17 * @NETDEV_XDP_ACT_NDO_XMIT: This feature informs if netdev implements 18 * ndo_xdp_xmit callback. 19 * @NETDEV_XDP_ACT_XSK_ZEROCOPY: This feature informs if netdev supports AF_XDP 20 * in zero copy mode. 21 * @NETDEV_XDP_ACT_HW_OFFLOAD: This feature informs if netdev supports XDP hw 22 * offloading. 23 * @NETDEV_XDP_ACT_RX_SG: This feature informs if netdev implements non-linear 24 * XDP buffer support in the driver napi callback. 25 * @NETDEV_XDP_ACT_NDO_XMIT_SG: This feature informs if netdev implements 26 * non-linear XDP buffer support in ndo_xdp_xmit callback. 27 */ 28 enum netdev_xdp_act { 29 NETDEV_XDP_ACT_BASIC = 1, 30 NETDEV_XDP_ACT_REDIRECT = 2, 31 NETDEV_XDP_ACT_NDO_XMIT = 4, 32 NETDEV_XDP_ACT_XSK_ZEROCOPY = 8, 33 NETDEV_XDP_ACT_HW_OFFLOAD = 16, 34 NETDEV_XDP_ACT_RX_SG = 32, 35 NETDEV_XDP_ACT_NDO_XMIT_SG = 64, 36 37 NETDEV_XDP_ACT_MASK = 127, 38 }; 39 40 enum { 41 NETDEV_A_DEV_IFINDEX = 1, 42 NETDEV_A_DEV_PAD, 43 NETDEV_A_DEV_XDP_FEATURES, 44 45 __NETDEV_A_DEV_MAX, 46 NETDEV_A_DEV_MAX = (__NETDEV_A_DEV_MAX - 1) 47 }; 48 49 enum { 50 NETDEV_CMD_DEV_GET = 1, 51 NETDEV_CMD_DEV_ADD_NTF, 52 NETDEV_CMD_DEV_DEL_NTF, 53 NETDEV_CMD_DEV_CHANGE_NTF, 54 55 __NETDEV_CMD_MAX, 56 NETDEV_CMD_MAX = (__NETDEV_CMD_MAX - 1) 57 }; 58 59 #define NETDEV_MCGRP_MGMT "mgmt" 60 61 #endif /* _UAPI_LINUX_NETDEV_H */ 62