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 */
6 #ifndef _UAPI_LINUX_NETDEV_H
7 #define _UAPI_LINUX_NETDEV_H
9 #define NETDEV_FAMILY_NAME "netdev"
10 #define NETDEV_FAMILY_VERSION 1
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
21 * @NETDEV_XDP_ACT_HW_OFFLOAD: This feature informs if netdev supports XDP hw
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.
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,
39 NETDEV_A_DEV_IFINDEX = 1,
41 NETDEV_A_DEV_XDP_FEATURES,
44 NETDEV_A_DEV_MAX = (__NETDEV_A_DEV_MAX - 1)
48 NETDEV_CMD_DEV_GET = 1,
49 NETDEV_CMD_DEV_ADD_NTF,
50 NETDEV_CMD_DEV_DEL_NTF,
51 NETDEV_CMD_DEV_CHANGE_NTF,
54 NETDEV_CMD_MAX = (__NETDEV_CMD_MAX - 1)
57 #define NETDEV_MCGRP_MGMT "mgmt"
59 #endif /* _UAPI_LINUX_NETDEV_H */