1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
3 * include/uapi/linux/ethtool_netlink.h - netlink interface for ethtool
5 * See Documentation/networking/ethtool-netlink.rst in kernel source tree for
6 * doucumentation of the interface.
9 #ifndef _UAPI_LINUX_ETHTOOL_NETLINK_H_
10 #define _UAPI_LINUX_ETHTOOL_NETLINK_H_
12 #include <linux/ethtool.h>
14 /* message types - userspace to kernel */
16 ETHTOOL_MSG_USER_NONE,
17 ETHTOOL_MSG_STRSET_GET,
18 ETHTOOL_MSG_LINKINFO_GET,
19 ETHTOOL_MSG_LINKINFO_SET,
20 ETHTOOL_MSG_LINKMODES_GET,
21 ETHTOOL_MSG_LINKMODES_SET,
22 ETHTOOL_MSG_LINKSTATE_GET,
23 ETHTOOL_MSG_DEBUG_GET,
24 ETHTOOL_MSG_DEBUG_SET,
27 ETHTOOL_MSG_FEATURES_GET,
28 ETHTOOL_MSG_FEATURES_SET,
29 ETHTOOL_MSG_PRIVFLAGS_GET,
30 ETHTOOL_MSG_PRIVFLAGS_SET,
31 ETHTOOL_MSG_RINGS_GET,
32 ETHTOOL_MSG_RINGS_SET,
33 ETHTOOL_MSG_CHANNELS_GET,
34 ETHTOOL_MSG_CHANNELS_SET,
35 ETHTOOL_MSG_COALESCE_GET,
36 ETHTOOL_MSG_COALESCE_SET,
37 ETHTOOL_MSG_PAUSE_GET,
38 ETHTOOL_MSG_PAUSE_SET,
41 ETHTOOL_MSG_TSINFO_GET,
42 ETHTOOL_MSG_CABLE_TEST_ACT,
43 ETHTOOL_MSG_CABLE_TEST_TDR_ACT,
44 ETHTOOL_MSG_TUNNEL_INFO_GET,
47 ETHTOOL_MSG_MODULE_EEPROM_GET,
48 ETHTOOL_MSG_STATS_GET,
49 ETHTOOL_MSG_PHC_VCLOCKS_GET,
50 ETHTOOL_MSG_MODULE_GET,
51 ETHTOOL_MSG_MODULE_SET,
55 /* add new constants above here */
56 __ETHTOOL_MSG_USER_CNT,
57 ETHTOOL_MSG_USER_MAX = __ETHTOOL_MSG_USER_CNT - 1
60 /* message types - kernel to userspace */
62 ETHTOOL_MSG_KERNEL_NONE,
63 ETHTOOL_MSG_STRSET_GET_REPLY,
64 ETHTOOL_MSG_LINKINFO_GET_REPLY,
65 ETHTOOL_MSG_LINKINFO_NTF,
66 ETHTOOL_MSG_LINKMODES_GET_REPLY,
67 ETHTOOL_MSG_LINKMODES_NTF,
68 ETHTOOL_MSG_LINKSTATE_GET_REPLY,
69 ETHTOOL_MSG_DEBUG_GET_REPLY,
70 ETHTOOL_MSG_DEBUG_NTF,
71 ETHTOOL_MSG_WOL_GET_REPLY,
73 ETHTOOL_MSG_FEATURES_GET_REPLY,
74 ETHTOOL_MSG_FEATURES_SET_REPLY,
75 ETHTOOL_MSG_FEATURES_NTF,
76 ETHTOOL_MSG_PRIVFLAGS_GET_REPLY,
77 ETHTOOL_MSG_PRIVFLAGS_NTF,
78 ETHTOOL_MSG_RINGS_GET_REPLY,
79 ETHTOOL_MSG_RINGS_NTF,
80 ETHTOOL_MSG_CHANNELS_GET_REPLY,
81 ETHTOOL_MSG_CHANNELS_NTF,
82 ETHTOOL_MSG_COALESCE_GET_REPLY,
83 ETHTOOL_MSG_COALESCE_NTF,
84 ETHTOOL_MSG_PAUSE_GET_REPLY,
85 ETHTOOL_MSG_PAUSE_NTF,
86 ETHTOOL_MSG_EEE_GET_REPLY,
88 ETHTOOL_MSG_TSINFO_GET_REPLY,
89 ETHTOOL_MSG_CABLE_TEST_NTF,
90 ETHTOOL_MSG_CABLE_TEST_TDR_NTF,
91 ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY,
92 ETHTOOL_MSG_FEC_GET_REPLY,
94 ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY,
95 ETHTOOL_MSG_STATS_GET_REPLY,
96 ETHTOOL_MSG_PHC_VCLOCKS_GET_REPLY,
97 ETHTOOL_MSG_MODULE_GET_REPLY,
98 ETHTOOL_MSG_MODULE_NTF,
99 ETHTOOL_MSG_PSE_GET_REPLY,
101 /* add new constants above here */
102 __ETHTOOL_MSG_KERNEL_CNT,
103 ETHTOOL_MSG_KERNEL_MAX = __ETHTOOL_MSG_KERNEL_CNT - 1
108 /* use compact bitsets in reply */
109 #define ETHTOOL_FLAG_COMPACT_BITSETS (1 << 0)
110 /* provide optional reply for SET or ACT requests */
111 #define ETHTOOL_FLAG_OMIT_REPLY (1 << 1)
112 /* request statistics, if supported by the driver */
113 #define ETHTOOL_FLAG_STATS (1 << 2)
115 #define ETHTOOL_FLAG_ALL (ETHTOOL_FLAG_COMPACT_BITSETS | \
116 ETHTOOL_FLAG_OMIT_REPLY | \
120 ETHTOOL_A_HEADER_UNSPEC,
121 ETHTOOL_A_HEADER_DEV_INDEX, /* u32 */
122 ETHTOOL_A_HEADER_DEV_NAME, /* string */
123 ETHTOOL_A_HEADER_FLAGS, /* u32 - ETHTOOL_FLAG_* */
125 /* add new constants above here */
126 __ETHTOOL_A_HEADER_CNT,
127 ETHTOOL_A_HEADER_MAX = __ETHTOOL_A_HEADER_CNT - 1
133 ETHTOOL_A_BITSET_BIT_UNSPEC,
134 ETHTOOL_A_BITSET_BIT_INDEX, /* u32 */
135 ETHTOOL_A_BITSET_BIT_NAME, /* string */
136 ETHTOOL_A_BITSET_BIT_VALUE, /* flag */
138 /* add new constants above here */
139 __ETHTOOL_A_BITSET_BIT_CNT,
140 ETHTOOL_A_BITSET_BIT_MAX = __ETHTOOL_A_BITSET_BIT_CNT - 1
144 ETHTOOL_A_BITSET_BITS_UNSPEC,
145 ETHTOOL_A_BITSET_BITS_BIT, /* nest - _A_BITSET_BIT_* */
147 /* add new constants above here */
148 __ETHTOOL_A_BITSET_BITS_CNT,
149 ETHTOOL_A_BITSET_BITS_MAX = __ETHTOOL_A_BITSET_BITS_CNT - 1
153 ETHTOOL_A_BITSET_UNSPEC,
154 ETHTOOL_A_BITSET_NOMASK, /* flag */
155 ETHTOOL_A_BITSET_SIZE, /* u32 */
156 ETHTOOL_A_BITSET_BITS, /* nest - _A_BITSET_BITS_* */
157 ETHTOOL_A_BITSET_VALUE, /* binary */
158 ETHTOOL_A_BITSET_MASK, /* binary */
160 /* add new constants above here */
161 __ETHTOOL_A_BITSET_CNT,
162 ETHTOOL_A_BITSET_MAX = __ETHTOOL_A_BITSET_CNT - 1
168 ETHTOOL_A_STRING_UNSPEC,
169 ETHTOOL_A_STRING_INDEX, /* u32 */
170 ETHTOOL_A_STRING_VALUE, /* string */
172 /* add new constants above here */
173 __ETHTOOL_A_STRING_CNT,
174 ETHTOOL_A_STRING_MAX = __ETHTOOL_A_STRING_CNT - 1
178 ETHTOOL_A_STRINGS_UNSPEC,
179 ETHTOOL_A_STRINGS_STRING, /* nest - _A_STRINGS_* */
181 /* add new constants above here */
182 __ETHTOOL_A_STRINGS_CNT,
183 ETHTOOL_A_STRINGS_MAX = __ETHTOOL_A_STRINGS_CNT - 1
187 ETHTOOL_A_STRINGSET_UNSPEC,
188 ETHTOOL_A_STRINGSET_ID, /* u32 */
189 ETHTOOL_A_STRINGSET_COUNT, /* u32 */
190 ETHTOOL_A_STRINGSET_STRINGS, /* nest - _A_STRINGS_* */
192 /* add new constants above here */
193 __ETHTOOL_A_STRINGSET_CNT,
194 ETHTOOL_A_STRINGSET_MAX = __ETHTOOL_A_STRINGSET_CNT - 1
198 ETHTOOL_A_STRINGSETS_UNSPEC,
199 ETHTOOL_A_STRINGSETS_STRINGSET, /* nest - _A_STRINGSET_* */
201 /* add new constants above here */
202 __ETHTOOL_A_STRINGSETS_CNT,
203 ETHTOOL_A_STRINGSETS_MAX = __ETHTOOL_A_STRINGSETS_CNT - 1
209 ETHTOOL_A_STRSET_UNSPEC,
210 ETHTOOL_A_STRSET_HEADER, /* nest - _A_HEADER_* */
211 ETHTOOL_A_STRSET_STRINGSETS, /* nest - _A_STRINGSETS_* */
212 ETHTOOL_A_STRSET_COUNTS_ONLY, /* flag */
214 /* add new constants above here */
215 __ETHTOOL_A_STRSET_CNT,
216 ETHTOOL_A_STRSET_MAX = __ETHTOOL_A_STRSET_CNT - 1
222 ETHTOOL_A_LINKINFO_UNSPEC,
223 ETHTOOL_A_LINKINFO_HEADER, /* nest - _A_HEADER_* */
224 ETHTOOL_A_LINKINFO_PORT, /* u8 */
225 ETHTOOL_A_LINKINFO_PHYADDR, /* u8 */
226 ETHTOOL_A_LINKINFO_TP_MDIX, /* u8 */
227 ETHTOOL_A_LINKINFO_TP_MDIX_CTRL, /* u8 */
228 ETHTOOL_A_LINKINFO_TRANSCEIVER, /* u8 */
230 /* add new constants above here */
231 __ETHTOOL_A_LINKINFO_CNT,
232 ETHTOOL_A_LINKINFO_MAX = __ETHTOOL_A_LINKINFO_CNT - 1
238 ETHTOOL_A_LINKMODES_UNSPEC,
239 ETHTOOL_A_LINKMODES_HEADER, /* nest - _A_HEADER_* */
240 ETHTOOL_A_LINKMODES_AUTONEG, /* u8 */
241 ETHTOOL_A_LINKMODES_OURS, /* bitset */
242 ETHTOOL_A_LINKMODES_PEER, /* bitset */
243 ETHTOOL_A_LINKMODES_SPEED, /* u32 */
244 ETHTOOL_A_LINKMODES_DUPLEX, /* u8 */
245 ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG, /* u8 */
246 ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE, /* u8 */
247 ETHTOOL_A_LINKMODES_LANES, /* u32 */
248 ETHTOOL_A_LINKMODES_RATE_MATCHING, /* u8 */
250 /* add new constants above here */
251 __ETHTOOL_A_LINKMODES_CNT,
252 ETHTOOL_A_LINKMODES_MAX = __ETHTOOL_A_LINKMODES_CNT - 1
258 ETHTOOL_A_LINKSTATE_UNSPEC,
259 ETHTOOL_A_LINKSTATE_HEADER, /* nest - _A_HEADER_* */
260 ETHTOOL_A_LINKSTATE_LINK, /* u8 */
261 ETHTOOL_A_LINKSTATE_SQI, /* u32 */
262 ETHTOOL_A_LINKSTATE_SQI_MAX, /* u32 */
263 ETHTOOL_A_LINKSTATE_EXT_STATE, /* u8 */
264 ETHTOOL_A_LINKSTATE_EXT_SUBSTATE, /* u8 */
266 /* add new constants above here */
267 __ETHTOOL_A_LINKSTATE_CNT,
268 ETHTOOL_A_LINKSTATE_MAX = __ETHTOOL_A_LINKSTATE_CNT - 1
274 ETHTOOL_A_DEBUG_UNSPEC,
275 ETHTOOL_A_DEBUG_HEADER, /* nest - _A_HEADER_* */
276 ETHTOOL_A_DEBUG_MSGMASK, /* bitset */
278 /* add new constants above here */
279 __ETHTOOL_A_DEBUG_CNT,
280 ETHTOOL_A_DEBUG_MAX = __ETHTOOL_A_DEBUG_CNT - 1
286 ETHTOOL_A_WOL_UNSPEC,
287 ETHTOOL_A_WOL_HEADER, /* nest - _A_HEADER_* */
288 ETHTOOL_A_WOL_MODES, /* bitset */
289 ETHTOOL_A_WOL_SOPASS, /* binary */
291 /* add new constants above here */
293 ETHTOOL_A_WOL_MAX = __ETHTOOL_A_WOL_CNT - 1
299 ETHTOOL_A_FEATURES_UNSPEC,
300 ETHTOOL_A_FEATURES_HEADER, /* nest - _A_HEADER_* */
301 ETHTOOL_A_FEATURES_HW, /* bitset */
302 ETHTOOL_A_FEATURES_WANTED, /* bitset */
303 ETHTOOL_A_FEATURES_ACTIVE, /* bitset */
304 ETHTOOL_A_FEATURES_NOCHANGE, /* bitset */
306 /* add new constants above here */
307 __ETHTOOL_A_FEATURES_CNT,
308 ETHTOOL_A_FEATURES_MAX = __ETHTOOL_A_FEATURES_CNT - 1
314 ETHTOOL_A_PRIVFLAGS_UNSPEC,
315 ETHTOOL_A_PRIVFLAGS_HEADER, /* nest - _A_HEADER_* */
316 ETHTOOL_A_PRIVFLAGS_FLAGS, /* bitset */
318 /* add new constants above here */
319 __ETHTOOL_A_PRIVFLAGS_CNT,
320 ETHTOOL_A_PRIVFLAGS_MAX = __ETHTOOL_A_PRIVFLAGS_CNT - 1
326 ETHTOOL_TCP_DATA_SPLIT_UNKNOWN = 0,
327 ETHTOOL_TCP_DATA_SPLIT_DISABLED,
328 ETHTOOL_TCP_DATA_SPLIT_ENABLED,
332 ETHTOOL_A_RINGS_UNSPEC,
333 ETHTOOL_A_RINGS_HEADER, /* nest - _A_HEADER_* */
334 ETHTOOL_A_RINGS_RX_MAX, /* u32 */
335 ETHTOOL_A_RINGS_RX_MINI_MAX, /* u32 */
336 ETHTOOL_A_RINGS_RX_JUMBO_MAX, /* u32 */
337 ETHTOOL_A_RINGS_TX_MAX, /* u32 */
338 ETHTOOL_A_RINGS_RX, /* u32 */
339 ETHTOOL_A_RINGS_RX_MINI, /* u32 */
340 ETHTOOL_A_RINGS_RX_JUMBO, /* u32 */
341 ETHTOOL_A_RINGS_TX, /* u32 */
342 ETHTOOL_A_RINGS_RX_BUF_LEN, /* u32 */
343 ETHTOOL_A_RINGS_TCP_DATA_SPLIT, /* u8 */
344 ETHTOOL_A_RINGS_CQE_SIZE, /* u32 */
345 ETHTOOL_A_RINGS_TX_PUSH, /* u8 */
347 /* add new constants above here */
348 __ETHTOOL_A_RINGS_CNT,
349 ETHTOOL_A_RINGS_MAX = (__ETHTOOL_A_RINGS_CNT - 1)
355 ETHTOOL_A_CHANNELS_UNSPEC,
356 ETHTOOL_A_CHANNELS_HEADER, /* nest - _A_HEADER_* */
357 ETHTOOL_A_CHANNELS_RX_MAX, /* u32 */
358 ETHTOOL_A_CHANNELS_TX_MAX, /* u32 */
359 ETHTOOL_A_CHANNELS_OTHER_MAX, /* u32 */
360 ETHTOOL_A_CHANNELS_COMBINED_MAX, /* u32 */
361 ETHTOOL_A_CHANNELS_RX_COUNT, /* u32 */
362 ETHTOOL_A_CHANNELS_TX_COUNT, /* u32 */
363 ETHTOOL_A_CHANNELS_OTHER_COUNT, /* u32 */
364 ETHTOOL_A_CHANNELS_COMBINED_COUNT, /* u32 */
366 /* add new constants above here */
367 __ETHTOOL_A_CHANNELS_CNT,
368 ETHTOOL_A_CHANNELS_MAX = (__ETHTOOL_A_CHANNELS_CNT - 1)
374 ETHTOOL_A_COALESCE_UNSPEC,
375 ETHTOOL_A_COALESCE_HEADER, /* nest - _A_HEADER_* */
376 ETHTOOL_A_COALESCE_RX_USECS, /* u32 */
377 ETHTOOL_A_COALESCE_RX_MAX_FRAMES, /* u32 */
378 ETHTOOL_A_COALESCE_RX_USECS_IRQ, /* u32 */
379 ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ, /* u32 */
380 ETHTOOL_A_COALESCE_TX_USECS, /* u32 */
381 ETHTOOL_A_COALESCE_TX_MAX_FRAMES, /* u32 */
382 ETHTOOL_A_COALESCE_TX_USECS_IRQ, /* u32 */
383 ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ, /* u32 */
384 ETHTOOL_A_COALESCE_STATS_BLOCK_USECS, /* u32 */
385 ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX, /* u8 */
386 ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX, /* u8 */
387 ETHTOOL_A_COALESCE_PKT_RATE_LOW, /* u32 */
388 ETHTOOL_A_COALESCE_RX_USECS_LOW, /* u32 */
389 ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW, /* u32 */
390 ETHTOOL_A_COALESCE_TX_USECS_LOW, /* u32 */
391 ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW, /* u32 */
392 ETHTOOL_A_COALESCE_PKT_RATE_HIGH, /* u32 */
393 ETHTOOL_A_COALESCE_RX_USECS_HIGH, /* u32 */
394 ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH, /* u32 */
395 ETHTOOL_A_COALESCE_TX_USECS_HIGH, /* u32 */
396 ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH, /* u32 */
397 ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL, /* u32 */
398 ETHTOOL_A_COALESCE_USE_CQE_MODE_TX, /* u8 */
399 ETHTOOL_A_COALESCE_USE_CQE_MODE_RX, /* u8 */
401 /* add new constants above here */
402 __ETHTOOL_A_COALESCE_CNT,
403 ETHTOOL_A_COALESCE_MAX = (__ETHTOOL_A_COALESCE_CNT - 1)
409 ETHTOOL_A_PAUSE_UNSPEC,
410 ETHTOOL_A_PAUSE_HEADER, /* nest - _A_HEADER_* */
411 ETHTOOL_A_PAUSE_AUTONEG, /* u8 */
412 ETHTOOL_A_PAUSE_RX, /* u8 */
413 ETHTOOL_A_PAUSE_TX, /* u8 */
414 ETHTOOL_A_PAUSE_STATS, /* nest - _PAUSE_STAT_* */
416 /* add new constants above here */
417 __ETHTOOL_A_PAUSE_CNT,
418 ETHTOOL_A_PAUSE_MAX = (__ETHTOOL_A_PAUSE_CNT - 1)
422 ETHTOOL_A_PAUSE_STAT_UNSPEC,
423 ETHTOOL_A_PAUSE_STAT_PAD,
425 ETHTOOL_A_PAUSE_STAT_TX_FRAMES,
426 ETHTOOL_A_PAUSE_STAT_RX_FRAMES,
428 /* add new constants above here
429 * adjust ETHTOOL_PAUSE_STAT_CNT if adding non-stats!
431 __ETHTOOL_A_PAUSE_STAT_CNT,
432 ETHTOOL_A_PAUSE_STAT_MAX = (__ETHTOOL_A_PAUSE_STAT_CNT - 1)
438 ETHTOOL_A_EEE_UNSPEC,
439 ETHTOOL_A_EEE_HEADER, /* nest - _A_HEADER_* */
440 ETHTOOL_A_EEE_MODES_OURS, /* bitset */
441 ETHTOOL_A_EEE_MODES_PEER, /* bitset */
442 ETHTOOL_A_EEE_ACTIVE, /* u8 */
443 ETHTOOL_A_EEE_ENABLED, /* u8 */
444 ETHTOOL_A_EEE_TX_LPI_ENABLED, /* u8 */
445 ETHTOOL_A_EEE_TX_LPI_TIMER, /* u32 */
447 /* add new constants above here */
449 ETHTOOL_A_EEE_MAX = (__ETHTOOL_A_EEE_CNT - 1)
455 ETHTOOL_A_TSINFO_UNSPEC,
456 ETHTOOL_A_TSINFO_HEADER, /* nest - _A_HEADER_* */
457 ETHTOOL_A_TSINFO_TIMESTAMPING, /* bitset */
458 ETHTOOL_A_TSINFO_TX_TYPES, /* bitset */
459 ETHTOOL_A_TSINFO_RX_FILTERS, /* bitset */
460 ETHTOOL_A_TSINFO_PHC_INDEX, /* u32 */
462 /* add new constants above here */
463 __ETHTOOL_A_TSINFO_CNT,
464 ETHTOOL_A_TSINFO_MAX = (__ETHTOOL_A_TSINFO_CNT - 1)
470 ETHTOOL_A_PHC_VCLOCKS_UNSPEC,
471 ETHTOOL_A_PHC_VCLOCKS_HEADER, /* nest - _A_HEADER_* */
472 ETHTOOL_A_PHC_VCLOCKS_NUM, /* u32 */
473 ETHTOOL_A_PHC_VCLOCKS_INDEX, /* array, s32 */
475 /* add new constants above here */
476 __ETHTOOL_A_PHC_VCLOCKS_CNT,
477 ETHTOOL_A_PHC_VCLOCKS_MAX = (__ETHTOOL_A_PHC_VCLOCKS_CNT - 1)
483 ETHTOOL_A_CABLE_TEST_UNSPEC,
484 ETHTOOL_A_CABLE_TEST_HEADER, /* nest - _A_HEADER_* */
486 /* add new constants above here */
487 __ETHTOOL_A_CABLE_TEST_CNT,
488 ETHTOOL_A_CABLE_TEST_MAX = __ETHTOOL_A_CABLE_TEST_CNT - 1
491 /* CABLE TEST NOTIFY */
493 ETHTOOL_A_CABLE_RESULT_CODE_UNSPEC,
494 ETHTOOL_A_CABLE_RESULT_CODE_OK,
495 ETHTOOL_A_CABLE_RESULT_CODE_OPEN,
496 ETHTOOL_A_CABLE_RESULT_CODE_SAME_SHORT,
497 ETHTOOL_A_CABLE_RESULT_CODE_CROSS_SHORT,
501 ETHTOOL_A_CABLE_PAIR_A,
502 ETHTOOL_A_CABLE_PAIR_B,
503 ETHTOOL_A_CABLE_PAIR_C,
504 ETHTOOL_A_CABLE_PAIR_D,
508 ETHTOOL_A_CABLE_RESULT_UNSPEC,
509 ETHTOOL_A_CABLE_RESULT_PAIR, /* u8 ETHTOOL_A_CABLE_PAIR_ */
510 ETHTOOL_A_CABLE_RESULT_CODE, /* u8 ETHTOOL_A_CABLE_RESULT_CODE_ */
512 __ETHTOOL_A_CABLE_RESULT_CNT,
513 ETHTOOL_A_CABLE_RESULT_MAX = (__ETHTOOL_A_CABLE_RESULT_CNT - 1)
517 ETHTOOL_A_CABLE_FAULT_LENGTH_UNSPEC,
518 ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR, /* u8 ETHTOOL_A_CABLE_PAIR_ */
519 ETHTOOL_A_CABLE_FAULT_LENGTH_CM, /* u32 */
521 __ETHTOOL_A_CABLE_FAULT_LENGTH_CNT,
522 ETHTOOL_A_CABLE_FAULT_LENGTH_MAX = (__ETHTOOL_A_CABLE_FAULT_LENGTH_CNT - 1)
526 ETHTOOL_A_CABLE_TEST_NTF_STATUS_UNSPEC,
527 ETHTOOL_A_CABLE_TEST_NTF_STATUS_STARTED,
528 ETHTOOL_A_CABLE_TEST_NTF_STATUS_COMPLETED
532 ETHTOOL_A_CABLE_NEST_UNSPEC,
533 ETHTOOL_A_CABLE_NEST_RESULT, /* nest - ETHTOOL_A_CABLE_RESULT_ */
534 ETHTOOL_A_CABLE_NEST_FAULT_LENGTH, /* nest - ETHTOOL_A_CABLE_FAULT_LENGTH_ */
535 __ETHTOOL_A_CABLE_NEST_CNT,
536 ETHTOOL_A_CABLE_NEST_MAX = (__ETHTOOL_A_CABLE_NEST_CNT - 1)
540 ETHTOOL_A_CABLE_TEST_NTF_UNSPEC,
541 ETHTOOL_A_CABLE_TEST_NTF_HEADER, /* nest - ETHTOOL_A_HEADER_* */
542 ETHTOOL_A_CABLE_TEST_NTF_STATUS, /* u8 - _STARTED/_COMPLETE */
543 ETHTOOL_A_CABLE_TEST_NTF_NEST, /* nest - of results: */
545 __ETHTOOL_A_CABLE_TEST_NTF_CNT,
546 ETHTOOL_A_CABLE_TEST_NTF_MAX = (__ETHTOOL_A_CABLE_TEST_NTF_CNT - 1)
552 ETHTOOL_A_CABLE_TEST_TDR_CFG_UNSPEC,
553 ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST, /* u32 */
554 ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST, /* u32 */
555 ETHTOOL_A_CABLE_TEST_TDR_CFG_STEP, /* u32 */
556 ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR, /* u8 */
558 /* add new constants above here */
559 __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT,
560 ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX = __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT - 1
564 ETHTOOL_A_CABLE_TEST_TDR_UNSPEC,
565 ETHTOOL_A_CABLE_TEST_TDR_HEADER, /* nest - _A_HEADER_* */
566 ETHTOOL_A_CABLE_TEST_TDR_CFG, /* nest - *_TDR_CFG_* */
568 /* add new constants above here */
569 __ETHTOOL_A_CABLE_TEST_TDR_CNT,
570 ETHTOOL_A_CABLE_TEST_TDR_MAX = __ETHTOOL_A_CABLE_TEST_TDR_CNT - 1
573 /* CABLE TEST TDR NOTIFY */
576 ETHTOOL_A_CABLE_AMPLITUDE_UNSPEC,
577 ETHTOOL_A_CABLE_AMPLITUDE_PAIR, /* u8 */
578 ETHTOOL_A_CABLE_AMPLITUDE_mV, /* s16 */
580 __ETHTOOL_A_CABLE_AMPLITUDE_CNT,
581 ETHTOOL_A_CABLE_AMPLITUDE_MAX = (__ETHTOOL_A_CABLE_AMPLITUDE_CNT - 1)
585 ETHTOOL_A_CABLE_PULSE_UNSPEC,
586 ETHTOOL_A_CABLE_PULSE_mV, /* s16 */
588 __ETHTOOL_A_CABLE_PULSE_CNT,
589 ETHTOOL_A_CABLE_PULSE_MAX = (__ETHTOOL_A_CABLE_PULSE_CNT - 1)
593 ETHTOOL_A_CABLE_STEP_UNSPEC,
594 ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE, /* u32 */
595 ETHTOOL_A_CABLE_STEP_LAST_DISTANCE, /* u32 */
596 ETHTOOL_A_CABLE_STEP_STEP_DISTANCE, /* u32 */
598 __ETHTOOL_A_CABLE_STEP_CNT,
599 ETHTOOL_A_CABLE_STEP_MAX = (__ETHTOOL_A_CABLE_STEP_CNT - 1)
603 ETHTOOL_A_CABLE_TDR_NEST_UNSPEC,
604 ETHTOOL_A_CABLE_TDR_NEST_STEP, /* nest - ETHTTOOL_A_CABLE_STEP */
605 ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE, /* nest - ETHTOOL_A_CABLE_AMPLITUDE */
606 ETHTOOL_A_CABLE_TDR_NEST_PULSE, /* nest - ETHTOOL_A_CABLE_PULSE */
608 __ETHTOOL_A_CABLE_TDR_NEST_CNT,
609 ETHTOOL_A_CABLE_TDR_NEST_MAX = (__ETHTOOL_A_CABLE_TDR_NEST_CNT - 1)
613 ETHTOOL_A_CABLE_TEST_TDR_NTF_UNSPEC,
614 ETHTOOL_A_CABLE_TEST_TDR_NTF_HEADER, /* nest - ETHTOOL_A_HEADER_* */
615 ETHTOOL_A_CABLE_TEST_TDR_NTF_STATUS, /* u8 - _STARTED/_COMPLETE */
616 ETHTOOL_A_CABLE_TEST_TDR_NTF_NEST, /* nest - of results: */
618 /* add new constants above here */
619 __ETHTOOL_A_CABLE_TEST_TDR_NTF_CNT,
620 ETHTOOL_A_CABLE_TEST_TDR_NTF_MAX = __ETHTOOL_A_CABLE_TEST_TDR_NTF_CNT - 1
626 ETHTOOL_UDP_TUNNEL_TYPE_VXLAN,
627 ETHTOOL_UDP_TUNNEL_TYPE_GENEVE,
628 ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE,
630 __ETHTOOL_UDP_TUNNEL_TYPE_CNT
634 ETHTOOL_A_TUNNEL_UDP_ENTRY_UNSPEC,
636 ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT, /* be16 */
637 ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE, /* u32 */
639 /* add new constants above here */
640 __ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT,
641 ETHTOOL_A_TUNNEL_UDP_ENTRY_MAX = (__ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT - 1)
645 ETHTOOL_A_TUNNEL_UDP_TABLE_UNSPEC,
647 ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE, /* u32 */
648 ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES, /* bitset */
649 ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY, /* nest - _UDP_ENTRY_* */
651 /* add new constants above here */
652 __ETHTOOL_A_TUNNEL_UDP_TABLE_CNT,
653 ETHTOOL_A_TUNNEL_UDP_TABLE_MAX = (__ETHTOOL_A_TUNNEL_UDP_TABLE_CNT - 1)
657 ETHTOOL_A_TUNNEL_UDP_UNSPEC,
659 ETHTOOL_A_TUNNEL_UDP_TABLE, /* nest - _UDP_TABLE_* */
661 /* add new constants above here */
662 __ETHTOOL_A_TUNNEL_UDP_CNT,
663 ETHTOOL_A_TUNNEL_UDP_MAX = (__ETHTOOL_A_TUNNEL_UDP_CNT - 1)
667 ETHTOOL_A_TUNNEL_INFO_UNSPEC,
668 ETHTOOL_A_TUNNEL_INFO_HEADER, /* nest - _A_HEADER_* */
670 ETHTOOL_A_TUNNEL_INFO_UDP_PORTS, /* nest - _UDP_TABLE */
672 /* add new constants above here */
673 __ETHTOOL_A_TUNNEL_INFO_CNT,
674 ETHTOOL_A_TUNNEL_INFO_MAX = (__ETHTOOL_A_TUNNEL_INFO_CNT - 1)
680 ETHTOOL_A_FEC_UNSPEC,
681 ETHTOOL_A_FEC_HEADER, /* nest - _A_HEADER_* */
682 ETHTOOL_A_FEC_MODES, /* bitset */
683 ETHTOOL_A_FEC_AUTO, /* u8 */
684 ETHTOOL_A_FEC_ACTIVE, /* u32 */
685 ETHTOOL_A_FEC_STATS, /* nest - _A_FEC_STAT */
688 ETHTOOL_A_FEC_MAX = (__ETHTOOL_A_FEC_CNT - 1)
692 ETHTOOL_A_FEC_STAT_UNSPEC,
693 ETHTOOL_A_FEC_STAT_PAD,
695 ETHTOOL_A_FEC_STAT_CORRECTED, /* array, u64 */
696 ETHTOOL_A_FEC_STAT_UNCORR, /* array, u64 */
697 ETHTOOL_A_FEC_STAT_CORR_BITS, /* array, u64 */
699 /* add new constants above here */
700 __ETHTOOL_A_FEC_STAT_CNT,
701 ETHTOOL_A_FEC_STAT_MAX = (__ETHTOOL_A_FEC_STAT_CNT - 1)
707 ETHTOOL_A_MODULE_EEPROM_UNSPEC,
708 ETHTOOL_A_MODULE_EEPROM_HEADER, /* nest - _A_HEADER_* */
710 ETHTOOL_A_MODULE_EEPROM_OFFSET, /* u32 */
711 ETHTOOL_A_MODULE_EEPROM_LENGTH, /* u32 */
712 ETHTOOL_A_MODULE_EEPROM_PAGE, /* u8 */
713 ETHTOOL_A_MODULE_EEPROM_BANK, /* u8 */
714 ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS, /* u8 */
715 ETHTOOL_A_MODULE_EEPROM_DATA, /* binary */
717 __ETHTOOL_A_MODULE_EEPROM_CNT,
718 ETHTOOL_A_MODULE_EEPROM_MAX = (__ETHTOOL_A_MODULE_EEPROM_CNT - 1)
724 ETHTOOL_A_STATS_UNSPEC,
726 ETHTOOL_A_STATS_HEADER, /* nest - _A_HEADER_* */
727 ETHTOOL_A_STATS_GROUPS, /* bitset */
729 ETHTOOL_A_STATS_GRP, /* nest - _A_STATS_GRP_* */
731 /* add new constants above here */
732 __ETHTOOL_A_STATS_CNT,
733 ETHTOOL_A_STATS_MAX = (__ETHTOOL_A_STATS_CNT - 1)
737 ETHTOOL_STATS_ETH_PHY,
738 ETHTOOL_STATS_ETH_MAC,
739 ETHTOOL_STATS_ETH_CTRL,
742 /* add new constants above here */
747 ETHTOOL_A_STATS_GRP_UNSPEC,
748 ETHTOOL_A_STATS_GRP_PAD,
750 ETHTOOL_A_STATS_GRP_ID, /* u32 */
751 ETHTOOL_A_STATS_GRP_SS_ID, /* u32 */
753 ETHTOOL_A_STATS_GRP_STAT, /* nest */
755 ETHTOOL_A_STATS_GRP_HIST_RX, /* nest */
756 ETHTOOL_A_STATS_GRP_HIST_TX, /* nest */
758 ETHTOOL_A_STATS_GRP_HIST_BKT_LOW, /* u32 */
759 ETHTOOL_A_STATS_GRP_HIST_BKT_HI, /* u32 */
760 ETHTOOL_A_STATS_GRP_HIST_VAL, /* u64 */
762 /* add new constants above here */
763 __ETHTOOL_A_STATS_GRP_CNT,
764 ETHTOOL_A_STATS_GRP_MAX = (__ETHTOOL_A_STATS_GRP_CNT - 1)
768 /* 30.3.2.1.5 aSymbolErrorDuringCarrier */
769 ETHTOOL_A_STATS_ETH_PHY_5_SYM_ERR,
771 /* add new constants above here */
772 __ETHTOOL_A_STATS_ETH_PHY_CNT,
773 ETHTOOL_A_STATS_ETH_PHY_MAX = (__ETHTOOL_A_STATS_ETH_PHY_CNT - 1)
777 /* 30.3.1.1.2 aFramesTransmittedOK */
778 ETHTOOL_A_STATS_ETH_MAC_2_TX_PKT,
779 /* 30.3.1.1.3 aSingleCollisionFrames */
780 ETHTOOL_A_STATS_ETH_MAC_3_SINGLE_COL,
781 /* 30.3.1.1.4 aMultipleCollisionFrames */
782 ETHTOOL_A_STATS_ETH_MAC_4_MULTI_COL,
783 /* 30.3.1.1.5 aFramesReceivedOK */
784 ETHTOOL_A_STATS_ETH_MAC_5_RX_PKT,
785 /* 30.3.1.1.6 aFrameCheckSequenceErrors */
786 ETHTOOL_A_STATS_ETH_MAC_6_FCS_ERR,
787 /* 30.3.1.1.7 aAlignmentErrors */
788 ETHTOOL_A_STATS_ETH_MAC_7_ALIGN_ERR,
789 /* 30.3.1.1.8 aOctetsTransmittedOK */
790 ETHTOOL_A_STATS_ETH_MAC_8_TX_BYTES,
791 /* 30.3.1.1.9 aFramesWithDeferredXmissions */
792 ETHTOOL_A_STATS_ETH_MAC_9_TX_DEFER,
793 /* 30.3.1.1.10 aLateCollisions */
794 ETHTOOL_A_STATS_ETH_MAC_10_LATE_COL,
795 /* 30.3.1.1.11 aFramesAbortedDueToXSColls */
796 ETHTOOL_A_STATS_ETH_MAC_11_XS_COL,
797 /* 30.3.1.1.12 aFramesLostDueToIntMACXmitError */
798 ETHTOOL_A_STATS_ETH_MAC_12_TX_INT_ERR,
799 /* 30.3.1.1.13 aCarrierSenseErrors */
800 ETHTOOL_A_STATS_ETH_MAC_13_CS_ERR,
801 /* 30.3.1.1.14 aOctetsReceivedOK */
802 ETHTOOL_A_STATS_ETH_MAC_14_RX_BYTES,
803 /* 30.3.1.1.15 aFramesLostDueToIntMACRcvError */
804 ETHTOOL_A_STATS_ETH_MAC_15_RX_INT_ERR,
806 /* 30.3.1.1.18 aMulticastFramesXmittedOK */
807 ETHTOOL_A_STATS_ETH_MAC_18_TX_MCAST,
808 /* 30.3.1.1.19 aBroadcastFramesXmittedOK */
809 ETHTOOL_A_STATS_ETH_MAC_19_TX_BCAST,
810 /* 30.3.1.1.20 aFramesWithExcessiveDeferral */
811 ETHTOOL_A_STATS_ETH_MAC_20_XS_DEFER,
812 /* 30.3.1.1.21 aMulticastFramesReceivedOK */
813 ETHTOOL_A_STATS_ETH_MAC_21_RX_MCAST,
814 /* 30.3.1.1.22 aBroadcastFramesReceivedOK */
815 ETHTOOL_A_STATS_ETH_MAC_22_RX_BCAST,
816 /* 30.3.1.1.23 aInRangeLengthErrors */
817 ETHTOOL_A_STATS_ETH_MAC_23_IR_LEN_ERR,
818 /* 30.3.1.1.24 aOutOfRangeLengthField */
819 ETHTOOL_A_STATS_ETH_MAC_24_OOR_LEN,
820 /* 30.3.1.1.25 aFrameTooLongErrors */
821 ETHTOOL_A_STATS_ETH_MAC_25_TOO_LONG_ERR,
823 /* add new constants above here */
824 __ETHTOOL_A_STATS_ETH_MAC_CNT,
825 ETHTOOL_A_STATS_ETH_MAC_MAX = (__ETHTOOL_A_STATS_ETH_MAC_CNT - 1)
829 /* 30.3.3.3 aMACControlFramesTransmitted */
830 ETHTOOL_A_STATS_ETH_CTRL_3_TX,
831 /* 30.3.3.4 aMACControlFramesReceived */
832 ETHTOOL_A_STATS_ETH_CTRL_4_RX,
833 /* 30.3.3.5 aUnsupportedOpcodesReceived */
834 ETHTOOL_A_STATS_ETH_CTRL_5_RX_UNSUP,
836 /* add new constants above here */
837 __ETHTOOL_A_STATS_ETH_CTRL_CNT,
838 ETHTOOL_A_STATS_ETH_CTRL_MAX = (__ETHTOOL_A_STATS_ETH_CTRL_CNT - 1)
842 /* etherStatsUndersizePkts */
843 ETHTOOL_A_STATS_RMON_UNDERSIZE,
844 /* etherStatsOversizePkts */
845 ETHTOOL_A_STATS_RMON_OVERSIZE,
846 /* etherStatsFragments */
847 ETHTOOL_A_STATS_RMON_FRAG,
848 /* etherStatsJabbers */
849 ETHTOOL_A_STATS_RMON_JABBER,
851 /* add new constants above here */
852 __ETHTOOL_A_STATS_RMON_CNT,
853 ETHTOOL_A_STATS_RMON_MAX = (__ETHTOOL_A_STATS_RMON_CNT - 1)
859 ETHTOOL_A_MODULE_UNSPEC,
860 ETHTOOL_A_MODULE_HEADER, /* nest - _A_HEADER_* */
861 ETHTOOL_A_MODULE_POWER_MODE_POLICY, /* u8 */
862 ETHTOOL_A_MODULE_POWER_MODE, /* u8 */
864 /* add new constants above here */
865 __ETHTOOL_A_MODULE_CNT,
866 ETHTOOL_A_MODULE_MAX = (__ETHTOOL_A_MODULE_CNT - 1)
869 /* Power Sourcing Equipment */
871 ETHTOOL_A_PSE_UNSPEC,
872 ETHTOOL_A_PSE_HEADER, /* nest - _A_HEADER_* */
873 ETHTOOL_A_PODL_PSE_ADMIN_STATE, /* u32 */
874 ETHTOOL_A_PODL_PSE_ADMIN_CONTROL, /* u32 */
875 ETHTOOL_A_PODL_PSE_PW_D_STATUS, /* u32 */
877 /* add new constants above here */
879 ETHTOOL_A_PSE_MAX = (__ETHTOOL_A_PSE_CNT - 1)
882 /* generic netlink info */
883 #define ETHTOOL_GENL_NAME "ethtool"
884 #define ETHTOOL_GENL_VERSION 1
886 #define ETHTOOL_MCGRP_MONITOR_NAME "monitor"
888 #endif /* _UAPI_LINUX_ETHTOOL_NETLINK_H_ */