Christopher Ferris | b7cef6d | 2023-05-09 19:04:15 +0000 | [diff] [blame^] | 1 | /**************************************************************************** |
| 2 | **************************************************************************** |
| 3 | *** |
| 4 | *** This header was automatically generated from a Linux kernel header |
| 5 | *** of the same name, to make information necessary for userspace to |
| 6 | *** call into the kernel available to libc. It contains only constants, |
| 7 | *** structures, and macros generated from the original header, and thus, |
| 8 | *** contains no copyrightable information. |
| 9 | *** |
| 10 | *** To edit the content of this header, modify the corresponding |
| 11 | *** source file (e.g. under external/kernel-headers/original/) then |
| 12 | *** run bionic/libc/kernel/tools/update_all.py |
| 13 | *** |
| 14 | *** Any manual change here will be lost the next time this script will |
| 15 | *** be run. You've been warned! |
| 16 | *** |
| 17 | **************************************************************************** |
| 18 | ****************************************************************************/ |
| 19 | #ifndef _UAPI_LINUX_NETDEV_H |
| 20 | #define _UAPI_LINUX_NETDEV_H |
| 21 | #define NETDEV_FAMILY_NAME "netdev" |
| 22 | #define NETDEV_FAMILY_VERSION 1 |
| 23 | enum netdev_xdp_act { |
| 24 | NETDEV_XDP_ACT_BASIC = 1, |
| 25 | NETDEV_XDP_ACT_REDIRECT = 2, |
| 26 | NETDEV_XDP_ACT_NDO_XMIT = 4, |
| 27 | NETDEV_XDP_ACT_XSK_ZEROCOPY = 8, |
| 28 | NETDEV_XDP_ACT_HW_OFFLOAD = 16, |
| 29 | NETDEV_XDP_ACT_RX_SG = 32, |
| 30 | NETDEV_XDP_ACT_NDO_XMIT_SG = 64, |
| 31 | NETDEV_XDP_ACT_MASK = 127, |
| 32 | }; |
| 33 | enum { |
| 34 | NETDEV_A_DEV_IFINDEX = 1, |
| 35 | NETDEV_A_DEV_PAD, |
| 36 | NETDEV_A_DEV_XDP_FEATURES, |
| 37 | __NETDEV_A_DEV_MAX, |
| 38 | NETDEV_A_DEV_MAX = (__NETDEV_A_DEV_MAX - 1) |
| 39 | }; |
| 40 | enum { |
| 41 | NETDEV_CMD_DEV_GET = 1, |
| 42 | NETDEV_CMD_DEV_ADD_NTF, |
| 43 | NETDEV_CMD_DEV_DEL_NTF, |
| 44 | NETDEV_CMD_DEV_CHANGE_NTF, |
| 45 | __NETDEV_CMD_MAX, |
| 46 | NETDEV_CMD_MAX = (__NETDEV_CMD_MAX - 1) |
| 47 | }; |
| 48 | #define NETDEV_MCGRP_MGMT "mgmt" |
| 49 | #endif |