blob: 4e11eda3e8e7cd6f18016965e7e766dce083cb8c [file] [log] [blame]
Christopher Ferris106b3a82016-08-24 12:15:38 -07001/****************************************************************************
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_DEVLINK_H_
20#define _UAPI_LINUX_DEVLINK_H_
21#define DEVLINK_GENL_NAME "devlink"
22#define DEVLINK_GENL_VERSION 0x1
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define DEVLINK_GENL_MCGRP_CONFIG_NAME "config"
25enum devlink_command {
26 DEVLINK_CMD_UNSPEC,
27 DEVLINK_CMD_GET,
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 DEVLINK_CMD_SET,
30 DEVLINK_CMD_NEW,
31 DEVLINK_CMD_DEL,
32 DEVLINK_CMD_PORT_GET,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 DEVLINK_CMD_PORT_SET,
35 DEVLINK_CMD_PORT_NEW,
36 DEVLINK_CMD_PORT_DEL,
37 DEVLINK_CMD_PORT_SPLIT,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 DEVLINK_CMD_PORT_UNSPLIT,
40 DEVLINK_CMD_SB_GET,
41 DEVLINK_CMD_SB_SET,
42 DEVLINK_CMD_SB_NEW,
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 DEVLINK_CMD_SB_DEL,
45 DEVLINK_CMD_SB_POOL_GET,
46 DEVLINK_CMD_SB_POOL_SET,
47 DEVLINK_CMD_SB_POOL_NEW,
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 DEVLINK_CMD_SB_POOL_DEL,
50 DEVLINK_CMD_SB_PORT_POOL_GET,
51 DEVLINK_CMD_SB_PORT_POOL_SET,
52 DEVLINK_CMD_SB_PORT_POOL_NEW,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 DEVLINK_CMD_SB_PORT_POOL_DEL,
55 DEVLINK_CMD_SB_TC_POOL_BIND_GET,
56 DEVLINK_CMD_SB_TC_POOL_BIND_SET,
57 DEVLINK_CMD_SB_TC_POOL_BIND_NEW,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 DEVLINK_CMD_SB_TC_POOL_BIND_DEL,
60 DEVLINK_CMD_SB_OCC_SNAPSHOT,
61 DEVLINK_CMD_SB_OCC_MAX_CLEAR,
62 __DEVLINK_CMD_MAX,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 DEVLINK_CMD_MAX = __DEVLINK_CMD_MAX - 1
65};
66enum devlink_port_type {
67 DEVLINK_PORT_TYPE_NOTSET,
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 DEVLINK_PORT_TYPE_AUTO,
70 DEVLINK_PORT_TYPE_ETH,
71 DEVLINK_PORT_TYPE_IB,
72};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74enum devlink_sb_pool_type {
75 DEVLINK_SB_POOL_TYPE_INGRESS,
76 DEVLINK_SB_POOL_TYPE_EGRESS,
77};
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79enum devlink_sb_threshold_type {
80 DEVLINK_SB_THRESHOLD_TYPE_STATIC,
81 DEVLINK_SB_THRESHOLD_TYPE_DYNAMIC,
82};
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84#define DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX 20
85enum devlink_attr {
86 DEVLINK_ATTR_UNSPEC,
87 DEVLINK_ATTR_BUS_NAME,
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89 DEVLINK_ATTR_DEV_NAME,
90 DEVLINK_ATTR_PORT_INDEX,
91 DEVLINK_ATTR_PORT_TYPE,
92 DEVLINK_ATTR_PORT_DESIRED_TYPE,
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94 DEVLINK_ATTR_PORT_NETDEV_IFINDEX,
95 DEVLINK_ATTR_PORT_NETDEV_NAME,
96 DEVLINK_ATTR_PORT_IBDEV_NAME,
97 DEVLINK_ATTR_PORT_SPLIT_COUNT,
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99 DEVLINK_ATTR_PORT_SPLIT_GROUP,
100 DEVLINK_ATTR_SB_INDEX,
101 DEVLINK_ATTR_SB_SIZE,
102 DEVLINK_ATTR_SB_INGRESS_POOL_COUNT,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104 DEVLINK_ATTR_SB_EGRESS_POOL_COUNT,
105 DEVLINK_ATTR_SB_INGRESS_TC_COUNT,
106 DEVLINK_ATTR_SB_EGRESS_TC_COUNT,
107 DEVLINK_ATTR_SB_POOL_INDEX,
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109 DEVLINK_ATTR_SB_POOL_TYPE,
110 DEVLINK_ATTR_SB_POOL_SIZE,
111 DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE,
112 DEVLINK_ATTR_SB_THRESHOLD,
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114 DEVLINK_ATTR_SB_TC_INDEX,
115 DEVLINK_ATTR_SB_OCC_CUR,
116 DEVLINK_ATTR_SB_OCC_MAX,
117 __DEVLINK_ATTR_MAX,
118/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
119 DEVLINK_ATTR_MAX = __DEVLINK_ATTR_MAX - 1
120};
121#endif