ethtool-netlink.rst 129 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635
  1. =============================
  2. Netlink interface for ethtool
  3. =============================
  4. Basic information
  5. =================
  6. Netlink interface for ethtool uses generic netlink family ``ethtool``
  7. (userspace application should use macros ``ETHTOOL_GENL_NAME`` and
  8. ``ETHTOOL_GENL_VERSION`` defined in ``<linux/ethtool_netlink.h>`` uapi
  9. header). This family does not use a specific header, all information in
  10. requests and replies is passed using netlink attributes.
  11. The ethtool netlink interface uses extended ACK for error and warning
  12. reporting, userspace application developers are encouraged to make these
  13. messages available to user in a suitable way.
  14. Requests can be divided into three categories: "get" (retrieving information),
  15. "set" (setting parameters) and "action" (invoking an action).
  16. All "set" and "action" type requests require admin privileges
  17. (``CAP_NET_ADMIN`` in the namespace). Most "get" type requests are allowed for
  18. anyone but there are exceptions (where the response contains sensitive
  19. information). In some cases, the request as such is allowed for anyone but
  20. unprivileged users have attributes with sensitive information (e.g.
  21. wake-on-lan password) omitted.
  22. Conventions
  23. ===========
  24. Attributes which represent a boolean value usually use NLA_U8 type so that we
  25. can distinguish three states: "on", "off" and "not present" (meaning the
  26. information is not available in "get" requests or value is not to be changed
  27. in "set" requests). For these attributes, the "true" value should be passed as
  28. number 1 but any non-zero value should be understood as "true" by recipient.
  29. In the tables below, "bool" denotes NLA_U8 attributes interpreted in this way.
  30. In the message structure descriptions below, if an attribute name is suffixed
  31. with "+", parent nest can contain multiple attributes of the same type. This
  32. implements an array of entries.
  33. Attributes that need to be filled-in by device drivers and that are dumped to
  34. user space based on whether they are valid or not should not use zero as a
  35. valid value. This avoids the need to explicitly signal the validity of the
  36. attribute in the device driver API.
  37. Request header
  38. ==============
  39. Each request or reply message contains a nested attribute with common header.
  40. Structure of this header is
  41. ============================== ====== =============================
  42. ``ETHTOOL_A_HEADER_DEV_INDEX`` u32 device ifindex
  43. ``ETHTOOL_A_HEADER_DEV_NAME`` string device name
  44. ``ETHTOOL_A_HEADER_FLAGS`` u32 flags common for all requests
  45. ``ETHTOOL_A_HEADER_PHY_INDEX`` u32 phy device index
  46. ============================== ====== =============================
  47. ``ETHTOOL_A_HEADER_DEV_INDEX`` and ``ETHTOOL_A_HEADER_DEV_NAME`` identify the
  48. device message relates to. One of them is sufficient in requests, if both are
  49. used, they must identify the same device. Some requests, e.g. global string
  50. sets, do not require device identification. Most ``GET`` requests also allow
  51. dump requests without device identification to query the same information for
  52. all devices providing it (each device in a separate message).
  53. ``ETHTOOL_A_HEADER_FLAGS`` is a bitmap of request flags common for all request
  54. types. The interpretation of these flags is the same for all request types but
  55. the flags may not apply to requests. Recognized flags are:
  56. ================================= ===================================
  57. ``ETHTOOL_FLAG_COMPACT_BITSETS`` use compact format bitsets in reply
  58. ``ETHTOOL_FLAG_OMIT_REPLY`` omit optional reply (_SET and _ACT)
  59. ``ETHTOOL_FLAG_STATS`` include optional device statistics
  60. ================================= ===================================
  61. New request flags should follow the general idea that if the flag is not set,
  62. the behaviour is backward compatible, i.e. requests from old clients not aware
  63. of the flag should be interpreted the way the client expects. A client must
  64. not set flags it does not understand.
  65. ``ETHTOOL_A_HEADER_PHY_INDEX`` identifies the Ethernet PHY the message relates to.
  66. As there are numerous commands that are related to PHY configuration, and because
  67. there may be more than one PHY on the link, the PHY index can be passed in the
  68. request for the commands that needs it. It is, however, not mandatory, and if it
  69. is not passed for commands that target a PHY, the net_device.phydev pointer
  70. is used.
  71. Bit sets
  72. ========
  73. For short bitmaps of (reasonably) fixed length, standard ``NLA_BITFIELD32``
  74. type is used. For arbitrary length bitmaps, ethtool netlink uses a nested
  75. attribute with contents of one of two forms: compact (two binary bitmaps
  76. representing bit values and mask of affected bits) and bit-by-bit (list of
  77. bits identified by either index or name).
  78. Verbose (bit-by-bit) bitsets allow sending symbolic names for bits together
  79. with their values which saves a round trip (when the bitset is passed in a
  80. request) or at least a second request (when the bitset is in a reply). This is
  81. useful for one shot applications like traditional ethtool command. On the
  82. other hand, long running applications like ethtool monitor (displaying
  83. notifications) or network management daemons may prefer fetching the names
  84. only once and using compact form to save message size. Notifications from
  85. ethtool netlink interface always use compact form for bitsets.
  86. A bitset can represent either a value/mask pair (``ETHTOOL_A_BITSET_NOMASK``
  87. not set) or a single bitmap (``ETHTOOL_A_BITSET_NOMASK`` set). In requests
  88. modifying a bitmap, the former changes the bit set in mask to values set in
  89. value and preserves the rest; the latter sets the bits set in the bitmap and
  90. clears the rest.
  91. Compact form: nested (bitset) attribute contents:
  92. ============================ ====== ============================
  93. ``ETHTOOL_A_BITSET_NOMASK`` flag no mask, only a list
  94. ``ETHTOOL_A_BITSET_SIZE`` u32 number of significant bits
  95. ``ETHTOOL_A_BITSET_VALUE`` binary bitmap of bit values
  96. ``ETHTOOL_A_BITSET_MASK`` binary bitmap of valid bits
  97. ============================ ====== ============================
  98. Value and mask must have length at least ``ETHTOOL_A_BITSET_SIZE`` bits
  99. rounded up to a multiple of 32 bits. They consist of 32-bit words in host byte
  100. order, words ordered from least significant to most significant (i.e. the same
  101. way as bitmaps are passed with ioctl interface).
  102. For compact form, ``ETHTOOL_A_BITSET_SIZE`` and ``ETHTOOL_A_BITSET_VALUE`` are
  103. mandatory. ``ETHTOOL_A_BITSET_MASK`` attribute is mandatory if
  104. ``ETHTOOL_A_BITSET_NOMASK`` is not set (bitset represents a value/mask pair);
  105. if ``ETHTOOL_A_BITSET_NOMASK`` is not set, ``ETHTOOL_A_BITSET_MASK`` is not
  106. allowed (bitset represents a single bitmap.
  107. Kernel bit set length may differ from userspace length if older application is
  108. used on newer kernel or vice versa. If userspace bitmap is longer, an error is
  109. issued only if the request actually tries to set values of some bits not
  110. recognized by kernel.
  111. Bit-by-bit form: nested (bitset) attribute contents:
  112. +------------------------------------+--------+-----------------------------+
  113. | ``ETHTOOL_A_BITSET_NOMASK`` | flag | no mask, only a list |
  114. +------------------------------------+--------+-----------------------------+
  115. | ``ETHTOOL_A_BITSET_SIZE`` | u32 | number of significant bits |
  116. +------------------------------------+--------+-----------------------------+
  117. | ``ETHTOOL_A_BITSET_BITS`` | nested | array of bits |
  118. +-+----------------------------------+--------+-----------------------------+
  119. | | ``ETHTOOL_A_BITSET_BITS_BIT+`` | nested | one bit |
  120. +-+-+--------------------------------+--------+-----------------------------+
  121. | | | ``ETHTOOL_A_BITSET_BIT_INDEX`` | u32 | bit index (0 for LSB) |
  122. +-+-+--------------------------------+--------+-----------------------------+
  123. | | | ``ETHTOOL_A_BITSET_BIT_NAME`` | string | bit name |
  124. +-+-+--------------------------------+--------+-----------------------------+
  125. | | | ``ETHTOOL_A_BITSET_BIT_VALUE`` | flag | present if bit is set |
  126. +-+-+--------------------------------+--------+-----------------------------+
  127. Bit size is optional for bit-by-bit form. ``ETHTOOL_A_BITSET_BITS`` nest can
  128. only contain ``ETHTOOL_A_BITSET_BITS_BIT`` attributes but there can be an
  129. arbitrary number of them. A bit may be identified by its index or by its
  130. name. When used in requests, listed bits are set to 0 or 1 according to
  131. ``ETHTOOL_A_BITSET_BIT_VALUE``, the rest is preserved. A request fails if
  132. index exceeds kernel bit length or if name is not recognized.
  133. When ``ETHTOOL_A_BITSET_NOMASK`` flag is present, bitset is interpreted as
  134. a simple bitmap. ``ETHTOOL_A_BITSET_BIT_VALUE`` attributes are not used in
  135. such case. Such bitset represents a bitmap with listed bits set and the rest
  136. zero.
  137. In requests, application can use either form. Form used by kernel in reply is
  138. determined by ``ETHTOOL_FLAG_COMPACT_BITSETS`` flag in flags field of request
  139. header. Semantics of value and mask depends on the attribute.
  140. List of message types
  141. =====================
  142. All constants identifying message types use ``ETHTOOL_CMD_`` prefix and suffix
  143. according to message purpose:
  144. ============== ======================================
  145. ``_GET`` userspace request to retrieve data
  146. ``_SET`` userspace request to set data
  147. ``_ACT`` userspace request to perform an action
  148. ``_GET_REPLY`` kernel reply to a ``GET`` request
  149. ``_SET_REPLY`` kernel reply to a ``SET`` request
  150. ``_ACT_REPLY`` kernel reply to an ``ACT`` request
  151. ``_NTF`` kernel notification
  152. ============== ======================================
  153. Userspace to kernel:
  154. ===================================== =================================
  155. ``ETHTOOL_MSG_STRSET_GET`` get string set
  156. ``ETHTOOL_MSG_LINKINFO_GET`` get link settings
  157. ``ETHTOOL_MSG_LINKINFO_SET`` set link settings
  158. ``ETHTOOL_MSG_LINKMODES_GET`` get link modes info
  159. ``ETHTOOL_MSG_LINKMODES_SET`` set link modes info
  160. ``ETHTOOL_MSG_LINKSTATE_GET`` get link state
  161. ``ETHTOOL_MSG_DEBUG_GET`` get debugging settings
  162. ``ETHTOOL_MSG_DEBUG_SET`` set debugging settings
  163. ``ETHTOOL_MSG_WOL_GET`` get wake-on-lan settings
  164. ``ETHTOOL_MSG_WOL_SET`` set wake-on-lan settings
  165. ``ETHTOOL_MSG_FEATURES_GET`` get device features
  166. ``ETHTOOL_MSG_FEATURES_SET`` set device features
  167. ``ETHTOOL_MSG_PRIVFLAGS_GET`` get private flags
  168. ``ETHTOOL_MSG_PRIVFLAGS_SET`` set private flags
  169. ``ETHTOOL_MSG_RINGS_GET`` get ring sizes
  170. ``ETHTOOL_MSG_RINGS_SET`` set ring sizes
  171. ``ETHTOOL_MSG_CHANNELS_GET`` get channel counts
  172. ``ETHTOOL_MSG_CHANNELS_SET`` set channel counts
  173. ``ETHTOOL_MSG_COALESCE_GET`` get coalescing parameters
  174. ``ETHTOOL_MSG_COALESCE_SET`` set coalescing parameters
  175. ``ETHTOOL_MSG_PAUSE_GET`` get pause parameters
  176. ``ETHTOOL_MSG_PAUSE_SET`` set pause parameters
  177. ``ETHTOOL_MSG_EEE_GET`` get EEE settings
  178. ``ETHTOOL_MSG_EEE_SET`` set EEE settings
  179. ``ETHTOOL_MSG_TSINFO_GET`` get timestamping info
  180. ``ETHTOOL_MSG_CABLE_TEST_ACT`` action start cable test
  181. ``ETHTOOL_MSG_CABLE_TEST_TDR_ACT`` action start raw TDR cable test
  182. ``ETHTOOL_MSG_TUNNEL_INFO_GET`` get tunnel offload info
  183. ``ETHTOOL_MSG_FEC_GET`` get FEC settings
  184. ``ETHTOOL_MSG_FEC_SET`` set FEC settings
  185. ``ETHTOOL_MSG_MODULE_EEPROM_GET`` read SFP module EEPROM
  186. ``ETHTOOL_MSG_STATS_GET`` get standard statistics
  187. ``ETHTOOL_MSG_PHC_VCLOCKS_GET`` get PHC virtual clocks info
  188. ``ETHTOOL_MSG_MODULE_SET`` set transceiver module parameters
  189. ``ETHTOOL_MSG_MODULE_GET`` get transceiver module parameters
  190. ``ETHTOOL_MSG_PSE_SET`` set PSE parameters
  191. ``ETHTOOL_MSG_PSE_GET`` get PSE parameters
  192. ``ETHTOOL_MSG_RSS_GET`` get RSS settings
  193. ``ETHTOOL_MSG_PLCA_GET_CFG`` get PLCA RS parameters
  194. ``ETHTOOL_MSG_PLCA_SET_CFG`` set PLCA RS parameters
  195. ``ETHTOOL_MSG_PLCA_GET_STATUS`` get PLCA RS status
  196. ``ETHTOOL_MSG_MM_GET`` get MAC merge layer state
  197. ``ETHTOOL_MSG_MM_SET`` set MAC merge layer parameters
  198. ``ETHTOOL_MSG_MODULE_FW_FLASH_ACT`` flash transceiver module firmware
  199. ``ETHTOOL_MSG_PHY_GET`` get Ethernet PHY information
  200. ``ETHTOOL_MSG_TSCONFIG_GET`` get hw timestamping configuration
  201. ``ETHTOOL_MSG_TSCONFIG_SET`` set hw timestamping configuration
  202. ``ETHTOOL_MSG_RSS_SET`` set RSS settings
  203. ``ETHTOOL_MSG_RSS_CREATE_ACT`` create an additional RSS context
  204. ``ETHTOOL_MSG_RSS_DELETE_ACT`` delete an additional RSS context
  205. ``ETHTOOL_MSG_MSE_GET`` get MSE diagnostic data
  206. ===================================== =================================
  207. Kernel to userspace:
  208. ======================================== =================================
  209. ``ETHTOOL_MSG_STRSET_GET_REPLY`` string set contents
  210. ``ETHTOOL_MSG_LINKINFO_GET_REPLY`` link settings
  211. ``ETHTOOL_MSG_LINKINFO_NTF`` link settings notification
  212. ``ETHTOOL_MSG_LINKMODES_GET_REPLY`` link modes info
  213. ``ETHTOOL_MSG_LINKMODES_NTF`` link modes notification
  214. ``ETHTOOL_MSG_LINKSTATE_GET_REPLY`` link state info
  215. ``ETHTOOL_MSG_DEBUG_GET_REPLY`` debugging settings
  216. ``ETHTOOL_MSG_DEBUG_NTF`` debugging settings notification
  217. ``ETHTOOL_MSG_WOL_GET_REPLY`` wake-on-lan settings
  218. ``ETHTOOL_MSG_WOL_NTF`` wake-on-lan settings notification
  219. ``ETHTOOL_MSG_FEATURES_GET_REPLY`` device features
  220. ``ETHTOOL_MSG_FEATURES_SET_REPLY`` optional reply to FEATURES_SET
  221. ``ETHTOOL_MSG_FEATURES_NTF`` netdev features notification
  222. ``ETHTOOL_MSG_PRIVFLAGS_GET_REPLY`` private flags
  223. ``ETHTOOL_MSG_PRIVFLAGS_NTF`` private flags
  224. ``ETHTOOL_MSG_RINGS_GET_REPLY`` ring sizes
  225. ``ETHTOOL_MSG_RINGS_NTF`` ring sizes
  226. ``ETHTOOL_MSG_CHANNELS_GET_REPLY`` channel counts
  227. ``ETHTOOL_MSG_CHANNELS_NTF`` channel counts
  228. ``ETHTOOL_MSG_COALESCE_GET_REPLY`` coalescing parameters
  229. ``ETHTOOL_MSG_COALESCE_NTF`` coalescing parameters
  230. ``ETHTOOL_MSG_PAUSE_GET_REPLY`` pause parameters
  231. ``ETHTOOL_MSG_PAUSE_NTF`` pause parameters
  232. ``ETHTOOL_MSG_EEE_GET_REPLY`` EEE settings
  233. ``ETHTOOL_MSG_EEE_NTF`` EEE settings
  234. ``ETHTOOL_MSG_TSINFO_GET_REPLY`` timestamping info
  235. ``ETHTOOL_MSG_CABLE_TEST_NTF`` Cable test results
  236. ``ETHTOOL_MSG_CABLE_TEST_TDR_NTF`` Cable test TDR results
  237. ``ETHTOOL_MSG_TUNNEL_INFO_GET_REPLY`` tunnel offload info
  238. ``ETHTOOL_MSG_FEC_GET_REPLY`` FEC settings
  239. ``ETHTOOL_MSG_FEC_NTF`` FEC settings
  240. ``ETHTOOL_MSG_MODULE_EEPROM_GET_REPLY`` read SFP module EEPROM
  241. ``ETHTOOL_MSG_STATS_GET_REPLY`` standard statistics
  242. ``ETHTOOL_MSG_PHC_VCLOCKS_GET_REPLY`` PHC virtual clocks info
  243. ``ETHTOOL_MSG_MODULE_GET_REPLY`` transceiver module parameters
  244. ``ETHTOOL_MSG_PSE_GET_REPLY`` PSE parameters
  245. ``ETHTOOL_MSG_RSS_GET_REPLY`` RSS settings
  246. ``ETHTOOL_MSG_RSS_NTF`` RSS settings
  247. ``ETHTOOL_MSG_PLCA_GET_CFG_REPLY`` PLCA RS parameters
  248. ``ETHTOOL_MSG_PLCA_GET_STATUS_REPLY`` PLCA RS status
  249. ``ETHTOOL_MSG_PLCA_NTF`` PLCA RS parameters
  250. ``ETHTOOL_MSG_MM_GET_REPLY`` MAC merge layer status
  251. ``ETHTOOL_MSG_MODULE_FW_FLASH_NTF`` transceiver module flash updates
  252. ``ETHTOOL_MSG_PHY_GET_REPLY`` Ethernet PHY information
  253. ``ETHTOOL_MSG_PHY_NTF`` Ethernet PHY information change
  254. ``ETHTOOL_MSG_TSCONFIG_GET_REPLY`` hw timestamping configuration
  255. ``ETHTOOL_MSG_TSCONFIG_SET_REPLY`` new hw timestamping configuration
  256. ``ETHTOOL_MSG_PSE_NTF`` PSE events notification
  257. ``ETHTOOL_MSG_RSS_NTF`` RSS settings notification
  258. ``ETHTOOL_MSG_RSS_CREATE_ACT_REPLY`` create an additional RSS context
  259. ``ETHTOOL_MSG_RSS_CREATE_NTF`` additional RSS context created
  260. ``ETHTOOL_MSG_RSS_DELETE_NTF`` additional RSS context deleted
  261. ``ETHTOOL_MSG_MSE_GET_REPLY`` MSE diagnostic data
  262. ======================================== =================================
  263. ``GET`` requests are sent by userspace applications to retrieve device
  264. information. They usually do not contain any message specific attributes.
  265. Kernel replies with corresponding "GET_REPLY" message. For most types, ``GET``
  266. request with ``NLM_F_DUMP`` and no device identification can be used to query
  267. the information for all devices supporting the request.
  268. If the data can be also modified, corresponding ``SET`` message with the same
  269. layout as corresponding ``GET_REPLY`` is used to request changes. Only
  270. attributes where a change is requested are included in such request (also, not
  271. all attributes may be changed). Replies to most ``SET`` request consist only
  272. of error code and extack; if kernel provides additional data, it is sent in
  273. the form of corresponding ``SET_REPLY`` message which can be suppressed by
  274. setting ``ETHTOOL_FLAG_OMIT_REPLY`` flag in request header.
  275. Data modification also triggers sending a ``NTF`` message with a notification.
  276. These usually bear only a subset of attributes which was affected by the
  277. change. The same notification is issued if the data is modified using other
  278. means (mostly ioctl ethtool interface). Unlike notifications from ethtool
  279. netlink code which are only sent if something actually changed, notifications
  280. triggered by ioctl interface may be sent even if the request did not actually
  281. change any data.
  282. ``ACT`` messages request kernel (driver) to perform a specific action. If some
  283. information is reported by kernel (which can be suppressed by setting
  284. ``ETHTOOL_FLAG_OMIT_REPLY`` flag in request header), the reply takes form of
  285. an ``ACT_REPLY`` message. Performing an action also triggers a notification
  286. (``NTF`` message).
  287. Later sections describe the format and semantics of these messages.
  288. STRSET_GET
  289. ==========
  290. Requests contents of a string set as provided by ioctl commands
  291. ``ETHTOOL_GSSET_INFO`` and ``ETHTOOL_GSTRINGS.`` String sets are not user
  292. writeable so that the corresponding ``STRSET_SET`` message is only used in
  293. kernel replies. There are two types of string sets: global (independent of
  294. a device, e.g. device feature names) and device specific (e.g. device private
  295. flags).
  296. Request contents:
  297. +---------------------------------------+--------+------------------------+
  298. | ``ETHTOOL_A_STRSET_HEADER`` | nested | request header |
  299. +---------------------------------------+--------+------------------------+
  300. | ``ETHTOOL_A_STRSET_STRINGSETS`` | nested | string set to request |
  301. +-+-------------------------------------+--------+------------------------+
  302. | | ``ETHTOOL_A_STRINGSETS_STRINGSET+`` | nested | one string set |
  303. +-+-+-----------------------------------+--------+------------------------+
  304. | | | ``ETHTOOL_A_STRINGSET_ID`` | u32 | set id |
  305. +-+-+-----------------------------------+--------+------------------------+
  306. Kernel response contents:
  307. +---------------------------------------+--------+-----------------------+
  308. | ``ETHTOOL_A_STRSET_HEADER`` | nested | reply header |
  309. +---------------------------------------+--------+-----------------------+
  310. | ``ETHTOOL_A_STRSET_STRINGSETS`` | nested | array of string sets |
  311. +-+-------------------------------------+--------+-----------------------+
  312. | | ``ETHTOOL_A_STRINGSETS_STRINGSET+`` | nested | one string set |
  313. +-+-+-----------------------------------+--------+-----------------------+
  314. | | | ``ETHTOOL_A_STRINGSET_ID`` | u32 | set id |
  315. +-+-+-----------------------------------+--------+-----------------------+
  316. | | | ``ETHTOOL_A_STRINGSET_COUNT`` | u32 | number of strings |
  317. +-+-+-----------------------------------+--------+-----------------------+
  318. | | | ``ETHTOOL_A_STRINGSET_STRINGS`` | nested | array of strings |
  319. +-+-+-+---------------------------------+--------+-----------------------+
  320. | | | | ``ETHTOOL_A_STRINGS_STRING+`` | nested | one string |
  321. +-+-+-+-+-------------------------------+--------+-----------------------+
  322. | | | | | ``ETHTOOL_A_STRING_INDEX`` | u32 | string index |
  323. +-+-+-+-+-------------------------------+--------+-----------------------+
  324. | | | | | ``ETHTOOL_A_STRING_VALUE`` | string | string value |
  325. +-+-+-+-+-------------------------------+--------+-----------------------+
  326. | ``ETHTOOL_A_STRSET_COUNTS_ONLY`` | flag | return only counts |
  327. +---------------------------------------+--------+-----------------------+
  328. Device identification in request header is optional. Depending on its presence
  329. a and ``NLM_F_DUMP`` flag, there are three type of ``STRSET_GET`` requests:
  330. - no ``NLM_F_DUMP,`` no device: get "global" stringsets
  331. - no ``NLM_F_DUMP``, with device: get string sets related to the device
  332. - ``NLM_F_DUMP``, no device: get device related string sets for all devices
  333. If there is no ``ETHTOOL_A_STRSET_STRINGSETS`` array, all string sets of
  334. requested type are returned, otherwise only those specified in the request.
  335. Flag ``ETHTOOL_A_STRSET_COUNTS_ONLY`` tells kernel to only return string
  336. counts of the sets, not the actual strings.
  337. LINKINFO_GET
  338. ============
  339. Requests link settings as provided by ``ETHTOOL_GLINKSETTINGS`` except for
  340. link modes and autonegotiation related information. The request does not use
  341. any attributes.
  342. Request contents:
  343. ==================================== ====== ==========================
  344. ``ETHTOOL_A_LINKINFO_HEADER`` nested request header
  345. ==================================== ====== ==========================
  346. Kernel response contents:
  347. ==================================== ====== ==========================
  348. ``ETHTOOL_A_LINKINFO_HEADER`` nested reply header
  349. ``ETHTOOL_A_LINKINFO_PORT`` u8 physical port
  350. ``ETHTOOL_A_LINKINFO_PHYADDR`` u8 phy MDIO address
  351. ``ETHTOOL_A_LINKINFO_TP_MDIX`` u8 MDI(-X) status
  352. ``ETHTOOL_A_LINKINFO_TP_MDIX_CTRL`` u8 MDI(-X) control
  353. ``ETHTOOL_A_LINKINFO_TRANSCEIVER`` u8 transceiver
  354. ==================================== ====== ==========================
  355. Attributes and their values have the same meaning as matching members of the
  356. corresponding ioctl structures.
  357. ``LINKINFO_GET`` allows dump requests (kernel returns reply message for all
  358. devices supporting the request).
  359. LINKINFO_SET
  360. ============
  361. ``LINKINFO_SET`` request allows setting some of the attributes reported by
  362. ``LINKINFO_GET``.
  363. Request contents:
  364. ==================================== ====== ==========================
  365. ``ETHTOOL_A_LINKINFO_HEADER`` nested request header
  366. ``ETHTOOL_A_LINKINFO_PORT`` u8 physical port
  367. ``ETHTOOL_A_LINKINFO_PHYADDR`` u8 phy MDIO address
  368. ``ETHTOOL_A_LINKINFO_TP_MDIX_CTRL`` u8 MDI(-X) control
  369. ==================================== ====== ==========================
  370. MDI(-X) status and transceiver cannot be set, request with the corresponding
  371. attributes is rejected.
  372. LINKMODES_GET
  373. =============
  374. Requests link modes (supported, advertised and peer advertised) and related
  375. information (autonegotiation status, link speed and duplex) as provided by
  376. ``ETHTOOL_GLINKSETTINGS``. The request does not use any attributes.
  377. Request contents:
  378. ==================================== ====== ==========================
  379. ``ETHTOOL_A_LINKMODES_HEADER`` nested request header
  380. ==================================== ====== ==========================
  381. Kernel response contents:
  382. ========================================== ====== ==========================
  383. ``ETHTOOL_A_LINKMODES_HEADER`` nested reply header
  384. ``ETHTOOL_A_LINKMODES_AUTONEG`` u8 autonegotiation status
  385. ``ETHTOOL_A_LINKMODES_OURS`` bitset advertised link modes
  386. ``ETHTOOL_A_LINKMODES_PEER`` bitset partner link modes
  387. ``ETHTOOL_A_LINKMODES_SPEED`` u32 link speed (Mb/s)
  388. ``ETHTOOL_A_LINKMODES_DUPLEX`` u8 duplex mode
  389. ``ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG`` u8 Master/slave port mode
  390. ``ETHTOOL_A_LINKMODES_MASTER_SLAVE_STATE`` u8 Master/slave port state
  391. ``ETHTOOL_A_LINKMODES_RATE_MATCHING`` u8 PHY rate matching
  392. ========================================== ====== ==========================
  393. For ``ETHTOOL_A_LINKMODES_OURS``, value represents advertised modes and mask
  394. represents supported modes. ``ETHTOOL_A_LINKMODES_PEER`` in the reply is a bit
  395. list.
  396. ``LINKMODES_GET`` allows dump requests (kernel returns reply messages for all
  397. devices supporting the request).
  398. LINKMODES_SET
  399. =============
  400. Request contents:
  401. ========================================== ====== ==========================
  402. ``ETHTOOL_A_LINKMODES_HEADER`` nested request header
  403. ``ETHTOOL_A_LINKMODES_AUTONEG`` u8 autonegotiation status
  404. ``ETHTOOL_A_LINKMODES_OURS`` bitset advertised link modes
  405. ``ETHTOOL_A_LINKMODES_PEER`` bitset partner link modes
  406. ``ETHTOOL_A_LINKMODES_SPEED`` u32 link speed (Mb/s)
  407. ``ETHTOOL_A_LINKMODES_DUPLEX`` u8 duplex mode
  408. ``ETHTOOL_A_LINKMODES_MASTER_SLAVE_CFG`` u8 Master/slave port mode
  409. ``ETHTOOL_A_LINKMODES_RATE_MATCHING`` u8 PHY rate matching
  410. ``ETHTOOL_A_LINKMODES_LANES`` u32 lanes
  411. ========================================== ====== ==========================
  412. ``ETHTOOL_A_LINKMODES_OURS`` bit set allows setting advertised link modes. If
  413. autonegotiation is on (either set now or kept from before), advertised modes
  414. are not changed (no ``ETHTOOL_A_LINKMODES_OURS`` attribute) and at least one
  415. of speed, duplex and lanes is specified, kernel adjusts advertised modes to all
  416. supported modes matching speed, duplex, lanes or all (whatever is specified).
  417. This autoselection is done on ethtool side with ioctl interface, netlink
  418. interface is supposed to allow requesting changes without knowing what exactly
  419. kernel supports.
  420. LINKSTATE_GET
  421. =============
  422. Requests link state information. Link up/down flag (as provided by
  423. ``ETHTOOL_GLINK`` ioctl command) is provided. Optionally, extended state might
  424. be provided as well. In general, extended state describes reasons for why a port
  425. is down, or why it operates in some non-obvious mode. This request does not have
  426. any attributes.
  427. Request contents:
  428. ==================================== ====== ==========================
  429. ``ETHTOOL_A_LINKSTATE_HEADER`` nested request header
  430. ==================================== ====== ==========================
  431. Kernel response contents:
  432. ==================================== ====== ============================
  433. ``ETHTOOL_A_LINKSTATE_HEADER`` nested reply header
  434. ``ETHTOOL_A_LINKSTATE_LINK`` bool link state (up/down)
  435. ``ETHTOOL_A_LINKSTATE_SQI`` u32 Current Signal Quality Index
  436. ``ETHTOOL_A_LINKSTATE_SQI_MAX`` u32 Max support SQI value
  437. ``ETHTOOL_A_LINKSTATE_EXT_STATE`` u8 link extended state
  438. ``ETHTOOL_A_LINKSTATE_EXT_SUBSTATE`` u8 link extended substate
  439. ``ETHTOOL_A_LINKSTATE_EXT_DOWN_CNT`` u32 count of link down events
  440. ==================================== ====== ============================
  441. For most NIC drivers, the value of ``ETHTOOL_A_LINKSTATE_LINK`` returns
  442. carrier flag provided by ``netif_carrier_ok()`` but there are drivers which
  443. define their own handler.
  444. ``ETHTOOL_A_LINKSTATE_EXT_STATE`` and ``ETHTOOL_A_LINKSTATE_EXT_SUBSTATE`` are
  445. optional values. ethtool core can provide either both
  446. ``ETHTOOL_A_LINKSTATE_EXT_STATE`` and ``ETHTOOL_A_LINKSTATE_EXT_SUBSTATE``,
  447. or only ``ETHTOOL_A_LINKSTATE_EXT_STATE``, or none of them.
  448. ``LINKSTATE_GET`` allows dump requests (kernel returns reply messages for all
  449. devices supporting the request).
  450. Link extended states:
  451. ================================================ ============================================
  452. ``ETHTOOL_LINK_EXT_STATE_AUTONEG`` States relating to the autonegotiation or
  453. issues therein
  454. ``ETHTOOL_LINK_EXT_STATE_LINK_TRAINING_FAILURE`` Failure during link training
  455. ``ETHTOOL_LINK_EXT_STATE_LINK_LOGICAL_MISMATCH`` Logical mismatch in physical coding sublayer
  456. or forward error correction sublayer
  457. ``ETHTOOL_LINK_EXT_STATE_BAD_SIGNAL_INTEGRITY`` Signal integrity issues
  458. ``ETHTOOL_LINK_EXT_STATE_NO_CABLE`` No cable connected
  459. ``ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE`` Failure is related to cable,
  460. e.g., unsupported cable
  461. ``ETHTOOL_LINK_EXT_STATE_EEPROM_ISSUE`` Failure is related to EEPROM, e.g., failure
  462. during reading or parsing the data
  463. ``ETHTOOL_LINK_EXT_STATE_CALIBRATION_FAILURE`` Failure during calibration algorithm
  464. ``ETHTOOL_LINK_EXT_STATE_POWER_BUDGET_EXCEEDED`` The hardware is not able to provide the
  465. power required from cable or module
  466. ``ETHTOOL_LINK_EXT_STATE_OVERHEAT`` The module is overheated
  467. ``ETHTOOL_LINK_EXT_STATE_MODULE`` Transceiver module issue
  468. ================================================ ============================================
  469. Link extended substates:
  470. Autoneg substates:
  471. =============================================================== ================================
  472. ``ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED`` Peer side is down
  473. ``ETHTOOL_LINK_EXT_SUBSTATE_AN_ACK_NOT_RECEIVED`` Ack not received from peer side
  474. ``ETHTOOL_LINK_EXT_SUBSTATE_AN_NEXT_PAGE_EXCHANGE_FAILED`` Next page exchange failed
  475. ``ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_PARTNER_DETECTED_FORCE_MODE`` Peer side is down during force
  476. mode or there is no agreement of
  477. speed
  478. ``ETHTOOL_LINK_EXT_SUBSTATE_AN_FEC_MISMATCH_DURING_OVERRIDE`` Forward error correction modes
  479. in both sides are mismatched
  480. ``ETHTOOL_LINK_EXT_SUBSTATE_AN_NO_HCD`` No Highest Common Denominator
  481. =============================================================== ================================
  482. Link training substates:
  483. =========================================================================== ====================
  484. ``ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_FRAME_LOCK_NOT_ACQUIRED`` Frames were not
  485. recognized, the
  486. lock failed
  487. ``ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_INHIBIT_TIMEOUT`` The lock did not
  488. occur before
  489. timeout
  490. ``ETHTOOL_LINK_EXT_SUBSTATE_LT_KR_LINK_PARTNER_DID_NOT_SET_RECEIVER_READY`` Peer side did not
  491. send ready signal
  492. after training
  493. process
  494. ``ETHTOOL_LINK_EXT_SUBSTATE_LT_REMOTE_FAULT`` Remote side is not
  495. ready yet
  496. =========================================================================== ====================
  497. Link logical mismatch substates:
  498. ================================================================ ===============================
  499. ``ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_BLOCK_LOCK`` Physical coding sublayer was
  500. not locked in first phase -
  501. block lock
  502. ``ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_ACQUIRE_AM_LOCK`` Physical coding sublayer was
  503. not locked in second phase -
  504. alignment markers lock
  505. ``ETHTOOL_LINK_EXT_SUBSTATE_LLM_PCS_DID_NOT_GET_ALIGN_STATUS`` Physical coding sublayer did
  506. not get align status
  507. ``ETHTOOL_LINK_EXT_SUBSTATE_LLM_FC_FEC_IS_NOT_LOCKED`` FC forward error correction is
  508. not locked
  509. ``ETHTOOL_LINK_EXT_SUBSTATE_LLM_RS_FEC_IS_NOT_LOCKED`` RS forward error correction is
  510. not locked
  511. ================================================================ ===============================
  512. Bad signal integrity substates:
  513. ================================================================= =============================
  514. ``ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS`` Large number of physical
  515. errors
  516. ``ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE`` The system attempted to
  517. operate the cable at a rate
  518. that is not formally
  519. supported, which led to
  520. signal integrity issues
  521. ``ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_REFERENCE_CLOCK_LOST`` The external clock signal for
  522. SerDes is too weak or
  523. unavailable.
  524. ``ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_ALOS`` The received signal for
  525. SerDes is too weak because
  526. analog loss of signal.
  527. ================================================================= =============================
  528. Cable issue substates:
  529. =================================================== ============================================
  530. ``ETHTOOL_LINK_EXT_SUBSTATE_CI_UNSUPPORTED_CABLE`` Unsupported cable
  531. ``ETHTOOL_LINK_EXT_SUBSTATE_CI_CABLE_TEST_FAILURE`` Cable test failure
  532. =================================================== ============================================
  533. Transceiver module issue substates:
  534. =================================================== ============================================
  535. ``ETHTOOL_LINK_EXT_SUBSTATE_MODULE_CMIS_NOT_READY`` The CMIS Module State Machine did not reach
  536. the ModuleReady state. For example, if the
  537. module is stuck at ModuleFault state
  538. =================================================== ============================================
  539. DEBUG_GET
  540. =========
  541. Requests debugging settings of a device. At the moment, only message mask is
  542. provided.
  543. Request contents:
  544. ==================================== ====== ==========================
  545. ``ETHTOOL_A_DEBUG_HEADER`` nested request header
  546. ==================================== ====== ==========================
  547. Kernel response contents:
  548. ==================================== ====== ==========================
  549. ``ETHTOOL_A_DEBUG_HEADER`` nested reply header
  550. ``ETHTOOL_A_DEBUG_MSGMASK`` bitset message mask
  551. ==================================== ====== ==========================
  552. The message mask (``ETHTOOL_A_DEBUG_MSGMASK``) is equal to message level as
  553. provided by ``ETHTOOL_GMSGLVL`` and set by ``ETHTOOL_SMSGLVL`` in ioctl
  554. interface. While it is called message level there for historical reasons, most
  555. drivers and almost all newer drivers use it as a mask of enabled message
  556. classes (represented by ``NETIF_MSG_*`` constants); therefore netlink
  557. interface follows its actual use in practice.
  558. ``DEBUG_GET`` allows dump requests (kernel returns reply messages for all
  559. devices supporting the request).
  560. DEBUG_SET
  561. =========
  562. Set or update debugging settings of a device. At the moment, only message mask
  563. is supported.
  564. Request contents:
  565. ==================================== ====== ==========================
  566. ``ETHTOOL_A_DEBUG_HEADER`` nested request header
  567. ``ETHTOOL_A_DEBUG_MSGMASK`` bitset message mask
  568. ==================================== ====== ==========================
  569. ``ETHTOOL_A_DEBUG_MSGMASK`` bit set allows setting or modifying mask of
  570. enabled debugging message types for the device.
  571. WOL_GET
  572. =======
  573. Query device wake-on-lan settings. Unlike most "GET" type requests,
  574. ``ETHTOOL_MSG_WOL_GET`` requires (netns) ``CAP_NET_ADMIN`` privileges as it
  575. (potentially) provides SecureOn(tm) password which is confidential.
  576. Request contents:
  577. ==================================== ====== ==========================
  578. ``ETHTOOL_A_WOL_HEADER`` nested request header
  579. ==================================== ====== ==========================
  580. Kernel response contents:
  581. ==================================== ====== ==========================
  582. ``ETHTOOL_A_WOL_HEADER`` nested reply header
  583. ``ETHTOOL_A_WOL_MODES`` bitset mask of enabled WoL modes
  584. ``ETHTOOL_A_WOL_SOPASS`` binary SecureOn(tm) password
  585. ==================================== ====== ==========================
  586. In reply, ``ETHTOOL_A_WOL_MODES`` mask consists of modes supported by the
  587. device, value of modes which are enabled. ``ETHTOOL_A_WOL_SOPASS`` is only
  588. included in reply if ``WAKE_MAGICSECURE`` mode is supported.
  589. WOL_SET
  590. =======
  591. Set or update wake-on-lan settings.
  592. Request contents:
  593. ==================================== ====== ==========================
  594. ``ETHTOOL_A_WOL_HEADER`` nested request header
  595. ``ETHTOOL_A_WOL_MODES`` bitset enabled WoL modes
  596. ``ETHTOOL_A_WOL_SOPASS`` binary SecureOn(tm) password
  597. ==================================== ====== ==========================
  598. ``ETHTOOL_A_WOL_SOPASS`` is only allowed for devices supporting
  599. ``WAKE_MAGICSECURE`` mode.
  600. FEATURES_GET
  601. ============
  602. Gets netdev features like ``ETHTOOL_GFEATURES`` ioctl request.
  603. Request contents:
  604. ==================================== ====== ==========================
  605. ``ETHTOOL_A_FEATURES_HEADER`` nested request header
  606. ==================================== ====== ==========================
  607. Kernel response contents:
  608. ==================================== ====== ==========================
  609. ``ETHTOOL_A_FEATURES_HEADER`` nested reply header
  610. ``ETHTOOL_A_FEATURES_HW`` bitset dev->hw_features
  611. ``ETHTOOL_A_FEATURES_WANTED`` bitset dev->wanted_features
  612. ``ETHTOOL_A_FEATURES_ACTIVE`` bitset dev->features
  613. ``ETHTOOL_A_FEATURES_NOCHANGE`` bitset NETIF_F_NEVER_CHANGE
  614. ==================================== ====== ==========================
  615. Bitmaps in kernel response have the same meaning as bitmaps used in ioctl
  616. interference but attribute names are different (they are based on
  617. corresponding members of struct net_device). Legacy "flags" are not provided,
  618. if userspace needs them (most likely only ethtool for backward compatibility),
  619. it can calculate their values from related feature bits itself.
  620. ETHA_FEATURES_HW uses mask consisting of all features recognized by kernel (to
  621. provide all names when using verbose bitmap format), the other three use no
  622. mask (simple bit lists).
  623. FEATURES_SET
  624. ============
  625. Request to set netdev features like ``ETHTOOL_SFEATURES`` ioctl request.
  626. Request contents:
  627. ==================================== ====== ==========================
  628. ``ETHTOOL_A_FEATURES_HEADER`` nested request header
  629. ``ETHTOOL_A_FEATURES_WANTED`` bitset requested features
  630. ==================================== ====== ==========================
  631. Kernel response contents:
  632. ==================================== ====== ==========================
  633. ``ETHTOOL_A_FEATURES_HEADER`` nested reply header
  634. ``ETHTOOL_A_FEATURES_WANTED`` bitset diff wanted vs. result
  635. ``ETHTOOL_A_FEATURES_ACTIVE`` bitset diff old vs. new active
  636. ==================================== ====== ==========================
  637. Request contains only one bitset which can be either value/mask pair (request
  638. to change specific feature bits and leave the rest) or only a value (request
  639. to set all features to specified set).
  640. As request is subject to netdev_change_features() sanity checks, optional
  641. kernel reply (can be suppressed by ``ETHTOOL_FLAG_OMIT_REPLY`` flag in request
  642. header) informs client about the actual result. ``ETHTOOL_A_FEATURES_WANTED``
  643. reports the difference between client request and actual result: mask consists
  644. of bits which differ between requested features and result (dev->features
  645. after the operation), value consists of values of these bits in the request
  646. (i.e. negated values from resulting features). ``ETHTOOL_A_FEATURES_ACTIVE``
  647. reports the difference between old and new dev->features: mask consists of
  648. bits which have changed, values are their values in new dev->features (after
  649. the operation).
  650. ``ETHTOOL_MSG_FEATURES_NTF`` notification is sent not only if device features
  651. are modified using ``ETHTOOL_MSG_FEATURES_SET`` request or on of ethtool ioctl
  652. request but also each time features are modified with netdev_update_features()
  653. or netdev_change_features().
  654. PRIVFLAGS_GET
  655. =============
  656. Gets private flags like ``ETHTOOL_GPFLAGS`` ioctl request.
  657. Request contents:
  658. ==================================== ====== ==========================
  659. ``ETHTOOL_A_PRIVFLAGS_HEADER`` nested request header
  660. ==================================== ====== ==========================
  661. Kernel response contents:
  662. ==================================== ====== ==========================
  663. ``ETHTOOL_A_PRIVFLAGS_HEADER`` nested reply header
  664. ``ETHTOOL_A_PRIVFLAGS_FLAGS`` bitset private flags
  665. ==================================== ====== ==========================
  666. ``ETHTOOL_A_PRIVFLAGS_FLAGS`` is a bitset with values of device private flags.
  667. These flags are defined by driver, their number and names (and also meaning)
  668. are device dependent. For compact bitset format, names can be retrieved as
  669. ``ETH_SS_PRIV_FLAGS`` string set. If verbose bitset format is requested,
  670. response uses all private flags supported by the device as mask so that client
  671. gets the full information without having to fetch the string set with names.
  672. PRIVFLAGS_SET
  673. =============
  674. Sets or modifies values of device private flags like ``ETHTOOL_SPFLAGS``
  675. ioctl request.
  676. Request contents:
  677. ==================================== ====== ==========================
  678. ``ETHTOOL_A_PRIVFLAGS_HEADER`` nested request header
  679. ``ETHTOOL_A_PRIVFLAGS_FLAGS`` bitset private flags
  680. ==================================== ====== ==========================
  681. ``ETHTOOL_A_PRIVFLAGS_FLAGS`` can either set the whole set of private flags or
  682. modify only values of some of them.
  683. RINGS_GET
  684. =========
  685. Gets ring sizes like ``ETHTOOL_GRINGPARAM`` ioctl request.
  686. Request contents:
  687. ==================================== ====== ==========================
  688. ``ETHTOOL_A_RINGS_HEADER`` nested request header
  689. ==================================== ====== ==========================
  690. Kernel response contents:
  691. ======================================= ====== ===========================
  692. ``ETHTOOL_A_RINGS_HEADER`` nested reply header
  693. ``ETHTOOL_A_RINGS_RX_MAX`` u32 max size of RX ring
  694. ``ETHTOOL_A_RINGS_RX_MINI_MAX`` u32 max size of RX mini ring
  695. ``ETHTOOL_A_RINGS_RX_JUMBO_MAX`` u32 max size of RX jumbo ring
  696. ``ETHTOOL_A_RINGS_TX_MAX`` u32 max size of TX ring
  697. ``ETHTOOL_A_RINGS_RX`` u32 size of RX ring
  698. ``ETHTOOL_A_RINGS_RX_MINI`` u32 size of RX mini ring
  699. ``ETHTOOL_A_RINGS_RX_JUMBO`` u32 size of RX jumbo ring
  700. ``ETHTOOL_A_RINGS_TX`` u32 size of TX ring
  701. ``ETHTOOL_A_RINGS_RX_BUF_LEN`` u32 size of buffers on the ring
  702. ``ETHTOOL_A_RINGS_TCP_DATA_SPLIT`` u8 TCP header / data split
  703. ``ETHTOOL_A_RINGS_CQE_SIZE`` u32 Size of TX/RX CQE
  704. ``ETHTOOL_A_RINGS_TX_PUSH`` u8 flag of TX Push mode
  705. ``ETHTOOL_A_RINGS_RX_PUSH`` u8 flag of RX Push mode
  706. ``ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN`` u32 size of TX push buffer
  707. ``ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN_MAX`` u32 max size of TX push buffer
  708. ``ETHTOOL_A_RINGS_HDS_THRESH`` u32 threshold of
  709. header / data split
  710. ``ETHTOOL_A_RINGS_HDS_THRESH_MAX`` u32 max threshold of
  711. header / data split
  712. ======================================= ====== ===========================
  713. ``ETHTOOL_A_RINGS_TCP_DATA_SPLIT`` indicates whether the device is usable with
  714. page-flipping TCP zero-copy receive (``getsockopt(TCP_ZEROCOPY_RECEIVE)``).
  715. If enabled the device is configured to place frame headers and data into
  716. separate buffers. The device configuration must make it possible to receive
  717. full memory pages of data, for example because MTU is high enough or through
  718. HW-GRO.
  719. ``ETHTOOL_A_RINGS_[RX|TX]_PUSH`` flag is used to enable descriptor fast
  720. path to send or receive packets. In ordinary path, driver fills descriptors in DRAM and
  721. notifies NIC hardware. In fast path, driver pushes descriptors to the device
  722. through MMIO writes, thus reducing the latency. However, enabling this feature
  723. may increase the CPU cost. Drivers may enforce additional per-packet
  724. eligibility checks (e.g. on packet size).
  725. ``ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN`` specifies the maximum number of bytes of a
  726. transmitted packet a driver can push directly to the underlying device
  727. ('push' mode). Pushing some of the payload bytes to the device has the
  728. advantages of reducing latency for small packets by avoiding DMA mapping (same
  729. as ``ETHTOOL_A_RINGS_TX_PUSH`` parameter) as well as allowing the underlying
  730. device to process packet headers ahead of fetching its payload.
  731. This can help the device to make fast actions based on the packet's headers.
  732. This is similar to the "tx-copybreak" parameter, which copies the packet to a
  733. preallocated DMA memory area instead of mapping new memory. However,
  734. tx-push-buff parameter copies the packet directly to the device to allow the
  735. device to take faster actions on the packet.
  736. RINGS_SET
  737. =========
  738. Sets ring sizes like ``ETHTOOL_SRINGPARAM`` ioctl request.
  739. Request contents:
  740. ==================================== ====== ===========================
  741. ``ETHTOOL_A_RINGS_HEADER`` nested reply header
  742. ``ETHTOOL_A_RINGS_RX`` u32 size of RX ring
  743. ``ETHTOOL_A_RINGS_RX_MINI`` u32 size of RX mini ring
  744. ``ETHTOOL_A_RINGS_RX_JUMBO`` u32 size of RX jumbo ring
  745. ``ETHTOOL_A_RINGS_TX`` u32 size of TX ring
  746. ``ETHTOOL_A_RINGS_RX_BUF_LEN`` u32 size of buffers on the ring
  747. ``ETHTOOL_A_RINGS_TCP_DATA_SPLIT`` u8 TCP header / data split
  748. ``ETHTOOL_A_RINGS_CQE_SIZE`` u32 Size of TX/RX CQE
  749. ``ETHTOOL_A_RINGS_TX_PUSH`` u8 flag of TX Push mode
  750. ``ETHTOOL_A_RINGS_RX_PUSH`` u8 flag of RX Push mode
  751. ``ETHTOOL_A_RINGS_TX_PUSH_BUF_LEN`` u32 size of TX push buffer
  752. ``ETHTOOL_A_RINGS_HDS_THRESH`` u32 threshold of header / data split
  753. ==================================== ====== ===========================
  754. Kernel checks that requested ring sizes do not exceed limits reported by
  755. driver. Driver may impose additional constraints and may not support all
  756. attributes.
  757. ``ETHTOOL_A_RINGS_CQE_SIZE`` specifies the completion queue event size.
  758. Completion queue events (CQE) are the events posted by NIC to indicate the
  759. completion status of a packet when the packet is sent (like send success or
  760. error) or received (like pointers to packet fragments). The CQE size parameter
  761. enables to modify the CQE size other than default size if NIC supports it.
  762. A bigger CQE can have more receive buffer pointers, and in turn the NIC can
  763. transfer a bigger frame from wire. Based on the NIC hardware, the overall
  764. completion queue size can be adjusted in the driver if CQE size is modified.
  765. ``ETHTOOL_A_RINGS_HDS_THRESH`` specifies the threshold value of
  766. header / data split feature. If a received packet size is larger than this
  767. threshold value, header and data will be split.
  768. CHANNELS_GET
  769. ============
  770. Gets channel counts like ``ETHTOOL_GCHANNELS`` ioctl request.
  771. Request contents:
  772. ==================================== ====== ==========================
  773. ``ETHTOOL_A_CHANNELS_HEADER`` nested request header
  774. ==================================== ====== ==========================
  775. Kernel response contents:
  776. ===================================== ====== ==========================
  777. ``ETHTOOL_A_CHANNELS_HEADER`` nested reply header
  778. ``ETHTOOL_A_CHANNELS_RX_MAX`` u32 max receive channels
  779. ``ETHTOOL_A_CHANNELS_TX_MAX`` u32 max transmit channels
  780. ``ETHTOOL_A_CHANNELS_OTHER_MAX`` u32 max other channels
  781. ``ETHTOOL_A_CHANNELS_COMBINED_MAX`` u32 max combined channels
  782. ``ETHTOOL_A_CHANNELS_RX_COUNT`` u32 receive channel count
  783. ``ETHTOOL_A_CHANNELS_TX_COUNT`` u32 transmit channel count
  784. ``ETHTOOL_A_CHANNELS_OTHER_COUNT`` u32 other channel count
  785. ``ETHTOOL_A_CHANNELS_COMBINED_COUNT`` u32 combined channel count
  786. ===================================== ====== ==========================
  787. CHANNELS_SET
  788. ============
  789. Sets channel counts like ``ETHTOOL_SCHANNELS`` ioctl request.
  790. Request contents:
  791. ===================================== ====== ==========================
  792. ``ETHTOOL_A_CHANNELS_HEADER`` nested request header
  793. ``ETHTOOL_A_CHANNELS_RX_COUNT`` u32 receive channel count
  794. ``ETHTOOL_A_CHANNELS_TX_COUNT`` u32 transmit channel count
  795. ``ETHTOOL_A_CHANNELS_OTHER_COUNT`` u32 other channel count
  796. ``ETHTOOL_A_CHANNELS_COMBINED_COUNT`` u32 combined channel count
  797. ===================================== ====== ==========================
  798. Kernel checks that requested channel counts do not exceed limits reported by
  799. driver. Driver may impose additional constraints and may not support all
  800. attributes.
  801. COALESCE_GET
  802. ============
  803. Gets coalescing parameters like ``ETHTOOL_GCOALESCE`` ioctl request.
  804. Request contents:
  805. ==================================== ====== ==========================
  806. ``ETHTOOL_A_COALESCE_HEADER`` nested request header
  807. ==================================== ====== ==========================
  808. Kernel response contents:
  809. =========================================== ====== =======================
  810. ``ETHTOOL_A_COALESCE_HEADER`` nested reply header
  811. ``ETHTOOL_A_COALESCE_RX_USECS`` u32 delay (us), normal Rx
  812. ``ETHTOOL_A_COALESCE_RX_MAX_FRAMES`` u32 max packets, normal Rx
  813. ``ETHTOOL_A_COALESCE_RX_USECS_IRQ`` u32 delay (us), Rx in IRQ
  814. ``ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ`` u32 max packets, Rx in IRQ
  815. ``ETHTOOL_A_COALESCE_TX_USECS`` u32 delay (us), normal Tx
  816. ``ETHTOOL_A_COALESCE_TX_MAX_FRAMES`` u32 max packets, normal Tx
  817. ``ETHTOOL_A_COALESCE_TX_USECS_IRQ`` u32 delay (us), Tx in IRQ
  818. ``ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ`` u32 IRQ packets, Tx in IRQ
  819. ``ETHTOOL_A_COALESCE_STATS_BLOCK_USECS`` u32 delay of stats update
  820. ``ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX`` bool adaptive Rx coalesce
  821. ``ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX`` bool adaptive Tx coalesce
  822. ``ETHTOOL_A_COALESCE_PKT_RATE_LOW`` u32 threshold for low rate
  823. ``ETHTOOL_A_COALESCE_RX_USECS_LOW`` u32 delay (us), low Rx
  824. ``ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW`` u32 max packets, low Rx
  825. ``ETHTOOL_A_COALESCE_TX_USECS_LOW`` u32 delay (us), low Tx
  826. ``ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW`` u32 max packets, low Tx
  827. ``ETHTOOL_A_COALESCE_PKT_RATE_HIGH`` u32 threshold for high rate
  828. ``ETHTOOL_A_COALESCE_RX_USECS_HIGH`` u32 delay (us), high Rx
  829. ``ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH`` u32 max packets, high Rx
  830. ``ETHTOOL_A_COALESCE_TX_USECS_HIGH`` u32 delay (us), high Tx
  831. ``ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH`` u32 max packets, high Tx
  832. ``ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL`` u32 rate sampling interval
  833. ``ETHTOOL_A_COALESCE_USE_CQE_TX`` bool timer reset mode, Tx
  834. ``ETHTOOL_A_COALESCE_USE_CQE_RX`` bool timer reset mode, Rx
  835. ``ETHTOOL_A_COALESCE_TX_AGGR_MAX_BYTES`` u32 max aggr size, Tx
  836. ``ETHTOOL_A_COALESCE_TX_AGGR_MAX_FRAMES`` u32 max aggr packets, Tx
  837. ``ETHTOOL_A_COALESCE_TX_AGGR_TIME_USECS`` u32 time (us), aggr, Tx
  838. ``ETHTOOL_A_COALESCE_RX_PROFILE`` nested profile of DIM, Rx
  839. ``ETHTOOL_A_COALESCE_TX_PROFILE`` nested profile of DIM, Tx
  840. =========================================== ====== =======================
  841. Attributes are only included in reply if their value is not zero or the
  842. corresponding bit in ``ethtool_ops::supported_coalesce_params`` is set (i.e.
  843. they are declared as supported by driver).
  844. Timer reset mode (``ETHTOOL_A_COALESCE_USE_CQE_TX`` and
  845. ``ETHTOOL_A_COALESCE_USE_CQE_RX``) controls the interaction between packet
  846. arrival and the various time based delay parameters. By default timers are
  847. expected to limit the max delay between any packet arrival/departure and a
  848. corresponding interrupt. In this mode timer should be started by packet
  849. arrival (sometimes delivery of previous interrupt) and reset when interrupt
  850. is delivered.
  851. Setting the appropriate attribute to 1 will enable ``CQE`` mode, where
  852. each packet event resets the timer. In this mode timer is used to force
  853. the interrupt if queue goes idle, while busy queues depend on the packet
  854. limit to trigger interrupts.
  855. Tx aggregation consists of copying frames into a contiguous buffer so that they
  856. can be submitted as a single IO operation. ``ETHTOOL_A_COALESCE_TX_AGGR_MAX_BYTES``
  857. describes the maximum size in bytes for the submitted buffer.
  858. ``ETHTOOL_A_COALESCE_TX_AGGR_MAX_FRAMES`` describes the maximum number of frames
  859. that can be aggregated into a single buffer.
  860. ``ETHTOOL_A_COALESCE_TX_AGGR_TIME_USECS`` describes the amount of time in usecs,
  861. counted since the first packet arrival in an aggregated block, after which the
  862. block should be sent.
  863. This feature is mainly of interest for specific USB devices which does not cope
  864. well with frequent small-sized URBs transmissions.
  865. ``ETHTOOL_A_COALESCE_RX_PROFILE`` and ``ETHTOOL_A_COALESCE_TX_PROFILE`` refer
  866. to DIM parameters, see `Generic Network Dynamic Interrupt Moderation (Net DIM)
  867. <https://www.kernel.org/doc/Documentation/networking/net_dim.rst>`_.
  868. COALESCE_SET
  869. ============
  870. Sets coalescing parameters like ``ETHTOOL_SCOALESCE`` ioctl request.
  871. Request contents:
  872. =========================================== ====== =======================
  873. ``ETHTOOL_A_COALESCE_HEADER`` nested request header
  874. ``ETHTOOL_A_COALESCE_RX_USECS`` u32 delay (us), normal Rx
  875. ``ETHTOOL_A_COALESCE_RX_MAX_FRAMES`` u32 max packets, normal Rx
  876. ``ETHTOOL_A_COALESCE_RX_USECS_IRQ`` u32 delay (us), Rx in IRQ
  877. ``ETHTOOL_A_COALESCE_RX_MAX_FRAMES_IRQ`` u32 max packets, Rx in IRQ
  878. ``ETHTOOL_A_COALESCE_TX_USECS`` u32 delay (us), normal Tx
  879. ``ETHTOOL_A_COALESCE_TX_MAX_FRAMES`` u32 max packets, normal Tx
  880. ``ETHTOOL_A_COALESCE_TX_USECS_IRQ`` u32 delay (us), Tx in IRQ
  881. ``ETHTOOL_A_COALESCE_TX_MAX_FRAMES_IRQ`` u32 IRQ packets, Tx in IRQ
  882. ``ETHTOOL_A_COALESCE_STATS_BLOCK_USECS`` u32 delay of stats update
  883. ``ETHTOOL_A_COALESCE_USE_ADAPTIVE_RX`` bool adaptive Rx coalesce
  884. ``ETHTOOL_A_COALESCE_USE_ADAPTIVE_TX`` bool adaptive Tx coalesce
  885. ``ETHTOOL_A_COALESCE_PKT_RATE_LOW`` u32 threshold for low rate
  886. ``ETHTOOL_A_COALESCE_RX_USECS_LOW`` u32 delay (us), low Rx
  887. ``ETHTOOL_A_COALESCE_RX_MAX_FRAMES_LOW`` u32 max packets, low Rx
  888. ``ETHTOOL_A_COALESCE_TX_USECS_LOW`` u32 delay (us), low Tx
  889. ``ETHTOOL_A_COALESCE_TX_MAX_FRAMES_LOW`` u32 max packets, low Tx
  890. ``ETHTOOL_A_COALESCE_PKT_RATE_HIGH`` u32 threshold for high rate
  891. ``ETHTOOL_A_COALESCE_RX_USECS_HIGH`` u32 delay (us), high Rx
  892. ``ETHTOOL_A_COALESCE_RX_MAX_FRAMES_HIGH`` u32 max packets, high Rx
  893. ``ETHTOOL_A_COALESCE_TX_USECS_HIGH`` u32 delay (us), high Tx
  894. ``ETHTOOL_A_COALESCE_TX_MAX_FRAMES_HIGH`` u32 max packets, high Tx
  895. ``ETHTOOL_A_COALESCE_RATE_SAMPLE_INTERVAL`` u32 rate sampling interval
  896. ``ETHTOOL_A_COALESCE_USE_CQE_TX`` bool timer reset mode, Tx
  897. ``ETHTOOL_A_COALESCE_USE_CQE_RX`` bool timer reset mode, Rx
  898. ``ETHTOOL_A_COALESCE_TX_AGGR_MAX_BYTES`` u32 max aggr size, Tx
  899. ``ETHTOOL_A_COALESCE_TX_AGGR_MAX_FRAMES`` u32 max aggr packets, Tx
  900. ``ETHTOOL_A_COALESCE_TX_AGGR_TIME_USECS`` u32 time (us), aggr, Tx
  901. ``ETHTOOL_A_COALESCE_RX_PROFILE`` nested profile of DIM, Rx
  902. ``ETHTOOL_A_COALESCE_TX_PROFILE`` nested profile of DIM, Tx
  903. =========================================== ====== =======================
  904. Request is rejected if it attributes declared as unsupported by driver (i.e.
  905. such that the corresponding bit in ``ethtool_ops::supported_coalesce_params``
  906. is not set), regardless of their values. Driver may impose additional
  907. constraints on coalescing parameters and their values.
  908. Compared to requests issued via the ``ioctl()`` netlink version of this request
  909. will try harder to make sure that values specified by the user have been applied
  910. and may call the driver twice.
  911. PAUSE_GET
  912. =========
  913. Gets pause frame settings like ``ETHTOOL_GPAUSEPARAM`` ioctl request.
  914. Request contents:
  915. ===================================== ====== ==========================
  916. ``ETHTOOL_A_PAUSE_HEADER`` nested request header
  917. ``ETHTOOL_A_PAUSE_STATS_SRC`` u32 source of statistics
  918. ===================================== ====== ==========================
  919. ``ETHTOOL_A_PAUSE_STATS_SRC`` is optional. It takes values from:
  920. .. kernel-doc:: include/uapi/linux/ethtool.h
  921. :identifiers: ethtool_mac_stats_src
  922. If absent from the request, stats will be provided with
  923. an ``ETHTOOL_A_PAUSE_STATS_SRC`` attribute in the response equal to
  924. ``ETHTOOL_MAC_STATS_SRC_AGGREGATE``.
  925. Kernel response contents:
  926. ===================================== ====== ==========================
  927. ``ETHTOOL_A_PAUSE_HEADER`` nested request header
  928. ``ETHTOOL_A_PAUSE_AUTONEG`` bool pause autonegotiation
  929. ``ETHTOOL_A_PAUSE_RX`` bool receive pause frames
  930. ``ETHTOOL_A_PAUSE_TX`` bool transmit pause frames
  931. ``ETHTOOL_A_PAUSE_STATS`` nested pause statistics
  932. ===================================== ====== ==========================
  933. ``ETHTOOL_A_PAUSE_STATS`` are reported if ``ETHTOOL_FLAG_STATS`` was set
  934. in ``ETHTOOL_A_HEADER_FLAGS``.
  935. It will be empty if driver did not report any statistics. Drivers fill in
  936. the statistics in the following structure:
  937. .. kernel-doc:: include/linux/ethtool.h
  938. :identifiers: ethtool_pause_stats
  939. Each member has a corresponding attribute defined.
  940. PAUSE_SET
  941. =========
  942. Sets pause parameters like ``ETHTOOL_GPAUSEPARAM`` ioctl request.
  943. Request contents:
  944. ===================================== ====== ==========================
  945. ``ETHTOOL_A_PAUSE_HEADER`` nested request header
  946. ``ETHTOOL_A_PAUSE_AUTONEG`` bool pause autonegotiation
  947. ``ETHTOOL_A_PAUSE_RX`` bool receive pause frames
  948. ``ETHTOOL_A_PAUSE_TX`` bool transmit pause frames
  949. ===================================== ====== ==========================
  950. EEE_GET
  951. =======
  952. Gets Energy Efficient Ethernet settings like ``ETHTOOL_GEEE`` ioctl request.
  953. Request contents:
  954. ===================================== ====== ==========================
  955. ``ETHTOOL_A_EEE_HEADER`` nested request header
  956. ===================================== ====== ==========================
  957. Kernel response contents:
  958. ===================================== ====== ==========================
  959. ``ETHTOOL_A_EEE_HEADER`` nested request header
  960. ``ETHTOOL_A_EEE_MODES_OURS`` bool supported/advertised modes
  961. ``ETHTOOL_A_EEE_MODES_PEER`` bool peer advertised link modes
  962. ``ETHTOOL_A_EEE_ACTIVE`` bool EEE is actively used
  963. ``ETHTOOL_A_EEE_ENABLED`` bool EEE is enabled
  964. ``ETHTOOL_A_EEE_TX_LPI_ENABLED`` bool Tx lpi enabled
  965. ``ETHTOOL_A_EEE_TX_LPI_TIMER`` u32 Tx lpi timeout (in us)
  966. ===================================== ====== ==========================
  967. In ``ETHTOOL_A_EEE_MODES_OURS``, mask consists of link modes for which EEE is
  968. enabled, value of link modes for which EEE is advertised. Link modes for which
  969. peer advertises EEE are listed in ``ETHTOOL_A_EEE_MODES_PEER`` (no mask). The
  970. netlink interface allows reporting EEE status for all link modes but only
  971. first 32 are provided by the ``ethtool_ops`` callback.
  972. EEE_SET
  973. =======
  974. Sets Energy Efficient Ethernet parameters like ``ETHTOOL_SEEE`` ioctl request.
  975. Request contents:
  976. ===================================== ====== ==========================
  977. ``ETHTOOL_A_EEE_HEADER`` nested request header
  978. ``ETHTOOL_A_EEE_MODES_OURS`` bool advertised modes
  979. ``ETHTOOL_A_EEE_ENABLED`` bool EEE is enabled
  980. ``ETHTOOL_A_EEE_TX_LPI_ENABLED`` bool Tx lpi enabled
  981. ``ETHTOOL_A_EEE_TX_LPI_TIMER`` u32 Tx lpi timeout (in us)
  982. ===================================== ====== ==========================
  983. ``ETHTOOL_A_EEE_MODES_OURS`` is used to either list link modes to advertise
  984. EEE for (if there is no mask) or specify changes to the list (if there is
  985. a mask). The netlink interface allows reporting EEE status for all link modes
  986. but only first 32 can be set at the moment as that is what the ``ethtool_ops``
  987. callback supports.
  988. TSINFO_GET
  989. ==========
  990. Gets timestamping information like ``ETHTOOL_GET_TS_INFO`` ioctl request.
  991. Request contents:
  992. ======================================== ====== ============================
  993. ``ETHTOOL_A_TSINFO_HEADER`` nested request header
  994. ``ETHTOOL_A_TSINFO_HWTSTAMP_PROVIDER`` nested PTP hw clock provider
  995. ======================================== ====== ============================
  996. Kernel response contents:
  997. ===================================== ====== ==========================
  998. ``ETHTOOL_A_TSINFO_HEADER`` nested request header
  999. ``ETHTOOL_A_TSINFO_TIMESTAMPING`` bitset SO_TIMESTAMPING flags
  1000. ``ETHTOOL_A_TSINFO_TX_TYPES`` bitset supported Tx types
  1001. ``ETHTOOL_A_TSINFO_RX_FILTERS`` bitset supported Rx filters
  1002. ``ETHTOOL_A_TSINFO_PHC_INDEX`` u32 PTP hw clock index
  1003. ``ETHTOOL_A_TSINFO_STATS`` nested HW timestamping statistics
  1004. ===================================== ====== ==========================
  1005. ``ETHTOOL_A_TSINFO_PHC_INDEX`` is absent if there is no associated PHC (there
  1006. is no special value for this case). The bitset attributes are omitted if they
  1007. would be empty (no bit set).
  1008. Additional hardware timestamping statistics response contents:
  1009. ================================================== ====== =====================
  1010. ``ETHTOOL_A_TS_STAT_TX_PKTS`` uint Packets with Tx
  1011. HW timestamps
  1012. ``ETHTOOL_A_TS_STAT_TX_LOST`` uint Tx HW timestamp
  1013. not arrived count
  1014. ``ETHTOOL_A_TS_STAT_TX_ERR`` uint HW error request
  1015. Tx timestamp count
  1016. ``ETHTOOL_A_TS_STAT_TX_ONESTEP_PKTS_UNCONFIRMED`` uint Packets with one-step
  1017. HW TX timestamps with
  1018. unconfirmed delivery
  1019. ================================================== ====== =====================
  1020. CABLE_TEST
  1021. ==========
  1022. Start a cable test.
  1023. Request contents:
  1024. ==================================== ====== ==========================
  1025. ``ETHTOOL_A_CABLE_TEST_HEADER`` nested request header
  1026. ==================================== ====== ==========================
  1027. Notification contents:
  1028. An Ethernet cable typically contains 1, 2 or 4 pairs. The length of
  1029. the pair can only be measured when there is a fault in the pair and
  1030. hence a reflection. Information about the fault may not be available,
  1031. depending on the specific hardware. Hence the contents of the notify
  1032. message are mostly optional. The attributes can be repeated an
  1033. arbitrary number of times, in an arbitrary order, for an arbitrary
  1034. number of pairs.
  1035. The example shows the notification sent when the test is completed for
  1036. a T2 cable, i.e. two pairs. One pair is OK and hence has no length
  1037. information. The second pair has a fault and does have length
  1038. information.
  1039. +---------------------------------------------+--------+---------------------+
  1040. | ``ETHTOOL_A_CABLE_TEST_HEADER`` | nested | reply header |
  1041. +---------------------------------------------+--------+---------------------+
  1042. | ``ETHTOOL_A_CABLE_TEST_STATUS`` | u8 | completed |
  1043. +---------------------------------------------+--------+---------------------+
  1044. | ``ETHTOOL_A_CABLE_TEST_NTF_NEST`` | nested | all the results |
  1045. +-+-------------------------------------------+--------+---------------------+
  1046. | | ``ETHTOOL_A_CABLE_NEST_RESULT`` | nested | cable test result |
  1047. +-+-+-----------------------------------------+--------+---------------------+
  1048. | | | ``ETHTOOL_A_CABLE_RESULTS_PAIR`` | u8 | pair number |
  1049. +-+-+-----------------------------------------+--------+---------------------+
  1050. | | | ``ETHTOOL_A_CABLE_RESULTS_CODE`` | u8 | result code |
  1051. +-+-+-----------------------------------------+--------+---------------------+
  1052. | | ``ETHTOOL_A_CABLE_NEST_RESULT`` | nested | cable test results |
  1053. +-+-+-----------------------------------------+--------+---------------------+
  1054. | | | ``ETHTOOL_A_CABLE_RESULTS_PAIR`` | u8 | pair number |
  1055. +-+-+-----------------------------------------+--------+---------------------+
  1056. | | | ``ETHTOOL_A_CABLE_RESULTS_CODE`` | u8 | result code |
  1057. +-+-+-----------------------------------------+--------+---------------------+
  1058. | | | ``ETHTOOL_A_CABLE_RESULT_SRC`` | u32 | information source |
  1059. +-+-+-----------------------------------------+--------+---------------------+
  1060. | | ``ETHTOOL_A_CABLE_NEST_FAULT_LENGTH`` | nested | cable length |
  1061. +-+-+-----------------------------------------+--------+---------------------+
  1062. | | | ``ETHTOOL_A_CABLE_FAULT_LENGTH_PAIR`` | u8 | pair number |
  1063. +-+-+-----------------------------------------+--------+---------------------+
  1064. | | | ``ETHTOOL_A_CABLE_FAULT_LENGTH_CM`` | u32 | length in cm |
  1065. +-+-+-----------------------------------------+--------+---------------------+
  1066. | | | ``ETHTOOL_A_CABLE_FAULT_LENGTH_SRC`` | u32 | information source |
  1067. +-+-+-----------------------------------------+--------+---------------------+
  1068. CABLE_TEST TDR
  1069. ==============
  1070. Start a cable test and report raw TDR data
  1071. Request contents:
  1072. +--------------------------------------------+--------+-----------------------+
  1073. | ``ETHTOOL_A_CABLE_TEST_TDR_HEADER`` | nested | reply header |
  1074. +--------------------------------------------+--------+-----------------------+
  1075. | ``ETHTOOL_A_CABLE_TEST_TDR_CFG`` | nested | test configuration |
  1076. +-+------------------------------------------+--------+-----------------------+
  1077. | | ``ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE`` | u32 | first data distance |
  1078. +-+-+----------------------------------------+--------+-----------------------+
  1079. | | ``ETHTOOL_A_CABLE_STEP_LAST_DISTANCE`` | u32 | last data distance |
  1080. +-+-+----------------------------------------+--------+-----------------------+
  1081. | | ``ETHTOOL_A_CABLE_STEP_STEP_DISTANCE`` | u32 | distance of each step |
  1082. +-+-+----------------------------------------+--------+-----------------------+
  1083. | | ``ETHTOOL_A_CABLE_TEST_TDR_CFG_PAIR`` | u8 | pair to test |
  1084. +-+-+----------------------------------------+--------+-----------------------+
  1085. The ETHTOOL_A_CABLE_TEST_TDR_CFG is optional, as well as all members
  1086. of the nest. All distances are expressed in centimeters. The PHY takes
  1087. the distances as a guide, and rounds to the nearest distance it
  1088. actually supports. If a pair is passed, only that one pair will be
  1089. tested. Otherwise all pairs are tested.
  1090. Notification contents:
  1091. Raw TDR data is gathered by sending a pulse down the cable and
  1092. recording the amplitude of the reflected pulse for a given distance.
  1093. It can take a number of seconds to collect TDR data, especial if the
  1094. full 100 meters is probed at 1 meter intervals. When the test is
  1095. started a notification will be sent containing just
  1096. ETHTOOL_A_CABLE_TEST_TDR_STATUS with the value
  1097. ETHTOOL_A_CABLE_TEST_NTF_STATUS_STARTED.
  1098. When the test has completed a second notification will be sent
  1099. containing ETHTOOL_A_CABLE_TEST_TDR_STATUS with the value
  1100. ETHTOOL_A_CABLE_TEST_NTF_STATUS_COMPLETED and the TDR data.
  1101. The message may optionally contain the amplitude of the pulse send
  1102. down the cable. This is measured in mV. A reflection should not be
  1103. bigger than transmitted pulse.
  1104. Before the raw TDR data should be an ETHTOOL_A_CABLE_TDR_NEST_STEP
  1105. nest containing information about the distance along the cable for the
  1106. first reading, the last reading, and the step between each
  1107. reading. Distances are measured in centimeters. These should be the
  1108. exact values the PHY used. These may be different to what the user
  1109. requested, if the native measurement resolution is greater than 1 cm.
  1110. For each step along the cable, a ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE is
  1111. used to report the amplitude of the reflection for a given pair.
  1112. +---------------------------------------------+--------+----------------------+
  1113. | ``ETHTOOL_A_CABLE_TEST_TDR_HEADER`` | nested | reply header |
  1114. +---------------------------------------------+--------+----------------------+
  1115. | ``ETHTOOL_A_CABLE_TEST_TDR_STATUS`` | u8 | completed |
  1116. +---------------------------------------------+--------+----------------------+
  1117. | ``ETHTOOL_A_CABLE_TEST_TDR_NTF_NEST`` | nested | all the results |
  1118. +-+-------------------------------------------+--------+----------------------+
  1119. | | ``ETHTOOL_A_CABLE_TDR_NEST_PULSE`` | nested | TX Pulse amplitude |
  1120. +-+-+-----------------------------------------+--------+----------------------+
  1121. | | | ``ETHTOOL_A_CABLE_PULSE_mV`` | s16 | Pulse amplitude |
  1122. +-+-+-----------------------------------------+--------+----------------------+
  1123. | | ``ETHTOOL_A_CABLE_NEST_STEP`` | nested | TDR step info |
  1124. +-+-+-----------------------------------------+--------+----------------------+
  1125. | | | ``ETHTOOL_A_CABLE_STEP_FIRST_DISTANCE`` | u32 | First data distance |
  1126. +-+-+-----------------------------------------+--------+----------------------+
  1127. | | | ``ETHTOOL_A_CABLE_STEP_LAST_DISTANCE`` | u32 | Last data distance |
  1128. +-+-+-----------------------------------------+--------+----------------------+
  1129. | | | ``ETHTOOL_A_CABLE_STEP_STEP_DISTANCE`` | u32 | distance of each step|
  1130. +-+-+-----------------------------------------+--------+----------------------+
  1131. | | ``ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE`` | nested | Reflection amplitude |
  1132. +-+-+-----------------------------------------+--------+----------------------+
  1133. | | | ``ETHTOOL_A_CABLE_RESULTS_PAIR`` | u8 | pair number |
  1134. +-+-+-----------------------------------------+--------+----------------------+
  1135. | | | ``ETHTOOL_A_CABLE_AMPLITUDE_mV`` | s16 | Reflection amplitude |
  1136. +-+-+-----------------------------------------+--------+----------------------+
  1137. | | ``ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE`` | nested | Reflection amplitude |
  1138. +-+-+-----------------------------------------+--------+----------------------+
  1139. | | | ``ETHTOOL_A_CABLE_RESULTS_PAIR`` | u8 | pair number |
  1140. +-+-+-----------------------------------------+--------+----------------------+
  1141. | | | ``ETHTOOL_A_CABLE_AMPLITUDE_mV`` | s16 | Reflection amplitude |
  1142. +-+-+-----------------------------------------+--------+----------------------+
  1143. | | ``ETHTOOL_A_CABLE_TDR_NEST_AMPLITUDE`` | nested | Reflection amplitude |
  1144. +-+-+-----------------------------------------+--------+----------------------+
  1145. | | | ``ETHTOOL_A_CABLE_RESULTS_PAIR`` | u8 | pair number |
  1146. +-+-+-----------------------------------------+--------+----------------------+
  1147. | | | ``ETHTOOL_A_CABLE_AMPLITUDE_mV`` | s16 | Reflection amplitude |
  1148. +-+-+-----------------------------------------+--------+----------------------+
  1149. TUNNEL_INFO
  1150. ===========
  1151. Gets information about the tunnel state NIC is aware of.
  1152. Request contents:
  1153. ===================================== ====== ==========================
  1154. ``ETHTOOL_A_TUNNEL_INFO_HEADER`` nested request header
  1155. ===================================== ====== ==========================
  1156. Kernel response contents:
  1157. +---------------------------------------------+--------+---------------------+
  1158. | ``ETHTOOL_A_TUNNEL_INFO_HEADER`` | nested | reply header |
  1159. +---------------------------------------------+--------+---------------------+
  1160. | ``ETHTOOL_A_TUNNEL_INFO_UDP_PORTS`` | nested | all UDP port tables |
  1161. +-+-------------------------------------------+--------+---------------------+
  1162. | | ``ETHTOOL_A_TUNNEL_UDP_TABLE`` | nested | one UDP port table |
  1163. +-+-+-----------------------------------------+--------+---------------------+
  1164. | | | ``ETHTOOL_A_TUNNEL_UDP_TABLE_SIZE`` | u32 | max size of the |
  1165. | | | | | table |
  1166. +-+-+-----------------------------------------+--------+---------------------+
  1167. | | | ``ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES`` | bitset | tunnel types which |
  1168. | | | | | table can hold |
  1169. +-+-+-----------------------------------------+--------+---------------------+
  1170. | | | ``ETHTOOL_A_TUNNEL_UDP_TABLE_ENTRY`` | nested | offloaded UDP port |
  1171. +-+-+-+---------------------------------------+--------+---------------------+
  1172. | | | | ``ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT`` | be16 | UDP port |
  1173. +-+-+-+---------------------------------------+--------+---------------------+
  1174. | | | | ``ETHTOOL_A_TUNNEL_UDP_ENTRY_TYPE`` | u32 | tunnel type |
  1175. +-+-+-+---------------------------------------+--------+---------------------+
  1176. For UDP tunnel table empty ``ETHTOOL_A_TUNNEL_UDP_TABLE_TYPES`` indicates that
  1177. the table contains static entries, hard-coded by the NIC.
  1178. FEC_GET
  1179. =======
  1180. Gets FEC configuration and state like ``ETHTOOL_GFECPARAM`` ioctl request.
  1181. Request contents:
  1182. ===================================== ====== ==========================
  1183. ``ETHTOOL_A_FEC_HEADER`` nested request header
  1184. ===================================== ====== ==========================
  1185. Kernel response contents:
  1186. ===================================== ====== ==========================
  1187. ``ETHTOOL_A_FEC_HEADER`` nested request header
  1188. ``ETHTOOL_A_FEC_MODES`` bitset configured modes
  1189. ``ETHTOOL_A_FEC_AUTO`` bool FEC mode auto selection
  1190. ``ETHTOOL_A_FEC_ACTIVE`` u32 index of active FEC mode
  1191. ``ETHTOOL_A_FEC_STATS`` nested FEC statistics
  1192. ===================================== ====== ==========================
  1193. ``ETHTOOL_A_FEC_ACTIVE`` is the bit index of the FEC link mode currently
  1194. active on the interface. This attribute may not be present if device does
  1195. not support FEC.
  1196. ``ETHTOOL_A_FEC_MODES`` and ``ETHTOOL_A_FEC_AUTO`` are only meaningful when
  1197. autonegotiation is disabled. If ``ETHTOOL_A_FEC_AUTO`` is non-zero driver will
  1198. select the FEC mode automatically based on the parameters of the SFP module.
  1199. This is equivalent to the ``ETHTOOL_FEC_AUTO`` bit of the ioctl interface.
  1200. ``ETHTOOL_A_FEC_MODES`` carry the current FEC configuration using link mode
  1201. bits (rather than old ``ETHTOOL_FEC_*`` bits).
  1202. ``ETHTOOL_A_FEC_STATS`` are reported if ``ETHTOOL_FLAG_STATS`` was set in
  1203. ``ETHTOOL_A_HEADER_FLAGS``.
  1204. Each attribute carries an array of 64bit statistics. First entry in the array
  1205. contains the total number of events on the port, while the following entries
  1206. are counters corresponding to lanes/PCS instances. The number of entries in
  1207. the array will be:
  1208. +--------------+---------------------------------------------+
  1209. | `0` | device does not support FEC statistics |
  1210. +--------------+---------------------------------------------+
  1211. | `1` | device does not support per-lane break down |
  1212. +--------------+---------------------------------------------+
  1213. | `1 + #lanes` | device has full support for FEC stats |
  1214. +--------------+---------------------------------------------+
  1215. Drivers fill in the statistics in the following structure:
  1216. .. kernel-doc:: include/linux/ethtool.h
  1217. :identifiers: ethtool_fec_stats
  1218. Statistics may have FEC bins histogram attribute ``ETHTOOL_A_FEC_STAT_HIST``
  1219. as defined in IEEE 802.3ck-2022 and 802.3df-2024. Nested attributes will have
  1220. the range of FEC errors in the bin (inclusive) and the amount of error events
  1221. in the bin.
  1222. FEC_SET
  1223. =======
  1224. Sets FEC parameters like ``ETHTOOL_SFECPARAM`` ioctl request.
  1225. Request contents:
  1226. ===================================== ====== ==========================
  1227. ``ETHTOOL_A_FEC_HEADER`` nested request header
  1228. ``ETHTOOL_A_FEC_MODES`` bitset configured modes
  1229. ``ETHTOOL_A_FEC_AUTO`` bool FEC mode auto selection
  1230. ===================================== ====== ==========================
  1231. ``FEC_SET`` is only meaningful when autonegotiation is disabled. Otherwise
  1232. FEC mode is selected as part of autonegotiation.
  1233. ``ETHTOOL_A_FEC_MODES`` selects which FEC mode should be used. It's recommended
  1234. to set only one bit, if multiple bits are set driver may choose between them
  1235. in an implementation specific way.
  1236. ``ETHTOOL_A_FEC_AUTO`` requests the driver to choose FEC mode based on SFP
  1237. module parameters. This does not mean autonegotiation.
  1238. MODULE_EEPROM_GET
  1239. =================
  1240. Fetch module EEPROM data dump.
  1241. This interface is designed to allow dumps of at most 1/2 page at once. This
  1242. means only dumps of 128 (or less) bytes are allowed, without crossing half page
  1243. boundary located at offset 128. For pages other than 0 only high 128 bytes are
  1244. accessible.
  1245. Request contents:
  1246. ======================================= ====== ==========================
  1247. ``ETHTOOL_A_MODULE_EEPROM_HEADER`` nested request header
  1248. ``ETHTOOL_A_MODULE_EEPROM_OFFSET`` u32 offset within a page
  1249. ``ETHTOOL_A_MODULE_EEPROM_LENGTH`` u32 amount of bytes to read
  1250. ``ETHTOOL_A_MODULE_EEPROM_PAGE`` u8 page number
  1251. ``ETHTOOL_A_MODULE_EEPROM_BANK`` u8 bank number
  1252. ``ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS`` u8 page I2C address
  1253. ======================================= ====== ==========================
  1254. If ``ETHTOOL_A_MODULE_EEPROM_BANK`` is not specified, bank 0 is assumed.
  1255. Kernel response contents:
  1256. +---------------------------------------------+--------+---------------------+
  1257. | ``ETHTOOL_A_MODULE_EEPROM_HEADER`` | nested | reply header |
  1258. +---------------------------------------------+--------+---------------------+
  1259. | ``ETHTOOL_A_MODULE_EEPROM_DATA`` | binary | array of bytes from |
  1260. | | | module EEPROM |
  1261. +---------------------------------------------+--------+---------------------+
  1262. ``ETHTOOL_A_MODULE_EEPROM_DATA`` has an attribute length equal to the amount of
  1263. bytes driver actually read.
  1264. STATS_GET
  1265. =========
  1266. Get standard statistics for the interface. Note that this is not
  1267. a re-implementation of ``ETHTOOL_GSTATS`` which exposed driver-defined
  1268. stats.
  1269. Request contents:
  1270. ======================================= ====== ==========================
  1271. ``ETHTOOL_A_STATS_HEADER`` nested request header
  1272. ``ETHTOOL_A_STATS_SRC`` u32 source of statistics
  1273. ``ETHTOOL_A_STATS_GROUPS`` bitset requested groups of stats
  1274. ======================================= ====== ==========================
  1275. Kernel response contents:
  1276. +-----------------------------------+--------+--------------------------------+
  1277. | ``ETHTOOL_A_STATS_HEADER`` | nested | reply header |
  1278. +-----------------------------------+--------+--------------------------------+
  1279. | ``ETHTOOL_A_STATS_SRC`` | u32 | source of statistics |
  1280. +-----------------------------------+--------+--------------------------------+
  1281. | ``ETHTOOL_A_STATS_GRP`` | nested | one or more group of stats |
  1282. +-+---------------------------------+--------+--------------------------------+
  1283. | | ``ETHTOOL_A_STATS_GRP_ID`` | u32 | group ID - ``ETHTOOL_STATS_*`` |
  1284. +-+---------------------------------+--------+--------------------------------+
  1285. | | ``ETHTOOL_A_STATS_GRP_SS_ID`` | u32 | string set ID for names |
  1286. +-+---------------------------------+--------+--------------------------------+
  1287. | | ``ETHTOOL_A_STATS_GRP_STAT`` | nested | nest containing a statistic |
  1288. +-+---------------------------------+--------+--------------------------------+
  1289. | | ``ETHTOOL_A_STATS_GRP_HIST_RX`` | nested | histogram statistic (Rx) |
  1290. +-+---------------------------------+--------+--------------------------------+
  1291. | | ``ETHTOOL_A_STATS_GRP_HIST_TX`` | nested | histogram statistic (Tx) |
  1292. +-+---------------------------------+--------+--------------------------------+
  1293. Users specify which groups of statistics they are requesting via
  1294. the ``ETHTOOL_A_STATS_GROUPS`` bitset. Currently defined values are:
  1295. ====================== ======== ===============================================
  1296. ETHTOOL_STATS_ETH_MAC eth-mac Basic IEEE 802.3 MAC statistics (30.3.1.1.*)
  1297. ETHTOOL_STATS_ETH_PHY eth-phy Basic IEEE 802.3 PHY statistics (30.3.2.1.*)
  1298. ETHTOOL_STATS_ETH_CTRL eth-ctrl Basic IEEE 802.3 MAC Ctrl statistics (30.3.3.*)
  1299. ETHTOOL_STATS_RMON rmon RMON (RFC 2819) statistics
  1300. ETHTOOL_STATS_PHY phy Additional PHY statistics, not defined by IEEE
  1301. ====================== ======== ===============================================
  1302. Each group should have a corresponding ``ETHTOOL_A_STATS_GRP`` in the reply.
  1303. ``ETHTOOL_A_STATS_GRP_ID`` identifies which group's statistics nest contains.
  1304. ``ETHTOOL_A_STATS_GRP_SS_ID`` identifies the string set ID for the names of
  1305. the statistics in the group, if available.
  1306. Statistics are added to the ``ETHTOOL_A_STATS_GRP`` nest under
  1307. ``ETHTOOL_A_STATS_GRP_STAT``. ``ETHTOOL_A_STATS_GRP_STAT`` should contain
  1308. single 8 byte (u64) attribute inside - the type of that attribute is
  1309. the statistic ID and the value is the value of the statistic.
  1310. Each group has its own interpretation of statistic IDs.
  1311. Attribute IDs correspond to strings from the string set identified
  1312. by ``ETHTOOL_A_STATS_GRP_SS_ID``. Complex statistics (such as RMON histogram
  1313. entries) are also listed inside ``ETHTOOL_A_STATS_GRP`` and do not have
  1314. a string defined in the string set.
  1315. RMON "histogram" counters count number of packets within given size range.
  1316. Because RFC does not specify the ranges beyond the standard 1518 MTU devices
  1317. differ in definition of buckets. For this reason the definition of packet ranges
  1318. is left to each driver.
  1319. ``ETHTOOL_A_STATS_GRP_HIST_RX`` and ``ETHTOOL_A_STATS_GRP_HIST_TX`` nests
  1320. contain the following attributes:
  1321. ================================= ====== ===================================
  1322. ETHTOOL_A_STATS_RMON_HIST_BKT_LOW u32 low bound of the packet size bucket
  1323. ETHTOOL_A_STATS_RMON_HIST_BKT_HI u32 high bound of the bucket
  1324. ETHTOOL_A_STATS_RMON_HIST_VAL u64 packet counter
  1325. ================================= ====== ===================================
  1326. Low and high bounds are inclusive, for example:
  1327. ============================= ==== ====
  1328. RFC statistic low high
  1329. ============================= ==== ====
  1330. etherStatsPkts64Octets 0 64
  1331. etherStatsPkts512to1023Octets 512 1023
  1332. ============================= ==== ====
  1333. ``ETHTOOL_A_STATS_SRC`` is optional. Similar to ``PAUSE_GET``, it takes values
  1334. from ``enum ethtool_mac_stats_src``. If absent from the request, stats will be
  1335. provided with an ``ETHTOOL_A_STATS_SRC`` attribute in the response equal to
  1336. ``ETHTOOL_MAC_STATS_SRC_AGGREGATE``.
  1337. PHC_VCLOCKS_GET
  1338. ===============
  1339. Query device PHC virtual clocks information.
  1340. Request contents:
  1341. ==================================== ====== ==========================
  1342. ``ETHTOOL_A_PHC_VCLOCKS_HEADER`` nested request header
  1343. ==================================== ====== ==========================
  1344. Kernel response contents:
  1345. ==================================== ====== ==========================
  1346. ``ETHTOOL_A_PHC_VCLOCKS_HEADER`` nested reply header
  1347. ``ETHTOOL_A_PHC_VCLOCKS_NUM`` u32 PHC virtual clocks number
  1348. ``ETHTOOL_A_PHC_VCLOCKS_INDEX`` s32 PHC index array
  1349. ==================================== ====== ==========================
  1350. MODULE_GET
  1351. ==========
  1352. Gets transceiver module parameters.
  1353. Request contents:
  1354. ===================================== ====== ==========================
  1355. ``ETHTOOL_A_MODULE_HEADER`` nested request header
  1356. ===================================== ====== ==========================
  1357. Kernel response contents:
  1358. ====================================== ====== ==========================
  1359. ``ETHTOOL_A_MODULE_HEADER`` nested reply header
  1360. ``ETHTOOL_A_MODULE_POWER_MODE_POLICY`` u8 power mode policy
  1361. ``ETHTOOL_A_MODULE_POWER_MODE`` u8 operational power mode
  1362. ====================================== ====== ==========================
  1363. The optional ``ETHTOOL_A_MODULE_POWER_MODE_POLICY`` attribute encodes the
  1364. transceiver module power mode policy enforced by the host. The default policy
  1365. is driver-dependent, but "auto" is the recommended default and it should be
  1366. implemented by new drivers and drivers where conformance to a legacy behavior
  1367. is not critical.
  1368. The optional ``ETHTHOOL_A_MODULE_POWER_MODE`` attribute encodes the operational
  1369. power mode policy of the transceiver module. It is only reported when a module
  1370. is plugged-in. Possible values are:
  1371. .. kernel-doc:: include/uapi/linux/ethtool.h
  1372. :identifiers: ethtool_module_power_mode
  1373. MODULE_SET
  1374. ==========
  1375. Sets transceiver module parameters.
  1376. Request contents:
  1377. ====================================== ====== ==========================
  1378. ``ETHTOOL_A_MODULE_HEADER`` nested request header
  1379. ``ETHTOOL_A_MODULE_POWER_MODE_POLICY`` u8 power mode policy
  1380. ====================================== ====== ==========================
  1381. When set, the optional ``ETHTOOL_A_MODULE_POWER_MODE_POLICY`` attribute is used
  1382. to set the transceiver module power policy enforced by the host. Possible
  1383. values are:
  1384. .. kernel-doc:: include/uapi/linux/ethtool.h
  1385. :identifiers: ethtool_module_power_mode_policy
  1386. For SFF-8636 modules, low power mode is forced by the host according to table
  1387. 6-10 in revision 2.10a of the specification.
  1388. For CMIS modules, low power mode is forced by the host according to table 6-12
  1389. in revision 5.0 of the specification.
  1390. PSE_GET
  1391. =======
  1392. Gets PSE attributes.
  1393. Request contents:
  1394. ===================================== ====== ==========================
  1395. ``ETHTOOL_A_PSE_HEADER`` nested request header
  1396. ===================================== ====== ==========================
  1397. Kernel response contents:
  1398. ========================================== ====== =============================
  1399. ``ETHTOOL_A_PSE_HEADER`` nested reply header
  1400. ``ETHTOOL_A_PODL_PSE_ADMIN_STATE`` u32 Operational state of the PoDL
  1401. PSE functions
  1402. ``ETHTOOL_A_PODL_PSE_PW_D_STATUS`` u32 power detection status of the
  1403. PoDL PSE.
  1404. ``ETHTOOL_A_C33_PSE_ADMIN_STATE`` u32 Operational state of the PoE
  1405. PSE functions.
  1406. ``ETHTOOL_A_C33_PSE_PW_D_STATUS`` u32 power detection status of the
  1407. PoE PSE.
  1408. ``ETHTOOL_A_C33_PSE_PW_CLASS`` u32 power class of the PoE PSE.
  1409. ``ETHTOOL_A_C33_PSE_ACTUAL_PW`` u32 actual power drawn on the
  1410. PoE PSE.
  1411. ``ETHTOOL_A_C33_PSE_EXT_STATE`` u32 power extended state of the
  1412. PoE PSE.
  1413. ``ETHTOOL_A_C33_PSE_EXT_SUBSTATE`` u32 power extended substatus of
  1414. the PoE PSE.
  1415. ``ETHTOOL_A_C33_PSE_AVAIL_PW_LIMIT`` u32 currently configured power
  1416. limit of the PoE PSE.
  1417. ``ETHTOOL_A_C33_PSE_PW_LIMIT_RANGES`` nested Supported power limit
  1418. configuration ranges.
  1419. ``ETHTOOL_A_PSE_PW_D_ID`` u32 Index of the PSE power domain
  1420. ``ETHTOOL_A_PSE_PRIO_MAX`` u32 Priority maximum configurable
  1421. on the PoE PSE
  1422. ``ETHTOOL_A_PSE_PRIO`` u32 Priority of the PoE PSE
  1423. currently configured
  1424. ========================================== ====== =============================
  1425. When set, the optional ``ETHTOOL_A_PODL_PSE_ADMIN_STATE`` attribute identifies
  1426. the operational state of the PoDL PSE functions. The operational state of the
  1427. PSE function can be changed using the ``ETHTOOL_A_PODL_PSE_ADMIN_CONTROL``
  1428. action. This attribute corresponds to ``IEEE 802.3-2018`` 30.15.1.1.2
  1429. aPoDLPSEAdminState. Possible values are:
  1430. .. kernel-doc:: include/uapi/linux/ethtool.h
  1431. :identifiers: ethtool_podl_pse_admin_state
  1432. The same goes for ``ETHTOOL_A_C33_PSE_ADMIN_STATE`` implementing
  1433. ``IEEE 802.3-2022`` 30.9.1.1.2 aPSEAdminState.
  1434. .. kernel-doc:: include/uapi/linux/ethtool.h
  1435. :identifiers: ethtool_c33_pse_admin_state
  1436. When set, the optional ``ETHTOOL_A_PODL_PSE_PW_D_STATUS`` attribute identifies
  1437. the power detection status of the PoDL PSE. The status depend on internal PSE
  1438. state machine and automatic PD classification support. This attribute
  1439. corresponds to ``IEEE 802.3-2018`` 30.15.1.1.3 aPoDLPSEPowerDetectionStatus.
  1440. Possible values are:
  1441. .. kernel-doc:: include/uapi/linux/ethtool.h
  1442. :identifiers: ethtool_podl_pse_pw_d_status
  1443. The same goes for ``ETHTOOL_A_C33_PSE_ADMIN_PW_D_STATUS`` implementing
  1444. ``IEEE 802.3-2022`` 30.9.1.1.5 aPSEPowerDetectionStatus.
  1445. .. kernel-doc:: include/uapi/linux/ethtool.h
  1446. :identifiers: ethtool_c33_pse_pw_d_status
  1447. When set, the optional ``ETHTOOL_A_C33_PSE_PW_CLASS`` attribute identifies
  1448. the power class of the C33 PSE. It depends on the class negotiated between
  1449. the PSE and the PD. This attribute corresponds to ``IEEE 802.3-2022``
  1450. 30.9.1.1.8 aPSEPowerClassification.
  1451. When set, the optional ``ETHTOOL_A_C33_PSE_ACTUAL_PW`` attribute identifies
  1452. the actual power drawn by the C33 PSE. This attribute corresponds to
  1453. ``IEEE 802.3-2022`` 30.9.1.1.23 aPSEActualPower. Actual power is reported
  1454. in mW.
  1455. When set, the optional ``ETHTOOL_A_C33_PSE_EXT_STATE`` attribute identifies
  1456. the extended error state of the C33 PSE. Possible values are:
  1457. .. kernel-doc:: include/uapi/linux/ethtool.h
  1458. :identifiers: ethtool_c33_pse_ext_state
  1459. When set, the optional ``ETHTOOL_A_C33_PSE_EXT_SUBSTATE`` attribute identifies
  1460. the extended error state of the C33 PSE. Possible values are:
  1461. Possible values are:
  1462. .. kernel-doc:: include/uapi/linux/ethtool.h
  1463. :identifiers: ethtool_c33_pse_ext_substate_class_num_events
  1464. ethtool_c33_pse_ext_substate_error_condition
  1465. ethtool_c33_pse_ext_substate_mr_pse_enable
  1466. ethtool_c33_pse_ext_substate_option_detect_ted
  1467. ethtool_c33_pse_ext_substate_option_vport_lim
  1468. ethtool_c33_pse_ext_substate_ovld_detected
  1469. ethtool_c33_pse_ext_substate_pd_dll_power_type
  1470. ethtool_c33_pse_ext_substate_power_not_available
  1471. ethtool_c33_pse_ext_substate_short_detected
  1472. When set, the optional ``ETHTOOL_A_C33_PSE_AVAIL_PW_LIMIT`` attribute
  1473. identifies the C33 PSE power limit in mW.
  1474. When set the optional ``ETHTOOL_A_C33_PSE_PW_LIMIT_RANGES`` nested attribute
  1475. identifies the C33 PSE power limit ranges through
  1476. ``ETHTOOL_A_C33_PSE_PWR_VAL_LIMIT_RANGE_MIN`` and
  1477. ``ETHTOOL_A_C33_PSE_PWR_VAL_LIMIT_RANGE_MAX``.
  1478. If the controller works with fixed classes, the min and max values will be
  1479. equal.
  1480. The ``ETHTOOL_A_PSE_PW_D_ID`` attribute identifies the index of PSE power
  1481. domain.
  1482. When set, the optional ``ETHTOOL_A_PSE_PRIO_MAX`` attribute identifies
  1483. the PSE maximum priority value.
  1484. When set, the optional ``ETHTOOL_A_PSE_PRIO`` attributes is used to
  1485. identifies the currently configured PSE priority.
  1486. For a description of PSE priority attributes, see ``PSE_SET``.
  1487. PSE_SET
  1488. =======
  1489. Sets PSE parameters.
  1490. Request contents:
  1491. ====================================== ====== =============================
  1492. ``ETHTOOL_A_PSE_HEADER`` nested request header
  1493. ``ETHTOOL_A_PODL_PSE_ADMIN_CONTROL`` u32 Control PoDL PSE Admin state
  1494. ``ETHTOOL_A_C33_PSE_ADMIN_CONTROL`` u32 Control PSE Admin state
  1495. ``ETHTOOL_A_C33_PSE_AVAIL_PWR_LIMIT`` u32 Control PoE PSE available
  1496. power limit
  1497. ``ETHTOOL_A_PSE_PRIO`` u32 Control priority of the
  1498. PoE PSE
  1499. ====================================== ====== =============================
  1500. When set, the optional ``ETHTOOL_A_PODL_PSE_ADMIN_CONTROL`` attribute is used
  1501. to control PoDL PSE Admin functions. This option implements
  1502. ``IEEE 802.3-2018`` 30.15.1.2.1 acPoDLPSEAdminControl. See
  1503. ``ETHTOOL_A_PODL_PSE_ADMIN_STATE`` for supported values.
  1504. The same goes for ``ETHTOOL_A_C33_PSE_ADMIN_CONTROL`` implementing
  1505. ``IEEE 802.3-2022`` 30.9.1.2.1 acPSEAdminControl.
  1506. When set, the optional ``ETHTOOL_A_C33_PSE_AVAIL_PWR_LIMIT`` attribute is
  1507. used to control the available power value limit for C33 PSE in milliwatts.
  1508. This attribute corresponds to the `pse_available_power` variable described in
  1509. ``IEEE 802.3-2022`` 33.2.4.4 Variables and `pse_avail_pwr` in 145.2.5.4
  1510. Variables, which are described in power classes.
  1511. It was decided to use milliwatts for this interface to unify it with other
  1512. power monitoring interfaces, which also use milliwatts, and to align with
  1513. various existing products that document power consumption in watts rather than
  1514. classes. If power limit configuration based on classes is needed, the
  1515. conversion can be done in user space, for example by ethtool.
  1516. When set, the optional ``ETHTOOL_A_PSE_PRIO`` attributes is used to
  1517. control the PSE priority. Allowed priority value are between zero and
  1518. the value of ``ETHTOOL_A_PSE_PRIO_MAX`` attribute.
  1519. A lower value indicates a higher priority, meaning that a priority value
  1520. of 0 corresponds to the highest port priority.
  1521. Port priority serves two functions:
  1522. - Power-up Order: After a reset, ports are powered up in order of their
  1523. priority from highest to lowest. Ports with higher priority
  1524. (lower values) power up first.
  1525. - Shutdown Order: When the power budget is exceeded, ports with lower
  1526. priority (higher values) are turned off first.
  1527. PSE_NTF
  1528. =======
  1529. Notify PSE events.
  1530. Notification contents:
  1531. =============================== ====== ========================
  1532. ``ETHTOOL_A_PSE_HEADER`` nested request header
  1533. ``ETHTOOL_A_PSE_EVENTS`` bitset PSE events
  1534. =============================== ====== ========================
  1535. When set, the optional ``ETHTOOL_A_PSE_EVENTS`` attribute identifies the
  1536. PSE events.
  1537. .. kernel-doc:: include/uapi/linux/ethtool_netlink_generated.h
  1538. :identifiers: ethtool_pse_event
  1539. RSS_GET
  1540. =======
  1541. Get indirection table, hash key and hash function info associated with a
  1542. RSS context of an interface similar to ``ETHTOOL_GRSSH`` ioctl request.
  1543. Request contents:
  1544. ===================================== ====== ============================
  1545. ``ETHTOOL_A_RSS_HEADER`` nested request header
  1546. ``ETHTOOL_A_RSS_CONTEXT`` u32 context number
  1547. ``ETHTOOL_A_RSS_START_CONTEXT`` u32 start context number (dumps)
  1548. ===================================== ====== ============================
  1549. ``ETHTOOL_A_RSS_CONTEXT`` specifies which RSS context number to query,
  1550. if not set context 0 (the main context) is queried. Dumps can be filtered
  1551. by device (only listing contexts of a given netdev). Filtering single
  1552. context number is not supported but ``ETHTOOL_A_RSS_START_CONTEXT``
  1553. can be used to start dumping context from the given number (primarily
  1554. used to ignore context 0s and only dump additional contexts).
  1555. Kernel response contents:
  1556. ===================================== ====== ===============================
  1557. ``ETHTOOL_A_RSS_HEADER`` nested reply header
  1558. ``ETHTOOL_A_RSS_CONTEXT`` u32 context number
  1559. ``ETHTOOL_A_RSS_HFUNC`` u32 RSS hash func
  1560. ``ETHTOOL_A_RSS_INDIR`` binary Indir table bytes
  1561. ``ETHTOOL_A_RSS_HKEY`` binary Hash key bytes
  1562. ``ETHTOOL_A_RSS_INPUT_XFRM`` u32 RSS input data transformation
  1563. ``ETHTOOL_A_RSS_FLOW_HASH`` nested Header fields included in hash
  1564. ===================================== ====== ===============================
  1565. ETHTOOL_A_RSS_HFUNC attribute is bitmap indicating the hash function
  1566. being used. Current supported options are toeplitz, xor or crc32.
  1567. ETHTOOL_A_RSS_INDIR attribute returns RSS indirection table where each byte
  1568. indicates queue number.
  1569. ETHTOOL_A_RSS_INPUT_XFRM attribute is a bitmap indicating the type of
  1570. transformation applied to the input protocol fields before given to the RSS
  1571. hfunc. Current supported options are symmetric-xor and symmetric-or-xor.
  1572. ETHTOOL_A_RSS_FLOW_HASH carries per-flow type bitmask of which header
  1573. fields are included in the hash calculation.
  1574. RSS_SET
  1575. =======
  1576. Request contents:
  1577. ===================================== ====== ==============================
  1578. ``ETHTOOL_A_RSS_HEADER`` nested request header
  1579. ``ETHTOOL_A_RSS_CONTEXT`` u32 context number
  1580. ``ETHTOOL_A_RSS_HFUNC`` u32 RSS hash func
  1581. ``ETHTOOL_A_RSS_INDIR`` binary Indir table bytes
  1582. ``ETHTOOL_A_RSS_HKEY`` binary Hash key bytes
  1583. ``ETHTOOL_A_RSS_INPUT_XFRM`` u32 RSS input data transformation
  1584. ``ETHTOOL_A_RSS_FLOW_HASH`` nested Header fields included in hash
  1585. ===================================== ====== ==============================
  1586. ``ETHTOOL_A_RSS_INDIR`` is the minimal RSS table the user expects. Kernel and
  1587. the device driver may replicate the table if its smaller than smallest table
  1588. size supported by the device. For example if user requests ``[0, 1]`` but the
  1589. device needs at least 8 entries - the real table in use will end up being
  1590. ``[0, 1, 0, 1, 0, 1, 0, 1]``. Most devices require the table size to be power
  1591. of 2, so tables which size is not a power of 2 will likely be rejected.
  1592. Using table of size 0 will reset the indirection table to the default.
  1593. RSS_CREATE_ACT
  1594. ==============
  1595. Request contents:
  1596. ===================================== ====== ==============================
  1597. ``ETHTOOL_A_RSS_HEADER`` nested request header
  1598. ``ETHTOOL_A_RSS_CONTEXT`` u32 context number
  1599. ``ETHTOOL_A_RSS_HFUNC`` u32 RSS hash func
  1600. ``ETHTOOL_A_RSS_INDIR`` binary Indir table bytes
  1601. ``ETHTOOL_A_RSS_HKEY`` binary Hash key bytes
  1602. ``ETHTOOL_A_RSS_INPUT_XFRM`` u32 RSS input data transformation
  1603. ===================================== ====== ==============================
  1604. Kernel response contents:
  1605. ===================================== ====== ==============================
  1606. ``ETHTOOL_A_RSS_HEADER`` nested request header
  1607. ``ETHTOOL_A_RSS_CONTEXT`` u32 context number
  1608. ===================================== ====== ==============================
  1609. Create an additional RSS context, if ``ETHTOOL_A_RSS_CONTEXT`` is not
  1610. specified kernel will allocate one automatically.
  1611. RSS_DELETE_ACT
  1612. ==============
  1613. Request contents:
  1614. ===================================== ====== ==============================
  1615. ``ETHTOOL_A_RSS_HEADER`` nested request header
  1616. ``ETHTOOL_A_RSS_CONTEXT`` u32 context number
  1617. ===================================== ====== ==============================
  1618. Delete an additional RSS context.
  1619. PLCA_GET_CFG
  1620. ============
  1621. Gets the IEEE 802.3cg-2019 Clause 148 Physical Layer Collision Avoidance
  1622. (PLCA) Reconciliation Sublayer (RS) attributes.
  1623. Request contents:
  1624. ===================================== ====== ==========================
  1625. ``ETHTOOL_A_PLCA_HEADER`` nested request header
  1626. ===================================== ====== ==========================
  1627. Kernel response contents:
  1628. ====================================== ====== =============================
  1629. ``ETHTOOL_A_PLCA_HEADER`` nested reply header
  1630. ``ETHTOOL_A_PLCA_VERSION`` u16 Supported PLCA management
  1631. interface standard/version
  1632. ``ETHTOOL_A_PLCA_ENABLED`` u8 PLCA Admin State
  1633. ``ETHTOOL_A_PLCA_NODE_ID`` u32 PLCA unique local node ID
  1634. ``ETHTOOL_A_PLCA_NODE_CNT`` u32 Number of PLCA nodes on the
  1635. network, including the
  1636. coordinator
  1637. ``ETHTOOL_A_PLCA_TO_TMR`` u32 Transmit Opportunity Timer
  1638. value in bit-times (BT)
  1639. ``ETHTOOL_A_PLCA_BURST_CNT`` u32 Number of additional packets
  1640. the node is allowed to send
  1641. within a single TO
  1642. ``ETHTOOL_A_PLCA_BURST_TMR`` u32 Time to wait for the MAC to
  1643. transmit a new frame before
  1644. terminating the burst
  1645. ====================================== ====== =============================
  1646. When set, the optional ``ETHTOOL_A_PLCA_VERSION`` attribute indicates which
  1647. standard and version the PLCA management interface complies to. When not set,
  1648. the interface is vendor-specific and (possibly) supplied by the driver.
  1649. The OPEN Alliance SIG specifies a standard register map for 10BASE-T1S PHYs
  1650. embedding the PLCA Reconciliation Sublayer. See "10BASE-T1S PLCA Management
  1651. Registers" at https://www.opensig.org/about/specifications/.
  1652. When set, the optional ``ETHTOOL_A_PLCA_ENABLED`` attribute indicates the
  1653. administrative state of the PLCA RS. When not set, the node operates in "plain"
  1654. CSMA/CD mode. This option is corresponding to ``IEEE 802.3cg-2019`` 30.16.1.1.1
  1655. aPLCAAdminState / 30.16.1.2.1 acPLCAAdminControl.
  1656. When set, the optional ``ETHTOOL_A_PLCA_NODE_ID`` attribute indicates the
  1657. configured local node ID of the PHY. This ID determines which transmit
  1658. opportunity (TO) is reserved for the node to transmit into. This option is
  1659. corresponding to ``IEEE 802.3cg-2019`` 30.16.1.1.4 aPLCALocalNodeID. The valid
  1660. range for this attribute is [0 .. 255] where 255 means "not configured".
  1661. When set, the optional ``ETHTOOL_A_PLCA_NODE_CNT`` attribute indicates the
  1662. configured maximum number of PLCA nodes on the mixing-segment. This number
  1663. determines the total number of transmit opportunities generated during a
  1664. PLCA cycle. This attribute is relevant only for the PLCA coordinator, which is
  1665. the node with aPLCALocalNodeID set to 0. Follower nodes ignore this setting.
  1666. This option is corresponding to ``IEEE 802.3cg-2019`` 30.16.1.1.3
  1667. aPLCANodeCount. The valid range for this attribute is [1 .. 255].
  1668. When set, the optional ``ETHTOOL_A_PLCA_TO_TMR`` attribute indicates the
  1669. configured value of the transmit opportunity timer in bit-times. This value
  1670. must be set equal across all nodes sharing the medium for PLCA to work
  1671. correctly. This option is corresponding to ``IEEE 802.3cg-2019`` 30.16.1.1.5
  1672. aPLCATransmitOpportunityTimer. The valid range for this attribute is
  1673. [0 .. 255].
  1674. When set, the optional ``ETHTOOL_A_PLCA_BURST_CNT`` attribute indicates the
  1675. configured number of extra packets that the node is allowed to send during a
  1676. single transmit opportunity. By default, this attribute is 0, meaning that
  1677. the node can only send a single frame per TO. When greater than 0, the PLCA RS
  1678. keeps the TO after any transmission, waiting for the MAC to send a new frame
  1679. for up to aPLCABurstTimer BTs. This can only happen a number of times per PLCA
  1680. cycle up to the value of this parameter. After that, the burst is over and the
  1681. normal counting of TOs resumes. This option is corresponding to
  1682. ``IEEE 802.3cg-2019`` 30.16.1.1.6 aPLCAMaxBurstCount. The valid range for this
  1683. attribute is [0 .. 255].
  1684. When set, the optional ``ETHTOOL_A_PLCA_BURST_TMR`` attribute indicates how
  1685. many bit-times the PLCA RS waits for the MAC to initiate a new transmission
  1686. when aPLCAMaxBurstCount is greater than 0. If the MAC fails to send a new
  1687. frame within this time, the burst ends and the counting of TOs resumes.
  1688. Otherwise, the new frame is sent as part of the current burst. This option
  1689. is corresponding to ``IEEE 802.3cg-2019`` 30.16.1.1.7 aPLCABurstTimer. The
  1690. valid range for this attribute is [0 .. 255]. Although, the value should be
  1691. set greater than the Inter-Frame-Gap (IFG) time of the MAC (plus some margin)
  1692. for PLCA burst mode to work as intended.
  1693. PLCA_SET_CFG
  1694. ============
  1695. Sets PLCA RS parameters.
  1696. Request contents:
  1697. ====================================== ====== =============================
  1698. ``ETHTOOL_A_PLCA_HEADER`` nested request header
  1699. ``ETHTOOL_A_PLCA_ENABLED`` u8 PLCA Admin State
  1700. ``ETHTOOL_A_PLCA_NODE_ID`` u8 PLCA unique local node ID
  1701. ``ETHTOOL_A_PLCA_NODE_CNT`` u8 Number of PLCA nodes on the
  1702. network, including the
  1703. coordinator
  1704. ``ETHTOOL_A_PLCA_TO_TMR`` u8 Transmit Opportunity Timer
  1705. value in bit-times (BT)
  1706. ``ETHTOOL_A_PLCA_BURST_CNT`` u8 Number of additional packets
  1707. the node is allowed to send
  1708. within a single TO
  1709. ``ETHTOOL_A_PLCA_BURST_TMR`` u8 Time to wait for the MAC to
  1710. transmit a new frame before
  1711. terminating the burst
  1712. ====================================== ====== =============================
  1713. For a description of each attribute, see ``PLCA_GET_CFG``.
  1714. PLCA_GET_STATUS
  1715. ===============
  1716. Gets PLCA RS status information.
  1717. Request contents:
  1718. ===================================== ====== ==========================
  1719. ``ETHTOOL_A_PLCA_HEADER`` nested request header
  1720. ===================================== ====== ==========================
  1721. Kernel response contents:
  1722. ====================================== ====== =============================
  1723. ``ETHTOOL_A_PLCA_HEADER`` nested reply header
  1724. ``ETHTOOL_A_PLCA_STATUS`` u8 PLCA RS operational status
  1725. ====================================== ====== =============================
  1726. When set, the ``ETHTOOL_A_PLCA_STATUS`` attribute indicates whether the node is
  1727. detecting the presence of the BEACON on the network. This flag is
  1728. corresponding to ``IEEE 802.3cg-2019`` 30.16.1.1.2 aPLCAStatus.
  1729. MM_GET
  1730. ======
  1731. Retrieve 802.3 MAC Merge parameters.
  1732. Request contents:
  1733. ==================================== ====== ==========================
  1734. ``ETHTOOL_A_MM_HEADER`` nested request header
  1735. ==================================== ====== ==========================
  1736. Kernel response contents:
  1737. ================================= ====== ===================================
  1738. ``ETHTOOL_A_MM_HEADER`` nested request header
  1739. ``ETHTOOL_A_MM_PMAC_ENABLED`` bool set if RX of preemptible and SMD-V
  1740. frames is enabled
  1741. ``ETHTOOL_A_MM_TX_ENABLED`` bool set if TX of preemptible frames is
  1742. administratively enabled (might be
  1743. inactive if verification failed)
  1744. ``ETHTOOL_A_MM_TX_ACTIVE`` bool set if TX of preemptible frames is
  1745. operationally enabled
  1746. ``ETHTOOL_A_MM_TX_MIN_FRAG_SIZE`` u32 minimum size of transmitted
  1747. non-final fragments, in octets
  1748. ``ETHTOOL_A_MM_RX_MIN_FRAG_SIZE`` u32 minimum size of received non-final
  1749. fragments, in octets
  1750. ``ETHTOOL_A_MM_VERIFY_ENABLED`` bool set if TX of SMD-V frames is
  1751. administratively enabled
  1752. ``ETHTOOL_A_MM_VERIFY_STATUS`` u8 state of the verification function
  1753. ``ETHTOOL_A_MM_VERIFY_TIME`` u32 delay between verification attempts
  1754. ``ETHTOOL_A_MM_MAX_VERIFY_TIME``` u32 maximum verification interval
  1755. supported by device
  1756. ``ETHTOOL_A_MM_STATS`` nested IEEE 802.3-2018 subclause 30.14.1
  1757. oMACMergeEntity statistics counters
  1758. ================================= ====== ===================================
  1759. The attributes are populated by the device driver through the following
  1760. structure:
  1761. .. kernel-doc:: include/linux/ethtool.h
  1762. :identifiers: ethtool_mm_state
  1763. The ``ETHTOOL_A_MM_VERIFY_STATUS`` will report one of the values from
  1764. .. kernel-doc:: include/uapi/linux/ethtool.h
  1765. :identifiers: ethtool_mm_verify_status
  1766. If ``ETHTOOL_A_MM_VERIFY_ENABLED`` was passed as false in the ``MM_SET``
  1767. command, ``ETHTOOL_A_MM_VERIFY_STATUS`` will report either
  1768. ``ETHTOOL_MM_VERIFY_STATUS_INITIAL`` or ``ETHTOOL_MM_VERIFY_STATUS_DISABLED``,
  1769. otherwise it should report one of the other states.
  1770. It is recommended that drivers start with the pMAC disabled, and enable it upon
  1771. user space request. It is also recommended that user space does not depend upon
  1772. the default values from ``ETHTOOL_MSG_MM_GET`` requests.
  1773. ``ETHTOOL_A_MM_STATS`` are reported if ``ETHTOOL_FLAG_STATS`` was set in
  1774. ``ETHTOOL_A_HEADER_FLAGS``. The attribute will be empty if driver did not
  1775. report any statistics. Drivers fill in the statistics in the following
  1776. structure:
  1777. .. kernel-doc:: include/linux/ethtool.h
  1778. :identifiers: ethtool_mm_stats
  1779. MM_SET
  1780. ======
  1781. Modifies the configuration of the 802.3 MAC Merge layer.
  1782. Request contents:
  1783. ================================= ====== ==========================
  1784. ``ETHTOOL_A_MM_VERIFY_TIME`` u32 see MM_GET description
  1785. ``ETHTOOL_A_MM_VERIFY_ENABLED`` bool see MM_GET description
  1786. ``ETHTOOL_A_MM_TX_ENABLED`` bool see MM_GET description
  1787. ``ETHTOOL_A_MM_PMAC_ENABLED`` bool see MM_GET description
  1788. ``ETHTOOL_A_MM_TX_MIN_FRAG_SIZE`` u32 see MM_GET description
  1789. ================================= ====== ==========================
  1790. The attributes are propagated to the driver through the following structure:
  1791. .. kernel-doc:: include/linux/ethtool.h
  1792. :identifiers: ethtool_mm_cfg
  1793. MODULE_FW_FLASH_ACT
  1794. ===================
  1795. Flashes transceiver module firmware.
  1796. Request contents:
  1797. ======================================= ====== ===========================
  1798. ``ETHTOOL_A_MODULE_FW_FLASH_HEADER`` nested request header
  1799. ``ETHTOOL_A_MODULE_FW_FLASH_FILE_NAME`` string firmware image file name
  1800. ``ETHTOOL_A_MODULE_FW_FLASH_PASSWORD`` u32 transceiver module password
  1801. ======================================= ====== ===========================
  1802. The firmware update process consists of three logical steps:
  1803. 1. Downloading a firmware image to the transceiver module and validating it.
  1804. 2. Running the firmware image.
  1805. 3. Committing the firmware image so that it is run upon reset.
  1806. When flash command is given, those three steps are taken in that order.
  1807. This message merely schedules the update process and returns immediately
  1808. without blocking. The process then runs asynchronously.
  1809. Since it can take several minutes to complete, during the update process
  1810. notifications are emitted from the kernel to user space updating it about
  1811. the status and progress.
  1812. The ``ETHTOOL_A_MODULE_FW_FLASH_FILE_NAME`` attribute encodes the firmware
  1813. image file name. The firmware image is downloaded to the transceiver module,
  1814. validated, run and committed.
  1815. The optional ``ETHTOOL_A_MODULE_FW_FLASH_PASSWORD`` attribute encodes a password
  1816. that might be required as part of the transceiver module firmware update
  1817. process.
  1818. The firmware update process can take several minutes to complete. Therefore,
  1819. during the update process notifications are emitted from the kernel to user
  1820. space updating it about the status and progress.
  1821. Notification contents:
  1822. +---------------------------------------------------+--------+----------------+
  1823. | ``ETHTOOL_A_MODULE_FW_FLASH_HEADER`` | nested | reply header |
  1824. +---------------------------------------------------+--------+----------------+
  1825. | ``ETHTOOL_A_MODULE_FW_FLASH_STATUS`` | u32 | status |
  1826. +---------------------------------------------------+--------+----------------+
  1827. | ``ETHTOOL_A_MODULE_FW_FLASH_STATUS_MSG`` | string | status message |
  1828. +---------------------------------------------------+--------+----------------+
  1829. | ``ETHTOOL_A_MODULE_FW_FLASH_DONE`` | uint | progress |
  1830. +---------------------------------------------------+--------+----------------+
  1831. | ``ETHTOOL_A_MODULE_FW_FLASH_TOTAL`` | uint | total |
  1832. +---------------------------------------------------+--------+----------------+
  1833. The ``ETHTOOL_A_MODULE_FW_FLASH_STATUS`` attribute encodes the current status
  1834. of the firmware update process. Possible values are:
  1835. .. kernel-doc:: include/uapi/linux/ethtool.h
  1836. :identifiers: ethtool_module_fw_flash_status
  1837. The ``ETHTOOL_A_MODULE_FW_FLASH_STATUS_MSG`` attribute encodes a status message
  1838. string.
  1839. The ``ETHTOOL_A_MODULE_FW_FLASH_DONE`` and ``ETHTOOL_A_MODULE_FW_FLASH_TOTAL``
  1840. attributes encode the completed and total amount of work, respectively.
  1841. PHY_GET
  1842. =======
  1843. Retrieve information about a given Ethernet PHY sitting on the link. The DO
  1844. operation returns all available information about dev->phydev. User can also
  1845. specify a PHY_INDEX, in which case the DO request returns information about that
  1846. specific PHY.
  1847. As there can be more than one PHY, the DUMP operation can be used to list the PHYs
  1848. present on a given interface, by passing an interface index or name in
  1849. the dump request.
  1850. For more information, refer to :ref:`phy_link_topology`
  1851. Request contents:
  1852. ==================================== ====== ==========================
  1853. ``ETHTOOL_A_PHY_HEADER`` nested request header
  1854. ==================================== ====== ==========================
  1855. Kernel response contents:
  1856. ===================================== ====== ===============================
  1857. ``ETHTOOL_A_PHY_HEADER`` nested request header
  1858. ``ETHTOOL_A_PHY_INDEX`` u32 the phy's unique index, that can
  1859. be used for phy-specific
  1860. requests
  1861. ``ETHTOOL_A_PHY_DRVNAME`` string the phy driver name
  1862. ``ETHTOOL_A_PHY_NAME`` string the phy device name
  1863. ``ETHTOOL_A_PHY_UPSTREAM_TYPE`` u32 the type of device this phy is
  1864. connected to
  1865. ``ETHTOOL_A_PHY_UPSTREAM_INDEX`` u32 the PHY index of the upstream
  1866. PHY
  1867. ``ETHTOOL_A_PHY_UPSTREAM_SFP_NAME`` string if this PHY is connected to
  1868. its parent PHY through an SFP
  1869. bus, the name of this sfp bus
  1870. ``ETHTOOL_A_PHY_DOWNSTREAM_SFP_NAME`` string if the phy controls an sfp bus,
  1871. the name of the sfp bus
  1872. ===================================== ====== ===============================
  1873. When ``ETHTOOL_A_PHY_UPSTREAM_TYPE`` is PHY_UPSTREAM_PHY, the PHY's parent is
  1874. another PHY.
  1875. TSCONFIG_GET
  1876. ============
  1877. Retrieves the information about the current hardware timestamping source and
  1878. configuration.
  1879. It is similar to the deprecated ``SIOCGHWTSTAMP`` ioctl request.
  1880. Request contents:
  1881. ==================================== ====== ==========================
  1882. ``ETHTOOL_A_TSCONFIG_HEADER`` nested request header
  1883. ==================================== ====== ==========================
  1884. Kernel response contents:
  1885. ======================================== ====== ============================
  1886. ``ETHTOOL_A_TSCONFIG_HEADER`` nested request header
  1887. ``ETHTOOL_A_TSCONFIG_HWTSTAMP_PROVIDER`` nested PTP hw clock provider
  1888. ``ETHTOOL_A_TSCONFIG_TX_TYPES`` bitset hwtstamp Tx type
  1889. ``ETHTOOL_A_TSCONFIG_RX_FILTERS`` bitset hwtstamp Rx filter
  1890. ``ETHTOOL_A_TSCONFIG_HWTSTAMP_FLAGS`` u32 hwtstamp flags
  1891. ======================================== ====== ============================
  1892. When set the ``ETHTOOL_A_TSCONFIG_HWTSTAMP_PROVIDER`` attribute identifies the
  1893. source of the hw timestamping provider. It is composed by
  1894. ``ETHTOOL_A_TS_HWTSTAMP_PROVIDER_INDEX`` attribute which describe the index of
  1895. the PTP device and ``ETHTOOL_A_TS_HWTSTAMP_PROVIDER_QUALIFIER`` which describe
  1896. the qualifier of the timestamp.
  1897. When set the ``ETHTOOL_A_TSCONFIG_TX_TYPES``, ``ETHTOOL_A_TSCONFIG_RX_FILTERS``
  1898. and the ``ETHTOOL_A_TSCONFIG_HWTSTAMP_FLAGS`` attributes identify the Tx
  1899. type, the Rx filter and the flags configured for the current hw timestamping
  1900. provider. The attributes are propagated to the driver through the following
  1901. structure:
  1902. .. kernel-doc:: include/linux/net_tstamp.h
  1903. :identifiers: kernel_hwtstamp_config
  1904. TSCONFIG_SET
  1905. ============
  1906. Set the information about the current hardware timestamping source and
  1907. configuration.
  1908. It is similar to the deprecated ``SIOCSHWTSTAMP`` ioctl request.
  1909. Request contents:
  1910. ======================================== ====== ============================
  1911. ``ETHTOOL_A_TSCONFIG_HEADER`` nested request header
  1912. ``ETHTOOL_A_TSCONFIG_HWTSTAMP_PROVIDER`` nested PTP hw clock provider
  1913. ``ETHTOOL_A_TSCONFIG_TX_TYPES`` bitset hwtstamp Tx type
  1914. ``ETHTOOL_A_TSCONFIG_RX_FILTERS`` bitset hwtstamp Rx filter
  1915. ``ETHTOOL_A_TSCONFIG_HWTSTAMP_FLAGS`` u32 hwtstamp flags
  1916. ======================================== ====== ============================
  1917. Kernel response contents:
  1918. ======================================== ====== ============================
  1919. ``ETHTOOL_A_TSCONFIG_HEADER`` nested request header
  1920. ``ETHTOOL_A_TSCONFIG_HWTSTAMP_PROVIDER`` nested PTP hw clock provider
  1921. ``ETHTOOL_A_TSCONFIG_TX_TYPES`` bitset hwtstamp Tx type
  1922. ``ETHTOOL_A_TSCONFIG_RX_FILTERS`` bitset hwtstamp Rx filter
  1923. ``ETHTOOL_A_TSCONFIG_HWTSTAMP_FLAGS`` u32 hwtstamp flags
  1924. ======================================== ====== ============================
  1925. For a description of each attribute, see ``TSCONFIG_GET``.
  1926. MSE_GET
  1927. =======
  1928. Retrieves detailed Mean Square Error (MSE) diagnostic information from the PHY.
  1929. Request Contents:
  1930. ==================================== ====== ============================
  1931. ``ETHTOOL_A_MSE_HEADER`` nested request header
  1932. ==================================== ====== ============================
  1933. Kernel Response Contents:
  1934. ==================================== ====== ================================
  1935. ``ETHTOOL_A_MSE_HEADER`` nested reply header
  1936. ``ETHTOOL_A_MSE_CAPABILITIES`` nested capability/scale info for MSE
  1937. measurements
  1938. ``ETHTOOL_A_MSE_CHANNEL_A`` nested snapshot for Channel A
  1939. ``ETHTOOL_A_MSE_CHANNEL_B`` nested snapshot for Channel B
  1940. ``ETHTOOL_A_MSE_CHANNEL_C`` nested snapshot for Channel C
  1941. ``ETHTOOL_A_MSE_CHANNEL_D`` nested snapshot for Channel D
  1942. ``ETHTOOL_A_MSE_WORST_CHANNEL`` nested snapshot for worst channel
  1943. ``ETHTOOL_A_MSE_LINK`` nested snapshot for link-wide aggregate
  1944. ==================================== ====== ================================
  1945. MSE Capabilities
  1946. ----------------
  1947. This nested attribute reports the capability / scaling properties used to
  1948. interpret snapshot values.
  1949. ============================================== ====== =========================
  1950. ``ETHTOOL_A_MSE_CAPABILITIES_MAX_AVERAGE_MSE`` uint max avg_mse scale
  1951. ``ETHTOOL_A_MSE_CAPABILITIES_MAX_PEAK_MSE`` uint max peak_mse scale
  1952. ``ETHTOOL_A_MSE_CAPABILITIES_REFRESH_RATE_PS`` uint sample rate (picoseconds)
  1953. ``ETHTOOL_A_MSE_CAPABILITIES_NUM_SYMBOLS`` uint symbols per HW sample
  1954. ============================================== ====== =========================
  1955. The max-average/peak fields are included only if the corresponding metric
  1956. is supported by the PHY. Their absence indicates that the metric is not
  1957. available.
  1958. See ``struct phy_mse_capability`` kernel documentation in
  1959. ``include/linux/phy.h``.
  1960. MSE Snapshot
  1961. ------------
  1962. Each per-channel nest contains an atomic snapshot of MSE values for that
  1963. selector (channel A/B/C/D, worst channel, or link).
  1964. ========================================== ====== ===================
  1965. ``ETHTOOL_A_MSE_SNAPSHOT_AVERAGE_MSE`` uint average MSE value
  1966. ``ETHTOOL_A_MSE_SNAPSHOT_PEAK_MSE`` uint current peak MSE
  1967. ``ETHTOOL_A_MSE_SNAPSHOT_WORST_PEAK_MSE`` uint worst-case peak MSE
  1968. ========================================== ====== ===================
  1969. Within each channel nest, only the metrics supported by the PHY will be present.
  1970. See ``struct phy_mse_snapshot`` kernel documentation in
  1971. ``include/linux/phy.h``.
  1972. Request translation
  1973. ===================
  1974. The following table maps ioctl commands to netlink commands providing their
  1975. functionality. Entries with "n/a" in right column are commands which do not
  1976. have their netlink replacement yet. Entries which "n/a" in the left column
  1977. are netlink only.
  1978. =================================== =====================================
  1979. ioctl command netlink command
  1980. =================================== =====================================
  1981. ``ETHTOOL_GSET`` ``ETHTOOL_MSG_LINKINFO_GET``
  1982. ``ETHTOOL_MSG_LINKMODES_GET``
  1983. ``ETHTOOL_SSET`` ``ETHTOOL_MSG_LINKINFO_SET``
  1984. ``ETHTOOL_MSG_LINKMODES_SET``
  1985. ``ETHTOOL_GDRVINFO`` n/a
  1986. ``ETHTOOL_GREGS`` n/a
  1987. ``ETHTOOL_GWOL`` ``ETHTOOL_MSG_WOL_GET``
  1988. ``ETHTOOL_SWOL`` ``ETHTOOL_MSG_WOL_SET``
  1989. ``ETHTOOL_GMSGLVL`` ``ETHTOOL_MSG_DEBUG_GET``
  1990. ``ETHTOOL_SMSGLVL`` ``ETHTOOL_MSG_DEBUG_SET``
  1991. ``ETHTOOL_NWAY_RST`` n/a
  1992. ``ETHTOOL_GLINK`` ``ETHTOOL_MSG_LINKSTATE_GET``
  1993. ``ETHTOOL_GEEPROM`` n/a
  1994. ``ETHTOOL_SEEPROM`` n/a
  1995. ``ETHTOOL_GCOALESCE`` ``ETHTOOL_MSG_COALESCE_GET``
  1996. ``ETHTOOL_SCOALESCE`` ``ETHTOOL_MSG_COALESCE_SET``
  1997. ``ETHTOOL_GRINGPARAM`` ``ETHTOOL_MSG_RINGS_GET``
  1998. ``ETHTOOL_SRINGPARAM`` ``ETHTOOL_MSG_RINGS_SET``
  1999. ``ETHTOOL_GPAUSEPARAM`` ``ETHTOOL_MSG_PAUSE_GET``
  2000. ``ETHTOOL_SPAUSEPARAM`` ``ETHTOOL_MSG_PAUSE_SET``
  2001. ``ETHTOOL_GRXCSUM`` ``ETHTOOL_MSG_FEATURES_GET``
  2002. ``ETHTOOL_SRXCSUM`` ``ETHTOOL_MSG_FEATURES_SET``
  2003. ``ETHTOOL_GTXCSUM`` ``ETHTOOL_MSG_FEATURES_GET``
  2004. ``ETHTOOL_STXCSUM`` ``ETHTOOL_MSG_FEATURES_SET``
  2005. ``ETHTOOL_GSG`` ``ETHTOOL_MSG_FEATURES_GET``
  2006. ``ETHTOOL_SSG`` ``ETHTOOL_MSG_FEATURES_SET``
  2007. ``ETHTOOL_TEST`` n/a
  2008. ``ETHTOOL_GSTRINGS`` ``ETHTOOL_MSG_STRSET_GET``
  2009. ``ETHTOOL_PHYS_ID`` n/a
  2010. ``ETHTOOL_GSTATS`` n/a
  2011. ``ETHTOOL_GTSO`` ``ETHTOOL_MSG_FEATURES_GET``
  2012. ``ETHTOOL_STSO`` ``ETHTOOL_MSG_FEATURES_SET``
  2013. ``ETHTOOL_GPERMADDR`` rtnetlink ``RTM_GETLINK``
  2014. ``ETHTOOL_GUFO`` ``ETHTOOL_MSG_FEATURES_GET``
  2015. ``ETHTOOL_SUFO`` ``ETHTOOL_MSG_FEATURES_SET``
  2016. ``ETHTOOL_GGSO`` ``ETHTOOL_MSG_FEATURES_GET``
  2017. ``ETHTOOL_SGSO`` ``ETHTOOL_MSG_FEATURES_SET``
  2018. ``ETHTOOL_GFLAGS`` ``ETHTOOL_MSG_FEATURES_GET``
  2019. ``ETHTOOL_SFLAGS`` ``ETHTOOL_MSG_FEATURES_SET``
  2020. ``ETHTOOL_GPFLAGS`` ``ETHTOOL_MSG_PRIVFLAGS_GET``
  2021. ``ETHTOOL_SPFLAGS`` ``ETHTOOL_MSG_PRIVFLAGS_SET``
  2022. ``ETHTOOL_GRXFH`` ``ETHTOOL_MSG_RSS_GET``
  2023. ``ETHTOOL_SRXFH`` ``ETHTOOL_MSG_RSS_SET``
  2024. ``ETHTOOL_GGRO`` ``ETHTOOL_MSG_FEATURES_GET``
  2025. ``ETHTOOL_SGRO`` ``ETHTOOL_MSG_FEATURES_SET``
  2026. ``ETHTOOL_GRXRINGS`` n/a
  2027. ``ETHTOOL_GRXCLSRLCNT`` n/a
  2028. ``ETHTOOL_GRXCLSRULE`` n/a
  2029. ``ETHTOOL_GRXCLSRLALL`` n/a
  2030. ``ETHTOOL_SRXCLSRLDEL`` n/a
  2031. ``ETHTOOL_SRXCLSRLINS`` n/a
  2032. ``ETHTOOL_FLASHDEV`` n/a
  2033. ``ETHTOOL_RESET`` n/a
  2034. ``ETHTOOL_SRXNTUPLE`` n/a
  2035. ``ETHTOOL_GRXNTUPLE`` n/a
  2036. ``ETHTOOL_GSSET_INFO`` ``ETHTOOL_MSG_STRSET_GET``
  2037. ``ETHTOOL_GRXFHINDIR`` ``ETHTOOL_MSG_RSS_GET``
  2038. ``ETHTOOL_SRXFHINDIR`` ``ETHTOOL_MSG_RSS_SET``
  2039. ``ETHTOOL_GFEATURES`` ``ETHTOOL_MSG_FEATURES_GET``
  2040. ``ETHTOOL_SFEATURES`` ``ETHTOOL_MSG_FEATURES_SET``
  2041. ``ETHTOOL_GCHANNELS`` ``ETHTOOL_MSG_CHANNELS_GET``
  2042. ``ETHTOOL_SCHANNELS`` ``ETHTOOL_MSG_CHANNELS_SET``
  2043. ``ETHTOOL_SET_DUMP`` n/a
  2044. ``ETHTOOL_GET_DUMP_FLAG`` n/a
  2045. ``ETHTOOL_GET_DUMP_DATA`` n/a
  2046. ``ETHTOOL_GET_TS_INFO`` ``ETHTOOL_MSG_TSINFO_GET``
  2047. ``ETHTOOL_GMODULEINFO`` ``ETHTOOL_MSG_MODULE_EEPROM_GET``
  2048. ``ETHTOOL_GMODULEEEPROM`` ``ETHTOOL_MSG_MODULE_EEPROM_GET``
  2049. ``ETHTOOL_GEEE`` ``ETHTOOL_MSG_EEE_GET``
  2050. ``ETHTOOL_SEEE`` ``ETHTOOL_MSG_EEE_SET``
  2051. ``ETHTOOL_GRSSH`` ``ETHTOOL_MSG_RSS_GET``
  2052. ``ETHTOOL_SRSSH`` n/a
  2053. ``ETHTOOL_GTUNABLE`` n/a
  2054. ``ETHTOOL_STUNABLE`` n/a
  2055. ``ETHTOOL_GPHYSTATS`` n/a
  2056. ``ETHTOOL_PERQUEUE`` n/a
  2057. ``ETHTOOL_GLINKSETTINGS`` ``ETHTOOL_MSG_LINKINFO_GET``
  2058. ``ETHTOOL_MSG_LINKMODES_GET``
  2059. ``ETHTOOL_SLINKSETTINGS`` ``ETHTOOL_MSG_LINKINFO_SET``
  2060. ``ETHTOOL_MSG_LINKMODES_SET``
  2061. ``ETHTOOL_PHY_GTUNABLE`` n/a
  2062. ``ETHTOOL_PHY_STUNABLE`` n/a
  2063. ``ETHTOOL_GFECPARAM`` ``ETHTOOL_MSG_FEC_GET``
  2064. ``ETHTOOL_SFECPARAM`` ``ETHTOOL_MSG_FEC_SET``
  2065. n/a ``ETHTOOL_MSG_CABLE_TEST_ACT``
  2066. n/a ``ETHTOOL_MSG_CABLE_TEST_TDR_ACT``
  2067. n/a ``ETHTOOL_MSG_TUNNEL_INFO_GET``
  2068. n/a ``ETHTOOL_MSG_PHC_VCLOCKS_GET``
  2069. n/a ``ETHTOOL_MSG_MODULE_GET``
  2070. n/a ``ETHTOOL_MSG_MODULE_SET``
  2071. n/a ``ETHTOOL_MSG_PLCA_GET_CFG``
  2072. n/a ``ETHTOOL_MSG_PLCA_SET_CFG``
  2073. n/a ``ETHTOOL_MSG_PLCA_GET_STATUS``
  2074. n/a ``ETHTOOL_MSG_MM_GET``
  2075. n/a ``ETHTOOL_MSG_MM_SET``
  2076. n/a ``ETHTOOL_MSG_MODULE_FW_FLASH_ACT``
  2077. n/a ``ETHTOOL_MSG_PHY_GET``
  2078. ``SIOCGHWTSTAMP`` ``ETHTOOL_MSG_TSCONFIG_GET``
  2079. ``SIOCSHWTSTAMP`` ``ETHTOOL_MSG_TSCONFIG_SET``
  2080. =================================== =====================================