1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 2 /* 3 * include/uapi/linux/ethtool_netlink.h - netlink interface for ethtool 4 * 5 * See Documentation/networking/ethtool-netlink.rst in kernel source tree for 6 * doucumentation of the interface. 7 */ 8 9 #ifndef _UAPI_LINUX_ETHTOOL_NETLINK_H_ 10 #define _UAPI_LINUX_ETHTOOL_NETLINK_H_ 11 12 #include <linux/ethtool.h> 13 14 /* message types - userspace to kernel */ 15 enum { 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, 25 ETHTOOL_MSG_WOL_GET, 26 ETHTOOL_MSG_WOL_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, 39 ETHTOOL_MSG_EEE_GET, 40 ETHTOOL_MSG_EEE_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, 45 ETHTOOL_MSG_FEC_GET, 46 ETHTOOL_MSG_FEC_SET, 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, 52 ETHTOOL_MSG_PSE_GET, 53 ETHTOOL_MSG_PSE_SET, 54 ETHTOOL_MSG_RSS_GET, 55 ETHTOOL_MSG_PLCA_GET_CFG, 56 ETHTOOL_MSG_PLCA_SET_CFG, 57 ETHTOOL_MSG_PLCA_GET_STATUS, 58 ETHTOOL_MSG_MM_GET, 59 ETHTOOL_MSG_MM_SET, 60 61 /* add new constants above here */ 62 __ETHTOOL_MSG_USER_CNT, 63 ETHTOOL_MSG_USER_MAX = __ETHTOOL_MSG_USER_CNT - 1 64 }; 65 66 /* message types - kernel to userspace */ 67 enum { 68 ETHTOOL_MSG_KERNEL_NONE, 69 ETHTOOL_MSG_STRSET_GET_REPLY, 70 ETHTOOL_MSG_LINKINFO_GET_REPLY, 71 ETHTOOL_MSG_LINKINFO_NTF, 72 ETHTOOL_MSG_LINKMODES_GET_REPLY, 73 ETHTOOL_MSG_LINKMODES_NTF, 74 ETHTOOL_MSG_LINKSTATE_GET_REPLY, 75 ETHTOOL_MSG_DEBUG_GET_REPLY, 76 ETHTOOL_MSG_DEBUG_NTF, 77 ETHTOOL_MSG_WOL_GET_REPLY, 78 ETHTOOL_MSG_WOL_NTF, 79 ETHTOOL_MSG_FEATURES_GET_REPLY, 80 ETHTOOL_MSG_FEATURES_SET_REPLY, 81 ETHTOOL_MSG_FEATURES_NTF, 82 ETHTOOL_MSG_PRIVFLAGS_GET_REPLY, 83 ETHTOOL_MSG_PRIVFLAGS_NTF, 84 ETHTOOL_MSG_RINGS_GET_REPLY, 85 ETHTOOL_MSG_RINGS_NTF, 86 ETHTOOL_MSG_CHANNELS_GET_REPLY, 87 ETHTOOL_MSG_CHANNELS_NTF, 88 ETHTOOL_MSG_COALESCE_GET_REPLY, 89 ETHTOOL_MSG_COALESCE_NTF, 90 ETHTOOL_MSG_PAUSE_GET_REPLY, 91 ETHTOOL_MSG_PAUSE_NTF, 92 ETHTOOL_MSG_EEE_GET_REPLY, 93 ETHTOOL_MSG_EEE_NTF, 94 ETHTOOL_MSG_TSINFO_GET_REPLY, 95 ETHTOOL_MSG_CABLE_TEST_NTF, 96 ETHTOOL_MSG_CABLE_TEST_TDR_NTF, 97 ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY, 98 ETHTOOL_MSG_FEC_GET_REPLY, 99 ETHTOOL_MSG_FEC_NTF, 100 ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY, 101 ETHTOOL_MSG_STATS_GET_REPLY, 102 ETHTOOL_MSG_PHC_VCLOCKS_GET_REPLY, 103 ETHTOOL_MSG_MODULE_GET_REPLY, 104 ETHTOOL_MSG_MODULE_NTF, 105 ETHTOOL_MSG_PSE_GET_REPLY, 106 ETHTOOL_MSG_RSS_GET_REPLY, 107 ETHTOOL_MSG_PLCA_GET_CFG_REPLY, 108 ETHTOOL_MSG_PLCA_GET_STATUS_REPLY, 109 ETHTOOL_MSG_PLCA_NTF, 110 ETHTOOL_MSG_MM_GET_REPLY, 111 ETHTOOL_MSG_MM_NTF, 112 113 /* add new constants above here */ 114 __ETHTOOL_MSG_KERNEL_CNT, 115 ETHTOOL_MSG_KERNEL_MAX = __ETHTOOL_MSG_KERNEL_CNT - 1 116 }; 117 118 /* request header */ 119 120 /* use compact bitsets in reply */ 121 #define ETHTOOL_FLAG_COMPACT_BITSETS (1 << 0) 122 /* provide optional reply for SET or ACT requests */ 123 #define ETHTOOL_FLAG_OMIT_REPLY (1 << 1) 124 /* request statistics, if supported by the driver */ 125 #define ETHTOOL_FLAG_STATS (1 << 2) 126 127 #define ETHTOOL_FLAG_ALL (ETHTOOL_FLAG_COMPACT_BITSETS | \ 128 ETHTOOL_FLAG_OMIT_REPLY | \ 129 ETHTOOL_FLAG_STATS) 130 131 enum { 132 ETHTOOL_A_HEADER_UNSPEC, 133 ETHTOOL_A_HEADER_DEV_INDEX, /* u32 */ 134 ETHTOOL_A_HEADER_DEV_NAME, /* string */ 135 ETHTOOL_A_HEADER_FLAGS, /* u32 - ETHTOOL_FLAG_* */ 136 137 /* add new constants above here */ 138 __ETHTOOL_A_HEADER_CNT, 139 ETHTOOL_A_HEADER_MAX = __ETHTOOL_A_HEADER_CNT - 1 140 }; 141 142 /* bit sets */ 143 144 enum { 145 ETHTOOL_A_BITSET_BIT_UNSPEC, 146 ETHTOOL_A_BITSET_BIT_INDEX, /* u32 */ 147 ETHTOOL_A_BITSET_BIT_NAME, /* string */ 148 ETHTOOL_A_BITSET_BIT_VALUE, /* flag */ 149 150 /* add new constants above here */ 151 __ETHTOOL_A_BITSET_BIT_CNT, 152 ETHTOOL_A_BITSET_BIT_MAX = __ETHTOOL_A_BITSET_BIT_CNT - 1 153 }; 154 155 enum { 156 ETHTOOL_A_BITSET_BITS_UNSPEC, 157 ETHTOOL_A_BITSET_BITS_BIT, /* nest - _A_BITSET_BIT_* */ 158 159 /* add new constants above here */ 160 __ETHTOOL_A_BITSET_BITS_CNT, 161 ETHTOOL_A_BITSET_BITS_MAX = __ETHTOOL_A_BITSET_BITS_CNT - 1 162 }; 163 164 enum { 165 ETHTOOL_A_BITSET_UNSPEC, 166 ETHTOOL_A_BITSET_NOMASK, /* flag */ 167 ETHTOOL_A_BITSET_SIZE, /* u32 */ 168 ETHTOOL_A_BITSET_BITS, /* nest - _A_BITSET_BITS_* */ 169 ETHTOOL_A_BITSET_VALUE, /* binary */ 170 ETHTOOL_A_BITSET_MASK, /* binary */ 171 172 /* add new constants above here */ 173 __ETHTOOL_A_BITSET_CNT, 174 ETHTOOL_A_BITSET_MAX = __ETHTOOL_A_BITSET_CNT - 1 175 }; 176 177 /* string sets */ 178 179 enum { 180 ETHTOOL_A_STRING_UNSPEC, 181 ETHTOOL_A_STRING_INDEX, /* u32 */ 182 ETHTOOL_A_STRING_VALUE, /* string */ 183 184 /* add new constants above here */ 185 __ETHTOOL_A_STRING_CNT, 186 ETHTOOL_A_STRING_MAX = __ETHTOOL_A_STRING_CNT - 1 187 }; 188 189 enum { 190 ETHTOOL_A_STRINGS_UNSPEC, 191 ETHTOOL_A_STRINGS_STRING, /* nest - _A_STRINGS_* */ 192 193 /* add new constants above here */ 194 __ETHTOOL_A_STRINGS_CNT, 195 ETHTOOL_A_STRINGS_MAX = __ETHTOOL_A_STRINGS_CNT - 1 196 }; 197 198 enum { 199 ETHTOOL_A_STRINGSET_UNSPEC, 200 ETHTOOL_A_STRINGSET_ID, /* u32 */ 201 ETHTOOL_A_STRINGSET_COUNT, /* u32 */ 202 ETHTOOL_A_STRINGSET_STRINGS, /* nest - _A_STRINGS_* */ 203 204 /* add new constants above here */ 205 __ETHTOOL_A_STRINGSET_CNT, 206 ETHTOOL_A_STRINGSET_MAX = __ETHTOOL_A_STRINGSET_CNT - 1 207 }; 208 209 enum { 210 ETHTOOL_A_STRINGSETS_UNSPEC, 211 ETHTOOL_A_STRINGSETS_STRINGSET, /* nest - _A_STRINGSET_* */ 212 213 /* add new constants above here */ 214 __ETHTOOL_A_STRINGSETS_CNT, 215 ETHTOOL_A_STRINGSETS_MAX = __ETHTOOL_A_STRINGSETS_CNT - 1 216 }; 217 218 /* STRSET */ 219 220 enum { 221 ETHTOOL_A_STRSET_UNSPEC, 222 ETHTOOL_A_STRSET_HEADER, /* nest - _A_HEADER_* */ 223 ETHTOOL_A_STRSET_STRINGSETS, /* nest - _A_STRINGSETS_* */ 224 ETHTOOL_A_STRSET_COUNTS_ONLY, /* flag */ 225 226 /* add new constants above here */ 227 __ETHTOOL_A_STRSET_CNT, 228 ETHTOOL_A_STRSET_MAX = __ETHTOOL_A_STRSET_CNT - 1 229 }; 230 231 /* LINKINFO */ 232 233 enum { 234 ETHTOOL_A_LINKINFO_UNSPEC, 235 ETHTOOL_A_LINKINFO_HEADER, /* nest - _A_HEADER_* */ 236 ETHTOOL_A_LINKINFO_PORT, /* u8 */ 237 ETHTOOL_A_LINKINFO_PHYADDR, /* u8 */ 238 ETHTOOL_A_LINKINFO_TP_MDIX, /* u8 */ 239 ETHTOOL_A_LINKINFO_TP_MDIX_CTRL, /* u8 */ 240 ETHTOOL_A_LINKINFO_TRANSCEIVER, /* u8 */ 241 242 /* add new constants above here */ 243 __ETHTOOL_A_LINKINFO_CNT, 244 ETHTOOL_A_LINKINFO_MAX = __ETHTOOL_A_LINKINFO_CNT - 1 245 }; 246 247 /* LINKMODES */ 248 249 enum { 250 ETHTOOL_A_LINKMODES_UNSPEC, 251 ETHTOOL_A_LINKMODES_HEADER, /* nest - _A_HEADER_* */ 252 ETHTOOL_A_LINKMODES_AUTONEG, /* u8 */ 253 ETHTOOL_A_LINKMODES_OURS, /* bitset */ 254 ETHTOOL_A_LINKMODES_PEER, /* bitset */ 255 ETHTOOL_A_LINKMODES_SPEED, /* u32 */ 256 ETHTOOL_A_LINKMODES_DUPLEX, /* u8 */ 257 ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG, /* u8 */ 258 ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE, /* u8 */ 259 ETHTOOL_A_LINKMODES_LANES, /* u32 */ 260 ETHTOOL_A_LINKMODES_RATE_MATCHING, /* u8 */ 261 262 /* add new constants above here */ 263 __ETHTOOL_A_LINKMODES_CNT, 264 ETHTOOL_A_LINKMODES_MAX = __ETHTOOL_A_LINKMODES_CNT - 1 265 }; 266 267 /* LINKSTATE */ 268 269 enum { 270 ETHTOOL_A_LINKSTATE_UNSPEC, 271 ETHTOOL_A_LINKSTATE_HEADER, /* nest - _A_HEADER_* */ 272 ETHTOOL_A_LINKSTATE_LINK, /* u8 */ 273 ETHTOOL_A_LINKSTATE_SQI, /* u32 */ 274 ETHTOOL_A_LINKSTATE_SQI_MAX, /* u32 */ 275 ETHTOOL_A_LINKSTATE_EXT_STATE, /* u8 */ 276 ETHTOOL_A_LINKSTATE_EXT_SUBSTATE, /* u8 */ 277 ETHTOOL_A_LINKSTATE_EXT_DOWN_CNT, /* u32 */ 278 279 /* add new constants above here */ 280 __ETHTOOL_A_LINKSTATE_CNT, 281 ETHTOOL_A_LINKSTATE_MAX = __ETHTOOL_A_LINKSTATE_CNT - 1 282 }; 283 284 /* DEBUG */ 285 286 enum { 287 ETHTOOL_A_DEBUG_UNSPEC, 288 ETHTOOL_A_DEBUG_HEADER, /* nest - _A_HEADER_* */ 289 ETHTOOL_A_DEBUG_MSGMASK, /* bitset */ 290 291 /* add new constants above here */ 292 __ETHTOOL_A_DEBUG_CNT, 293 ETHTOOL_A_DEBUG_MAX = __ETHTOOL_A_DEBUG_CNT - 1 294 }; 295 296 /* WOL */ 297 298 enum { 299 ETHTOOL_A_WOL_UNSPEC, 300 ETHTOOL_A_WOL_HEADER, /* nest - _A_HEADER_* */ 301 ETHTOOL_A_WOL_MODES, /* bitset */ 302 ETHTOOL_A_WOL_SOPASS, /* binary */ 303 304 /* add new constants above here */ 305 __ETHTOOL_A_WOL_CNT, 306 ETHTOOL_A_WOL_MAX = __ETHTOOL_A_WOL_CNT - 1 307 }; 308 309 /* FEATURES */ 310 311 enum { 312 ETHTOOL_A_FEATURES_UNSPEC, 313 ETHTOOL_A_FEATURES_HEADER, /* nest - _A_HEADER_* */ 314 ETHTOOL_A_FEATURES_HW, /* bitset */ 315 ETHTOOL_A_FEATURES_WANTED, /* bitset */ 316 ETHTOOL_A_FEATURES_ACTIVE, /* bitset */ 317 ETHTOOL_A_FEATURES_NOCHANGE, /* bitset */ 318 319 /* add new constants above here */ 320 __ETHTOOL_A_FEATURES_CNT, 321 ETHTOOL_A_FEATURES_MAX = __ETHTOOL_A_FEATURES_CNT - 1 322 }; 323 324 /* PRIVFLAGS */ 325 326 enum { 327 ETHTOOL_A_PRIVFLAGS_UNSPEC, 328 ETHTOOL_A_PRIVFLAGS_HEADER, /* nest - _A_HEADER_* */ 329 ETHTOOL_A_PRIVFLAGS_FLAGS, /* bitset */ 330 331 /* add new constants above here */ 332 __ETHTOOL_A_PRIVFLAGS_CNT, 333 ETHTOOL_A_PRIVFLAGS_MAX = __ETHTOOL_A_PRIVFLAGS_CNT - 1 334 }; 335 336 /* RINGS */ 337 338 enum { 339 ETHTOOL_TCP_DATA_SPLIT_UNKNOWN = 0, 340 ETHTOOL_TCP_DATA_SPLIT_DISABLED, 341 ETHTOOL_TCP_DATA_SPLIT_ENABLED, 342 }; 343 344 enum { 345 ETHTOOL_A_RINGS_UNSPEC, 346 ETHTOOL_A_RINGS_HEADER, /* nest - _A_HEADER_* */ 347 ETHTOOL_A_RINGS_RX_MAX, /* u32 */ 348 ETHTOOL_A_RINGS_RX_MINI_MAX, /* u32 */ 349 ETHTOOL_A_RINGS_RX_JUMBO_MAX, /* u32 */ 350 ETHTOOL_A_RINGS_TX_MAX, /* u32 */ 351 ETHTOOL_A_RINGS_RX, /* u32 */ 352 ETHTOOL_A_RINGS_RX_MINI, /* u32 */ 353 ETHTOOL_A_RINGS_RX_JUMBO, /* u32 */ 354 ETHTOOL_A_RINGS_TX, /* u32 */ 355 ETHTOOL_A_RINGS_RX_BUF_LEN, /* u32 */ 356 ETHTOOL_A_RINGS_TCP_DATA_SPLIT, /* u8 */ 357 ETHTOOL_A_RINGS_CQE_SIZE, /* u32 */ 358 ETHTOOL_A_RINGS_TX_PUSH, /* u8 */ 359 ETHTOOL_A_RINGS_RX_PUSH, /* u8 */ 360 361 /* add new constants above here */ 362 __ETHTOOL_A_RINGS_CNT, 363 ETHTOOL_A_RINGS_MAX = (__ETHTOOL_A_RINGS_CNT - 1) 364 }; 365 366 /* CHANNELS */ 367 368 enum { 369 ETHTOOL_A_CHANNELS_UNSPEC, 370 ETHTOOL_A_CHANNELS_HEADER, /* nest - _A_HEADER_* */ 371 ETHTOOL_A_CHANNELS_RX_MAX, /* u32 */ 372 ETHTOOL_A_CHANNELS_TX_MAX, /* u32 */ 373 ETHTOOL_A_CHANNELS_OTHER_MAX, /* u32 */ 374 ETHTOOL_A_CHANNELS_COMBINED_MAX, /* u32 */ 375 ETHTOOL_A_CHANNELS_RX_COUNT, /* u32 */ 376 ETHTOOL_A_CHANNELS_TX_COUNT, /* u32 */ 377 ETHTOOL_A_CHANNELS_OTHER_COUNT, /* u32 */ 378 ETHTOOL_A_CHANNELS_COMBINED_COUNT, /* u32 */ 379 380 /* add new constants above here */ 381 __ETHTOOL_A_CHANNELS_CNT, 382 ETHTOOL_A_CHANNELS_MAX = (__ETHTOOL_A_CHANNELS_CNT - 1) 383 }; 384 385 /* COALESCE */ 386 387 enum { 388 ETHTOOL_A_COALESCE_UNSPEC, 389 ETHTOOL_A_COALESCE_HEADER, /* nest - _A_HEADER_* */ 390 ETHTOOL_A_COALESCE_RX_USECS, /* u32 */ 391 ETHTOOL_A_COALESCE_RX_MAX_FRAMES, /* u32 */ 392 ETHTOOL_A_COALESCE_RX_USECS_IRQ, /* u32 */ 393 ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ, /* u32 */ 394 ETHTOOL_A_COALESCE_TX_USECS, /* u32 */ 395 ETHTOOL_A_COALESCE_TX_MAX_FRAMES, /* u32 */ 396 ETHTOOL_A_COALESCE_TX_USECS_IRQ, /* u32 */ 397 ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ, /* u32 */ 398 ETHTOOL_A_COALESCE_STATS_BLOCK_USECS, /* u32 */ 399 ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX, /* u8 */ 400 ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX, /* u8 */ 401 ETHTOOL_A_COALESCE_PKT_RATE_LOW, /* u32 */ 402 ETHTOOL_A_COALESCE_RX_USECS_LOW, /* u32 */ 403 ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW, /* u32 */ 404 ETHTOOL_A_COALESCE_TX_USECS_LOW, /* u32 */ 405 ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW, /* u32 */ 406 ETHTOOL_A_COALESCE_PKT_RATE_HIGH, /* u32 */ 407 ETHTOOL_A_COALESCE_RX_USECS_HIGH, /* u32 */ 408 ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH, /* u32 */ 409 ETHTOOL_A_COALESCE_TX_USECS_HIGH, /* u32 */ 410 ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH, /* u32 */ 411 ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL, /* u32 */ 412 ETHTOOL_A_COALESCE_USE_CQE_MODE_TX, /* u8 */ 413 ETHTOOL_A_COALESCE_USE_CQE_MODE_RX, /* u8 */ 414 ETHTOOL_A_COALESCE_TX_AGGR_MAX_BYTES, /* u32 */ 415 ETHTOOL_A_COALESCE_TX_AGGR_MAX_FRAMES, /* u32 */ 416 ETHTOOL_A_COALESCE_TX_AGGR_TIME_USECS, /* u32 */ 417 418 /* add new constants above here */ 419 __ETHTOOL_A_COALESCE_CNT, 420 ETHTOOL_A_COALESCE_MAX = (__ETHTOOL_A_COALESCE_CNT - 1) 421 }; 422 423 /* PAUSE */ 424 425 enum { 426 ETHTOOL_A_PAUSE_UNSPEC, 427 ETHTOOL_A_PAUSE_HEADER, /* nest - _A_HEADER_* */ 428 ETHTOOL_A_PAUSE_AUTONEG, /* u8 */ 429 ETHTOOL_A_PAUSE_RX, /* u8 */ 430 ETHTOOL_A_PAUSE_TX, /* u8 */ 431 ETHTOOL_A_PAUSE_STATS, /* nest - _PAUSE_STAT_* */ 432 ETHTOOL_A_PAUSE_STATS_SRC, /* u32 */ 433 434 /* add new constants above here */ 435 __ETHTOOL_A_PAUSE_CNT, 436 ETHTOOL_A_PAUSE_MAX = (__ETHTOOL_A_PAUSE_CNT - 1) 437 }; 438 439 enum { 440 ETHTOOL_A_PAUSE_STAT_UNSPEC, 441 ETHTOOL_A_PAUSE_STAT_PAD, 442 443 ETHTOOL_A_PAUSE_STAT_TX_FRAMES, 444 ETHTOOL_A_PAUSE_STAT_RX_FRAMES, 445 446 /* add new constants above here 447 * adjust ETHTOOL_PAUSE_STAT_CNT if adding non-stats! 448 */ 449 __ETHTOOL_A_PAUSE_STAT_CNT, 450 ETHTOOL_A_PAUSE_STAT_MAX = (__ETHTOOL_A_PAUSE_STAT_CNT - 1) 451 }; 452 453 /* EEE */ 454 455 enum { 456 ETHTOOL_A_EEE_UNSPEC, 457 ETHTOOL_A_EEE_HEADER, /* nest - _A_HEADER_* */ 458 ETHTOOL_A_EEE_MODES_OURS, /* bitset */ 459 ETHTOOL_A_EEE_MODES_PEER, /* bitset */ 460 ETHTOOL_A_EEE_ACTIVE, /* u8 */ 461 ETHTOOL_A_EEE_ENABLED, /* u8 */ 462 ETHTOOL_A_EEE_TX_LPI_ENABLED, /* u8 */ 463 ETHTOOL_A_EEE_TX_LPI_TIMER, /* u32 */ 464 465 /* add new constants above here */ 466 __ETHTOOL_A_EEE_CNT, 467 ETHTOOL_A_EEE_MAX = (__ETHTOOL_A_EEE_CNT - 1) 468 }; 469 470 /* TSINFO */ 471 472 enum { 473 ETHTOOL_A_TSINFO_UNSPEC, 474 ETHTOOL_A_TSINFO_HEADER, /* nest - _A_HEADER_* */ 475 ETHTOOL_A_TSINFO_TIMESTAMPING, /* bitset */ 476 ETHTOOL_A_TSINFO_TX_TYPES, /* bitset */ 477 ETHTOOL_A_TSINFO_RX_FILTERS, /* bitset */ 478 ETHTOOL_A_TSINFO_PHC_INDEX, /* u32 */ 479 480 /* add new constants above here */ 481 __ETHTOOL_A_TSINFO_CNT, 482 ETHTOOL_A_TSINFO_MAX = (__ETHTOOL_A_TSINFO_CNT - 1) 483 }; 484 485 /* PHC VCLOCKS */ 486 487 enum { 488 ETHTOOL_A_PHC_VCLOCKS_UNSPEC, 489 ETHTOOL_A_PHC_VCLOCKS_HEADER, /* nest - _A_HEADER_* */ 490 ETHTOOL_A_PHC_VCLOCKS_NUM, /* u32 */ 491 ETHTOOL_A_PHC_VCLOCKS_INDEX, /* array, s32 */ 492 493 /* add new constants above here */ 494 __ETHTOOL_A_PHC_VCLOCKS_CNT, 495 ETHTOOL_A_PHC_VCLOCKS_MAX = (__ETHTOOL_A_PHC_VCLOCKS_CNT - 1) 496 }; 497 498 /* CABLE TEST */ 499 500 enum { 501 ETHTOOL_A_CABLE_TEST_UNSPEC, 502 ETHTOOL_A_CABLE_TEST_HEADER, /* nest - _A_HEADER_* */ 503 504 /* add new constants above here */ 505 __ETHTOOL_A_CABLE_TEST_CNT, 506 ETHTOOL_A_CABLE_TEST_MAX = __ETHTOOL_A_CABLE_TEST_CNT - 1 507 }; 508 509 /* CABLE TEST NOTIFY */ 510 enum { 511 ETHTOOL_A_CABLE_RESULT_CODE_UNSPEC, 512 ETHTOOL_A_CABLE_RESULT_CODE_OK, 513 ETHTOOL_A_CABLE_RESULT_CODE_OPEN, 514 ETHTOOL_A_CABLE_RESULT_CODE_SAME_SHORT, 515 ETHTOOL_A_CABLE_RESULT_CODE_CROSS_SHORT, 516 }; 517 518 enum { 519 ETHTOOL_A_CABLE_PAIR_A, 520 ETHTOOL_A_CABLE_PAIR_B, 521 ETHTOOL_A_CABLE_PAIR_C, 522 ETHTOOL_A_CABLE_PAIR_D, 523 }; 524 525 enum { 526 ETHTOOL_A_CABLE_RESULT_UNSPEC, 527 ETHTOOL_A_CABLE_RESULT_PAIR, /* u8 ETHTOOL_A_CABLE_PAIR_ */ 528 ETHTOOL_A_CABLE_RESULT_CODE, /* u8 ETHTOOL_A_CABLE_RESULT_CODE_ */ 529 530 __ETHTOOL_A_CABLE_RESULT_CNT, 531 ETHTOOL_A_CABLE_RESULT_MAX = (__ETHTOOL_A_CABLE_RESULT_CNT - 1) 532 }; 533 534 enum { 535 ETHTOOL_A_CABLE_FAULT_LENGTH_UNSPEC, 536 ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR, /* u8 ETHTOOL_A_CABLE_PAIR_ */ 537 ETHTOOL_A_CABLE_FAULT_LENGTH_CM, /* u32 */ 538 539 __ETHTOOL_A_CABLE_FAULT_LENGTH_CNT, 540 ETHTOOL_A_CABLE_FAULT_LENGTH_MAX = (__ETHTOOL_A_CABLE_FAULT_LENGTH_CNT - 1) 541 }; 542 543 enum { 544 ETHTOOL_A_CABLE_TEST_NTF_STATUS_UNSPEC, 545 ETHTOOL_A_CABLE_TEST_NTF_STATUS_STARTED, 546 ETHTOOL_A_CABLE_TEST_NTF_STATUS_COMPLETED 547 }; 548 549 enum { 550 ETHTOOL_A_CABLE_NEST_UNSPEC, 551 ETHTOOL_A_CABLE_NEST_RESULT, /* nest - ETHTOOL_A_CABLE_RESULT_ */ 552 ETHTOOL_A_CABLE_NEST_FAULT_LENGTH, /* nest - ETHTOOL_A_CABLE_FAULT_LENGTH_ */ 553 __ETHTOOL_A_CABLE_NEST_CNT, 554 ETHTOOL_A_CABLE_NEST_MAX = (__ETHTOOL_A_CABLE_NEST_CNT - 1) 555 }; 556 557 enum { 558 ETHTOOL_A_CABLE_TEST_NTF_UNSPEC, 559 ETHTOOL_A_CABLE_TEST_NTF_HEADER, /* nest - ETHTOOL_A_HEADER_* */ 560 ETHTOOL_A_CABLE_TEST_NTF_STATUS, /* u8 - _STARTED/_COMPLETE */ 561 ETHTOOL_A_CABLE_TEST_NTF_NEST, /* nest - of results: */ 562 563 __ETHTOOL_A_CABLE_TEST_NTF_CNT, 564 ETHTOOL_A_CABLE_TEST_NTF_MAX = (__ETHTOOL_A_CABLE_TEST_NTF_CNT - 1) 565 }; 566 567 /* CABLE TEST TDR */ 568 569 enum { 570 ETHTOOL_A_CABLE_TEST_TDR_CFG_UNSPEC, 571 ETHTOOL_A_CABLE_TEST_TDR_CFG_FIRST, /* u32 */ 572 ETHTOOL_A_CABLE_TEST_TDR_CFG_LAST, /* u32 */ 573 ETHTOOL_A_CABLE_TEST_TDR_CFG_STEP, /* u32 */ 574 ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR, /* u8 */ 575 576 /* add new constants above here */ 577 __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT, 578 ETHTOOL_A_CABLE_TEST_TDR_CFG_MAX = __ETHTOOL_A_CABLE_TEST_TDR_CFG_CNT - 1 579 }; 580 581 enum { 582 ETHTOOL_A_CABLE_TEST_TDR_UNSPEC, 583 ETHTOOL_A_CABLE_TEST_TDR_HEADER, /* nest - _A_HEADER_* */ 584 ETHTOOL_A_CABLE_TEST_TDR_CFG, /* nest - *_TDR_CFG_* */ 585 586 /* add new constants above here */ 587 __ETHTOOL_A_CABLE_TEST_TDR_CNT, 588 ETHTOOL_A_CABLE_TEST_TDR_MAX = __ETHTOOL_A_CABLE_TEST_TDR_CNT - 1 589 }; 590 591 /* CABLE TEST TDR NOTIFY */ 592 593 enum { 594 ETHTOOL_A_CABLE_AMPLITUDE_UNSPEC, 595 ETHTOOL_A_CABLE_AMPLITUDE_PAIR, /* u8 */ 596 ETHTOOL_A_CABLE_AMPLITUDE_mV, /* s16 */ 597 598 __ETHTOOL_A_CABLE_AMPLITUDE_CNT, 599 ETHTOOL_A_CABLE_AMPLITUDE_MAX = (__ETHTOOL_A_CABLE_AMPLITUDE_CNT - 1) 600 }; 601 602 enum { 603 ETHTOOL_A_CABLE_PULSE_UNSPEC, 604 ETHTOOL_A_CABLE_PULSE_mV, /* s16 */ 605 606 __ETHTOOL_A_CABLE_PULSE_CNT, 607 ETHTOOL_A_CABLE_PULSE_MAX = (__ETHTOOL_A_CABLE_PULSE_CNT - 1) 608 }; 609 610 enum { 611 ETHTOOL_A_CABLE_STEP_UNSPEC, 612 ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE, /* u32 */ 613 ETHTOOL_A_CABLE_STEP_LAST_DISTANCE, /* u32 */ 614 ETHTOOL_A_CABLE_STEP_STEP_DISTANCE, /* u32 */ 615 616 __ETHTOOL_A_CABLE_STEP_CNT, 617 ETHTOOL_A_CABLE_STEP_MAX = (__ETHTOOL_A_CABLE_STEP_CNT - 1) 618 }; 619 620 enum { 621 ETHTOOL_A_CABLE_TDR_NEST_UNSPEC, 622 ETHTOOL_A_CABLE_TDR_NEST_STEP, /* nest - ETHTTOOL_A_CABLE_STEP */ 623 ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE, /* nest - ETHTOOL_A_CABLE_AMPLITUDE */ 624 ETHTOOL_A_CABLE_TDR_NEST_PULSE, /* nest - ETHTOOL_A_CABLE_PULSE */ 625 626 __ETHTOOL_A_CABLE_TDR_NEST_CNT, 627 ETHTOOL_A_CABLE_TDR_NEST_MAX = (__ETHTOOL_A_CABLE_TDR_NEST_CNT - 1) 628 }; 629 630 enum { 631 ETHTOOL_A_CABLE_TEST_TDR_NTF_UNSPEC, 632 ETHTOOL_A_CABLE_TEST_TDR_NTF_HEADER, /* nest - ETHTOOL_A_HEADER_* */ 633 ETHTOOL_A_CABLE_TEST_TDR_NTF_STATUS, /* u8 - _STARTED/_COMPLETE */ 634 ETHTOOL_A_CABLE_TEST_TDR_NTF_NEST, /* nest - of results: */ 635 636 /* add new constants above here */ 637 __ETHTOOL_A_CABLE_TEST_TDR_NTF_CNT, 638 ETHTOOL_A_CABLE_TEST_TDR_NTF_MAX = __ETHTOOL_A_CABLE_TEST_TDR_NTF_CNT - 1 639 }; 640 641 /* TUNNEL INFO */ 642 643 enum { 644 ETHTOOL_UDP_TUNNEL_TYPE_VXLAN, 645 ETHTOOL_UDP_TUNNEL_TYPE_GENEVE, 646 ETHTOOL_UDP_TUNNEL_TYPE_VXLAN_GPE, 647 648 __ETHTOOL_UDP_TUNNEL_TYPE_CNT 649 }; 650 651 enum { 652 ETHTOOL_A_TUNNEL_UDP_ENTRY_UNSPEC, 653 654 ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT, /* be16 */ 655 ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE, /* u32 */ 656 657 /* add new constants above here */ 658 __ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT, 659 ETHTOOL_A_TUNNEL_UDP_ENTRY_MAX = (__ETHTOOL_A_TUNNEL_UDP_ENTRY_CNT - 1) 660 }; 661 662 enum { 663 ETHTOOL_A_TUNNEL_UDP_TABLE_UNSPEC, 664 665 ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE, /* u32 */ 666 ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES, /* bitset */ 667 ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY, /* nest - _UDP_ENTRY_* */ 668 669 /* add new constants above here */ 670 __ETHTOOL_A_TUNNEL_UDP_TABLE_CNT, 671 ETHTOOL_A_TUNNEL_UDP_TABLE_MAX = (__ETHTOOL_A_TUNNEL_UDP_TABLE_CNT - 1) 672 }; 673 674 enum { 675 ETHTOOL_A_TUNNEL_UDP_UNSPEC, 676 677 ETHTOOL_A_TUNNEL_UDP_TABLE, /* nest - _UDP_TABLE_* */ 678 679 /* add new constants above here */ 680 __ETHTOOL_A_TUNNEL_UDP_CNT, 681 ETHTOOL_A_TUNNEL_UDP_MAX = (__ETHTOOL_A_TUNNEL_UDP_CNT - 1) 682 }; 683 684 enum { 685 ETHTOOL_A_TUNNEL_INFO_UNSPEC, 686 ETHTOOL_A_TUNNEL_INFO_HEADER, /* nest - _A_HEADER_* */ 687 688 ETHTOOL_A_TUNNEL_INFO_UDP_PORTS, /* nest - _UDP_TABLE */ 689 690 /* add new constants above here */ 691 __ETHTOOL_A_TUNNEL_INFO_CNT, 692 ETHTOOL_A_TUNNEL_INFO_MAX = (__ETHTOOL_A_TUNNEL_INFO_CNT - 1) 693 }; 694 695 /* FEC */ 696 697 enum { 698 ETHTOOL_A_FEC_UNSPEC, 699 ETHTOOL_A_FEC_HEADER, /* nest - _A_HEADER_* */ 700 ETHTOOL_A_FEC_MODES, /* bitset */ 701 ETHTOOL_A_FEC_AUTO, /* u8 */ 702 ETHTOOL_A_FEC_ACTIVE, /* u32 */ 703 ETHTOOL_A_FEC_STATS, /* nest - _A_FEC_STAT */ 704 705 __ETHTOOL_A_FEC_CNT, 706 ETHTOOL_A_FEC_MAX = (__ETHTOOL_A_FEC_CNT - 1) 707 }; 708 709 enum { 710 ETHTOOL_A_FEC_STAT_UNSPEC, 711 ETHTOOL_A_FEC_STAT_PAD, 712 713 ETHTOOL_A_FEC_STAT_CORRECTED, /* array, u64 */ 714 ETHTOOL_A_FEC_STAT_UNCORR, /* array, u64 */ 715 ETHTOOL_A_FEC_STAT_CORR_BITS, /* array, u64 */ 716 717 /* add new constants above here */ 718 __ETHTOOL_A_FEC_STAT_CNT, 719 ETHTOOL_A_FEC_STAT_MAX = (__ETHTOOL_A_FEC_STAT_CNT - 1) 720 }; 721 722 /* MODULE EEPROM */ 723 724 enum { 725 ETHTOOL_A_MODULE_EEPROM_UNSPEC, 726 ETHTOOL_A_MODULE_EEPROM_HEADER, /* nest - _A_HEADER_* */ 727 728 ETHTOOL_A_MODULE_EEPROM_OFFSET, /* u32 */ 729 ETHTOOL_A_MODULE_EEPROM_LENGTH, /* u32 */ 730 ETHTOOL_A_MODULE_EEPROM_PAGE, /* u8 */ 731 ETHTOOL_A_MODULE_EEPROM_BANK, /* u8 */ 732 ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS, /* u8 */ 733 ETHTOOL_A_MODULE_EEPROM_DATA, /* binary */ 734 735 __ETHTOOL_A_MODULE_EEPROM_CNT, 736 ETHTOOL_A_MODULE_EEPROM_MAX = (__ETHTOOL_A_MODULE_EEPROM_CNT - 1) 737 }; 738 739 /* STATS */ 740 741 enum { 742 ETHTOOL_A_STATS_UNSPEC, 743 ETHTOOL_A_STATS_PAD, 744 ETHTOOL_A_STATS_HEADER, /* nest - _A_HEADER_* */ 745 ETHTOOL_A_STATS_GROUPS, /* bitset */ 746 747 ETHTOOL_A_STATS_GRP, /* nest - _A_STATS_GRP_* */ 748 749 ETHTOOL_A_STATS_SRC, /* u32 */ 750 751 /* add new constants above here */ 752 __ETHTOOL_A_STATS_CNT, 753 ETHTOOL_A_STATS_MAX = (__ETHTOOL_A_STATS_CNT - 1) 754 }; 755 756 enum { 757 ETHTOOL_STATS_ETH_PHY, 758 ETHTOOL_STATS_ETH_MAC, 759 ETHTOOL_STATS_ETH_CTRL, 760 ETHTOOL_STATS_RMON, 761 762 /* add new constants above here */ 763 __ETHTOOL_STATS_CNT 764 }; 765 766 enum { 767 ETHTOOL_A_STATS_GRP_UNSPEC, 768 ETHTOOL_A_STATS_GRP_PAD, 769 770 ETHTOOL_A_STATS_GRP_ID, /* u32 */ 771 ETHTOOL_A_STATS_GRP_SS_ID, /* u32 */ 772 773 ETHTOOL_A_STATS_GRP_STAT, /* nest */ 774 775 ETHTOOL_A_STATS_GRP_HIST_RX, /* nest */ 776 ETHTOOL_A_STATS_GRP_HIST_TX, /* nest */ 777 778 ETHTOOL_A_STATS_GRP_HIST_BKT_LOW, /* u32 */ 779 ETHTOOL_A_STATS_GRP_HIST_BKT_HI, /* u32 */ 780 ETHTOOL_A_STATS_GRP_HIST_VAL, /* u64 */ 781 782 /* add new constants above here */ 783 __ETHTOOL_A_STATS_GRP_CNT, 784 ETHTOOL_A_STATS_GRP_MAX = (__ETHTOOL_A_STATS_CNT - 1) 785 }; 786 787 enum { 788 /* 30.3.2.1.5 aSymbolErrorDuringCarrier */ 789 ETHTOOL_A_STATS_ETH_PHY_5_SYM_ERR, 790 791 /* add new constants above here */ 792 __ETHTOOL_A_STATS_ETH_PHY_CNT, 793 ETHTOOL_A_STATS_ETH_PHY_MAX = (__ETHTOOL_A_STATS_ETH_PHY_CNT - 1) 794 }; 795 796 enum { 797 /* 30.3.1.1.2 aFramesTransmittedOK */ 798 ETHTOOL_A_STATS_ETH_MAC_2_TX_PKT, 799 /* 30.3.1.1.3 aSingleCollisionFrames */ 800 ETHTOOL_A_STATS_ETH_MAC_3_SINGLE_COL, 801 /* 30.3.1.1.4 aMultipleCollisionFrames */ 802 ETHTOOL_A_STATS_ETH_MAC_4_MULTI_COL, 803 /* 30.3.1.1.5 aFramesReceivedOK */ 804 ETHTOOL_A_STATS_ETH_MAC_5_RX_PKT, 805 /* 30.3.1.1.6 aFrameCheckSequenceErrors */ 806 ETHTOOL_A_STATS_ETH_MAC_6_FCS_ERR, 807 /* 30.3.1.1.7 aAlignmentErrors */ 808 ETHTOOL_A_STATS_ETH_MAC_7_ALIGN_ERR, 809 /* 30.3.1.1.8 aOctetsTransmittedOK */ 810 ETHTOOL_A_STATS_ETH_MAC_8_TX_BYTES, 811 /* 30.3.1.1.9 aFramesWithDeferredXmissions */ 812 ETHTOOL_A_STATS_ETH_MAC_9_TX_DEFER, 813 /* 30.3.1.1.10 aLateCollisions */ 814 ETHTOOL_A_STATS_ETH_MAC_10_LATE_COL, 815 /* 30.3.1.1.11 aFramesAbortedDueToXSColls */ 816 ETHTOOL_A_STATS_ETH_MAC_11_XS_COL, 817 /* 30.3.1.1.12 aFramesLostDueToIntMACXmitError */ 818 ETHTOOL_A_STATS_ETH_MAC_12_TX_INT_ERR, 819 /* 30.3.1.1.13 aCarrierSenseErrors */ 820 ETHTOOL_A_STATS_ETH_MAC_13_CS_ERR, 821 /* 30.3.1.1.14 aOctetsReceivedOK */ 822 ETHTOOL_A_STATS_ETH_MAC_14_RX_BYTES, 823 /* 30.3.1.1.15 aFramesLostDueToIntMACRcvError */ 824 ETHTOOL_A_STATS_ETH_MAC_15_RX_INT_ERR, 825 826 /* 30.3.1.1.18 aMulticastFramesXmittedOK */ 827 ETHTOOL_A_STATS_ETH_MAC_18_TX_MCAST, 828 /* 30.3.1.1.19 aBroadcastFramesXmittedOK */ 829 ETHTOOL_A_STATS_ETH_MAC_19_TX_BCAST, 830 /* 30.3.1.1.20 aFramesWithExcessiveDeferral */ 831 ETHTOOL_A_STATS_ETH_MAC_20_XS_DEFER, 832 /* 30.3.1.1.21 aMulticastFramesReceivedOK */ 833 ETHTOOL_A_STATS_ETH_MAC_21_RX_MCAST, 834 /* 30.3.1.1.22 aBroadcastFramesReceivedOK */ 835 ETHTOOL_A_STATS_ETH_MAC_22_RX_BCAST, 836 /* 30.3.1.1.23 aInRangeLengthErrors */ 837 ETHTOOL_A_STATS_ETH_MAC_23_IR_LEN_ERR, 838 /* 30.3.1.1.24 aOutOfRangeLengthField */ 839 ETHTOOL_A_STATS_ETH_MAC_24_OOR_LEN, 840 /* 30.3.1.1.25 aFrameTooLongErrors */ 841 ETHTOOL_A_STATS_ETH_MAC_25_TOO_LONG_ERR, 842 843 /* add new constants above here */ 844 __ETHTOOL_A_STATS_ETH_MAC_CNT, 845 ETHTOOL_A_STATS_ETH_MAC_MAX = (__ETHTOOL_A_STATS_ETH_MAC_CNT - 1) 846 }; 847 848 enum { 849 /* 30.3.3.3 aMACControlFramesTransmitted */ 850 ETHTOOL_A_STATS_ETH_CTRL_3_TX, 851 /* 30.3.3.4 aMACControlFramesReceived */ 852 ETHTOOL_A_STATS_ETH_CTRL_4_RX, 853 /* 30.3.3.5 aUnsupportedOpcodesReceived */ 854 ETHTOOL_A_STATS_ETH_CTRL_5_RX_UNSUP, 855 856 /* add new constants above here */ 857 __ETHTOOL_A_STATS_ETH_CTRL_CNT, 858 ETHTOOL_A_STATS_ETH_CTRL_MAX = (__ETHTOOL_A_STATS_ETH_CTRL_CNT - 1) 859 }; 860 861 enum { 862 /* etherStatsUndersizePkts */ 863 ETHTOOL_A_STATS_RMON_UNDERSIZE, 864 /* etherStatsOversizePkts */ 865 ETHTOOL_A_STATS_RMON_OVERSIZE, 866 /* etherStatsFragments */ 867 ETHTOOL_A_STATS_RMON_FRAG, 868 /* etherStatsJabbers */ 869 ETHTOOL_A_STATS_RMON_JABBER, 870 871 /* add new constants above here */ 872 __ETHTOOL_A_STATS_RMON_CNT, 873 ETHTOOL_A_STATS_RMON_MAX = (__ETHTOOL_A_STATS_RMON_CNT - 1) 874 }; 875 876 /* MODULE */ 877 878 enum { 879 ETHTOOL_A_MODULE_UNSPEC, 880 ETHTOOL_A_MODULE_HEADER, /* nest - _A_HEADER_* */ 881 ETHTOOL_A_MODULE_POWER_MODE_POLICY, /* u8 */ 882 ETHTOOL_A_MODULE_POWER_MODE, /* u8 */ 883 884 /* add new constants above here */ 885 __ETHTOOL_A_MODULE_CNT, 886 ETHTOOL_A_MODULE_MAX = (__ETHTOOL_A_MODULE_CNT - 1) 887 }; 888 889 /* Power Sourcing Equipment */ 890 enum { 891 ETHTOOL_A_PSE_UNSPEC, 892 ETHTOOL_A_PSE_HEADER, /* nest - _A_HEADER_* */ 893 ETHTOOL_A_PODL_PSE_ADMIN_STATE, /* u32 */ 894 ETHTOOL_A_PODL_PSE_ADMIN_CONTROL, /* u32 */ 895 ETHTOOL_A_PODL_PSE_PW_D_STATUS, /* u32 */ 896 897 /* add new constants above here */ 898 __ETHTOOL_A_PSE_CNT, 899 ETHTOOL_A_PSE_MAX = (__ETHTOOL_A_PSE_CNT - 1) 900 }; 901 902 enum { 903 ETHTOOL_A_RSS_UNSPEC, 904 ETHTOOL_A_RSS_HEADER, 905 ETHTOOL_A_RSS_CONTEXT, /* u32 */ 906 ETHTOOL_A_RSS_HFUNC, /* u32 */ 907 ETHTOOL_A_RSS_INDIR, /* binary */ 908 ETHTOOL_A_RSS_HKEY, /* binary */ 909 910 __ETHTOOL_A_RSS_CNT, 911 ETHTOOL_A_RSS_MAX = (__ETHTOOL_A_RSS_CNT - 1), 912 }; 913 914 /* PLCA */ 915 916 enum { 917 ETHTOOL_A_PLCA_UNSPEC, 918 ETHTOOL_A_PLCA_HEADER, /* nest - _A_HEADER_* */ 919 ETHTOOL_A_PLCA_VERSION, /* u16 */ 920 ETHTOOL_A_PLCA_ENABLED, /* u8 */ 921 ETHTOOL_A_PLCA_STATUS, /* u8 */ 922 ETHTOOL_A_PLCA_NODE_CNT, /* u32 */ 923 ETHTOOL_A_PLCA_NODE_ID, /* u32 */ 924 ETHTOOL_A_PLCA_TO_TMR, /* u32 */ 925 ETHTOOL_A_PLCA_BURST_CNT, /* u32 */ 926 ETHTOOL_A_PLCA_BURST_TMR, /* u32 */ 927 928 /* add new constants above here */ 929 __ETHTOOL_A_PLCA_CNT, 930 ETHTOOL_A_PLCA_MAX = (__ETHTOOL_A_PLCA_CNT - 1) 931 }; 932 933 /* MAC Merge (802.3) */ 934 935 enum { 936 ETHTOOL_A_MM_STAT_UNSPEC, 937 ETHTOOL_A_MM_STAT_PAD, 938 939 /* aMACMergeFrameAssErrorCount */ 940 ETHTOOL_A_MM_STAT_REASSEMBLY_ERRORS, /* u64 */ 941 /* aMACMergeFrameSmdErrorCount */ 942 ETHTOOL_A_MM_STAT_SMD_ERRORS, /* u64 */ 943 /* aMACMergeFrameAssOkCount */ 944 ETHTOOL_A_MM_STAT_REASSEMBLY_OK, /* u64 */ 945 /* aMACMergeFragCountRx */ 946 ETHTOOL_A_MM_STAT_RX_FRAG_COUNT, /* u64 */ 947 /* aMACMergeFragCountTx */ 948 ETHTOOL_A_MM_STAT_TX_FRAG_COUNT, /* u64 */ 949 /* aMACMergeHoldCount */ 950 ETHTOOL_A_MM_STAT_HOLD_COUNT, /* u64 */ 951 952 /* add new constants above here */ 953 __ETHTOOL_A_MM_STAT_CNT, 954 ETHTOOL_A_MM_STAT_MAX = (__ETHTOOL_A_MM_STAT_CNT - 1) 955 }; 956 957 enum { 958 ETHTOOL_A_MM_UNSPEC, 959 ETHTOOL_A_MM_HEADER, /* nest - _A_HEADER_* */ 960 ETHTOOL_A_MM_PMAC_ENABLED, /* u8 */ 961 ETHTOOL_A_MM_TX_ENABLED, /* u8 */ 962 ETHTOOL_A_MM_TX_ACTIVE, /* u8 */ 963 ETHTOOL_A_MM_TX_MIN_FRAG_SIZE, /* u32 */ 964 ETHTOOL_A_MM_RX_MIN_FRAG_SIZE, /* u32 */ 965 ETHTOOL_A_MM_VERIFY_ENABLED, /* u8 */ 966 ETHTOOL_A_MM_VERIFY_STATUS, /* u8 */ 967 ETHTOOL_A_MM_VERIFY_TIME, /* u32 */ 968 ETHTOOL_A_MM_MAX_VERIFY_TIME, /* u32 */ 969 ETHTOOL_A_MM_STATS, /* nest - _A_MM_STAT_* */ 970 971 /* add new constants above here */ 972 __ETHTOOL_A_MM_CNT, 973 ETHTOOL_A_MM_MAX = (__ETHTOOL_A_MM_CNT - 1) 974 }; 975 976 /* generic netlink info */ 977 #define ETHTOOL_GENL_NAME "ethtool" 978 #define ETHTOOL_GENL_VERSION 1 979 980 #define ETHTOOL_MCGRP_MONITOR_NAME "monitor" 981 982 #endif /* _UAPI_LINUX_ETHTOOL_NETLINK_H_ */ 983