ETHTOOL(8)
๐ ETHTOOL(8) โ System Manager's Manual ๐
okay so bestie, this is the manual for ethtool, and it is literally the main character of wired Ethernet tweaking. no cap. ๐
๐ธ NAME ๐ธ
ethtool โ query or control network driver and hardware settings.
โจ SYNOPSIS โจ
here's the whole shape of it, bestie โ every invocation form, exactly as it lives:
ethtool devname
ethtool -h|--help
ethtool --version
ethtool [--debug N] args
ethtool [--disable-netlink] args
ethtool [--json] args
ethtool [-I | --include-statistics] args
ethtool [--phy N] args
ethtool --monitor [ command ] [ devname ]
ethtool -a|--show-pause devname
ethtool -A|--pause devname [autoneg on|off] [rx on|off] [tx on|off]
ethtool -c|--show-coalesce devname
ethtool -C|--coalesce devname [adaptive-rx on|off] [adaptive-tx on|off]
[rx-usecs N] [rx-frames N] [rx-usecs-irq N] [rx-frames-irq N]
[tx-usecs N] [tx-frames N] [tx-usecs-irq N] [tx-frames-irq N]
[stats-block-usecs N] [pkt-rate-low N] [rx-usecs-low N]
[rx-frames-low N] [tx-usecs-low N] [tx-frames-low N]
[pkt-rate-high N] [rx-usecs-high N] [rx-frames-high N]
[tx-usecs-high N] [tx-frames-high N] [sample-interval N]
[cqe-mode-rx on|off] [cqe-mode-tx on|off] [tx-aggr-max-bytes N]
[tx-aggr-max-frames N] [tx-aggr-time-usecs N] [rx-cqe-frames N]
[rx-cqe-nsecs N]
ethtool -g|--show-ring devname
ethtool -G|--set-ring devname [rx N] [rx-mini N] [rx-jumbo N] [tx N]
[rx-buf-len N] [tcp-data-split auto|on|off] [hds-thresh N]
[cqe-size N] [tx-push N] [rx-push N] [tx-push-buf-len N]
ethtool -i|--driver devname
ethtool -d|--register-dump devname [raw on|off] [hex on|off] [file name]
ethtool -e|--eeprom-dump devname [raw on|off] [offset N] [length N]
ethtool -E|--change-eeprom devname [magic N] [offset N] [length N]
[value N]
ethtool -k|--show-features|--show-offload devname
ethtool -K|--features|--offload devname feature on|off ...
ethtool -p|--identify devname [N]
ethtool -P|--show-permaddr devname
ethtool -r|--negotiate devname
ethtool -S|--statistics devname [--all-groups|--groups [eth-phy]
[eth-mac] [eth-ctrl] [rmon] ]
ethtool --phy-statistics devname
ethtool -t|--test devname [offline|online|external_lb]
ethtool -s devname [speed N] [lanes N] [duplex half|full]
[port tp|aui|bnc|mii] [mdix auto|on|off] [autoneg on|off]
[advertise N[/M] | advertise mode on|off ...] [phyad N]
[xcvr internal|external] [wol N[/M] | wol p|u|m|b|a|g|s|f|d...]
[sopass xx:yy:zz:aa:bb:cc] [master-slave preferred-master|preferred-slave|forced-master|forced-slave] [msglvl
N[/M] | msglvl type on|off ...]
ethtool -n|-u|--show-nfc|--show-ntuple devname
[ rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6 |
rule N ]
ethtool -N|-U|--config-nfc|--config-ntuple devname
rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6
m|v|t|s|d|f|n|r... |
flow-type
ether|ip4|tcp4|udp4|sctp4|ah4|esp4|ip6|tcp6|udp6|ah6|esp6|sctp6
[src xx:yy:zz:aa:bb:cc [m xx:yy:zz:aa:bb:cc]]
[dst xx:yy:zz:aa:bb:cc [m xx:yy:zz:aa:bb:cc]] [proto N [m N]]
[src-ip ip-address [m ip-address]] [dst-ip ip-address [m ip-address]] [tos N [m N]] [tclass N [m N]] [l4proto N [m N]]
[src-port N [m N]] [dst-port N [m N]] [spi N [m N]]
[l4data N [m N]] [vlan-etype N [m N]] [vlan N [m N]]
[user-def N [m N]] [dst-mac xx:yy:zz:aa:bb:cc [m xx:yy:zz:aa:bb:cc]] [action N]
[context N] [loc N] |
delete N
ethtool -w|--get-dump devname [data filename]
ethtool -W|--set-dump devname N
ethtool -T|--show-time-stamping devname [index N qualifier precise|approx]
ethtool --get-hwtimestamp-cfg devname
ethtool --set-hwtimestamp-cfg devname [index N qualifier precise|approx]
[tx TX-TYPE] [rx-filter RX-FILTER]
ethtool -x|--show-rxfh-indir|--show-rxfh devname
ethtool -X|--set-rxfh-indir|--rxfh devname [hkey xx:yy:zz:aa:bb:cc:...]
[start N] [ equal N | weight W0 W1 ... | default ] [hfunc FUNC]
[xfrm symmetric-xor|symmetric-or-xor|none] [context CTX | new]
[delete]
ethtool -f|--flash devname file [N]
ethtool -l|--show-channels devname
ethtool -L|--set-channels devname [rx N] [tx N] [other N] [combined N]
ethtool -m|--dump-module-eeprom|--module-info devname [raw on|off]
[hex on|off] [pages on|off] [offset N] [length N] [page N]
[bank N] [i2c N]
ethtool --show-priv-flags devname
ethtool --set-priv-flags devname flag on|off ...
ethtool --show-eee devname
ethtool --set-eee devname [eee on|off] [tx-lpi on|off] [tx-timer N]
[advertise N]
ethtool --set-phy-tunable devname [ downshift on|off [count N] ] [
fast-link-down on|off [msecs N] ] [ energy-detect-power-down
on|off [msecs N] ] [ short-cable-preset on|off ] [ lpf-bandwidth
[value N] ] [ dsp-eq-init-value [value N] ]
ethtool --get-phy-tunable devname [downshift] [fast-link-down] [energy-detect-power-down] [short-cable-preset] [lpf-bandwidth] [dsp-eq-init-value]
ethtool --get-tunable devname [rx-copybreak] [tx-copybreak] [tx-buf-size] [pfc-prevention-tout]
ethtool --set-tunable devname [rx-copybreak N] [tx-copybreak N]
[tx-buf-size N] [pfc-prevention-tout N]
ethtool --reset devname [flags N] [mgmt] [mgmt-shared] [irq] [irq-shared] [dma] [dma-shared] [filter] [filter-shared] [offload]
[offload-shared] [mac] [mac-shared] [phy] [phy-shared] [ram]
[ram-shared] [ap] [ap-shared] [dedicated] [all]
ethtool --show-fec devname
ethtool --set-fec devname encoding auto|off|rs|baser|llrs [...]
ethtool -Q|--per-queue devname [queue_mask %x] sub_command ...
ethtool --cable-test devname
ethtool --cable-test-tdr devname [first N] [last N] [step N] [pair N]
ethtool --show-tunnels devname
ethtool --show-module devname
ethtool --set-module devname [power-mode-policy high|auto]
ethtool --get-plca-cfg devname
ethtool --set-plca-cfg devname [enable on|off] [node-id N] [node-cnt N]
[to-tmr N] [burst-cnt N] [burst-tmr N]
ethtool --get-plca-status devname
ethtool --show-mm devname
ethtool --set-mm devname [verify-enabled on|off] [verify-time N]
[tx-enabled on|off] [pmac-enabled on|off] [tx-min-frag-size N]
ethtool --show-pse devname
ethtool --set-pse devname [podl-pse-admin-control enable|disable]
[c33-pse-admin-control enable|disable] [c33-pse-avail-pw-limit N]
[prio N]
ethtool --flash-module-firmware devname file FILE [pass PASS]
ethtool --show-phys devname
๐ฆ DESCRIPTION ๐ฆ
okay so ethtool is the tool you use to query and control network device driver and hardware settings, especially for wired Ethernet devices. it's giving hardware whisperer, honestly. ๐ฅ
and devname? that's literally the name of the network device on which ethtool should operate. periodt. ๐
๐ OPTIONS ๐
when you call ethtool with a single argument that specifies the device name, it prints the current settings of that device. cute, useful, iconic.
-h,--helpโ shows a short help message. your lil rescue text, bestie. ๐ซถ--versionโ shows theethtoolversion number.--debug Nโ turns on debugging messages. the argument is interpreted as a mask:0x01โ parser information0x02โ summary of netlink messages0x04โ hex dump of sent netlink messages0x08โ hex dump of received netlink messages0x10โ structure of netlink messages
--disable-netlinkโ do not use netlink, and fall back to the ioctl interface if possible. lowkey old-school mode. โจ--jsonโ output results in JavaScript Object Notation (JSON). only a subset of options support this, bestie. those which do not will continue to output plain text in the presence of this option.-I,--include-statisticsโ include command-related statistics in the output. this option allows displaying relevant device statistics for selected get commands.--phy Nโ target a PHY within the interface. the PHY index can be retrieved with--show-phys. PHY index0targets the phy device directly attached to the ethernet MAC, if any. the following commands can accept a PHY index:--cable-test--cable-test-tdr--get-plca-cfg--set-plca-cfg--get-plca-status--show-pse--set-pse--show-mse
-a,--show-pauseโ queries the specified Ethernet device for pause parameter information.--src aggregate|emac|pmacโ if the MAC Merge layer is supported, request a particular source of device statistics (eMACorpMAC, or their aggregate). only valid ifethtoolwas invoked with the-I --include-statisticsargument.
-A,--pauseโ changes the pause parameters of the specified Ethernet device.autoneg on|offโ specifies whether pause autonegotiation should be enabled.rx on|offโ specifies whether RX pause should be enabled.tx on|offโ specifies whether TX pause should be enabled.
-c,--show-coalesceโ queries the specified network device for coalescing information.-C,--coalesceโ changes the coalescing settings of the specified network device.-g,--show-ringโ queries the specified network device for rx/tx ring parameter information.-G,--set-ringโ changes the rx/tx ring parameters of the specified network device.rx Nโ changes the number of ring entries for the Rx ring.rx-mini Nโ changes the number of ring entries for the Rx Mini ring.rx-jumbo Nโ changes the number of ring entries for the Rx Jumbo ring.tx Nโ changes the number of ring entries for the Tx ring.rx-buf-len Nโ changes the size of a buffer in the Rx ring.tcp-data-split auto|on|offโ specifies the state of TCP data split.hds-thresh Nโ specifies the threshold value of tcp data split.cqe-size Nโ changes the size of completion queue event.tx-push on|offโ specifies whether TX push should be enabled.rx-push on|offโ specifies whether RX push should be enabled.tx-push-buf-len Nโ specifies the maximum number of bytes of a transmitted packet a driver can push directly to the underlying device.
-i,--driverโ queries the specified network device for associated driver information.-d,--register-dumpโ bestie, this one grabs and prints a register dump for the network device you picked. Some devices have a known register format and get decoded; others just print in hex. Whenrawis enabled, thenethtooldumps the raw register data tostdout. Iffileis specified, then it uses the contents of a previous raw register dump instead of reading from the device. ๐-e,--eeprom-dumpโ retrieves and prints an EEPROM dump for the specified network device. Whenrawis enabled, then it dumps the raw EEPROM data tostdout. Thelengthandoffsetparameters let you dump certain portions of the EEPROM. Default is to dump the entire EEPROM. ๐raw on|offโ turns raw mode on or off for the dump.offset Nโ the offset knob.length Nโ the length knob.
-E,--change-eepromโ ifvalueis specified, changes the EEPROM byte for the specified network device.offsetandvaluespecify which byte and its new value. Ifvalueis not specified,stdinis read and written to the EEPROM. Thelengthandoffsetparameters allow writing to certain portions of the EEPROM.
โ ๏ธ bestie, because of the persistent nature of writing to the EEPROM, a device-specific magic key must be specified to prevent the accidental writing to the EEPROM. like, respect the magic key fr fr.
-k,--show-features,--show-offloadโ queries the specified network device for the state of protocol offload and other features. ๐-K,--features,--offloadโ changes the offload parameters and other features of the specified network device. The following feature names are built-in and others may be defined by the kernel. โจrx on|offโ specifies whether RX checksumming should be enabled.tx on|offโ specifies whether TX checksumming should be enabled.sg on|offโ specifies whether scatter-gather should be enabled.tso on|offโ specifies whether TCP segmentation offload should be enabled.ufo on|offโ specifies whether UDP fragmentation offload should be enabled.gso on|offโ specifies whether generic segmentation offload should be enabled.gro on|offโ specifies whether generic receive offload should be enabled.lro on|offโ specifies whether large receive offload should be enabled.rxvlan on|offโ specifies whether RX VLAN acceleration should be enabled.txvlan on|offโ specifies whether TX VLAN acceleration should be enabled.ntuple on|offโ specifies whether Rx ntuple filters and actions should be enabled.rxhash on|offโ specifies whether receive hashing offload should be enabled.
-p,--identifyโ initiates adapter-specific action intended to enable an operator to easily identify the adapter by sight. Typically this involves blinking one or more LEDs on the specific network port. ๐ฆ[ N]โ length of time to performphys-id, in seconds.
-P,--show-permaddrโ queries the specified network device for permanent hardware address. ๐ซถ-r,--negotiateโ restarts auto-negotiation on the specified Ethernet device, if auto-negotiation is enabled. ๐ธ-S,--statisticsโ queries the specified network device for standard (IEEE, IETF, etc.), or NIC- and driver-specific statistics. NIC- and driver-specific statistics are requested when no group of statistics is specified. ๐ญ NIC- and driver-specific statistics and standard statistics are independent, devices may implement either, both or none. There is little commonality between naming of NIC- and driver-specific statistics across vendors. lowkey chaotic, but that's the vibe.--all-groupsโ no extra description given here, bestie, it's just the named flag living its truth.--groups [eth-phy] [eth-mac] [eth-ctrl] [rmon]โ request groups of standard device statistics.--src aggregate|emac|pmacโ if the MAC Merge layer is supported, request a particular source of device statistics (eMACorpMAC, or their aggregate).
--phy-statisticsโ queries the specified network device for PHY specific statistics. ๐-t,--testโ executes adapter selftest on the specified network device. Possible test modes are: ๐งofflineโ perform full set of tests, possibly interrupting normal operation during the tests.onlineโ perform limited set of tests, not interrupting normal operation.external_lbโ perform full set of tests, as foroffline, and additionally an external-loopback test.
-s,--changeโ allows changing some or all settings of the specified network device. All following options only apply if-swas specified. main character energy, honestly. ๐speed Nโ set speed in Mb/s.ethtoolwith just the device name as an argument will show you the supported device speeds.lanes Nโ set number of lanes.duplex half|fullโ sets full or half duplex mode.port tp|aui|bnc|miiโ selects device port.master-slave preferred-master|preferred-slave|forced-master|forced-slaveโ configure MASTER/SLAVE role of the PHY. When the PHY is configured as MASTER, the PMA Transmit function shall sourceTX_TCLKfrom a local clock source. When configured as SLAVE, the PMA Transmit function shall sourceTX_TCLKfrom the clock recovered from data stream provided by MASTER. Not all devices support this. ๐ซถpreferred-masterโ prefer MASTER role on autonegotiation.preferred-slaveโ prefer SLAVE role on autonegotiation.forced-masterโ force the PHY in MASTER role. Can be used without autonegotiation.forced-slaveโ force the PHY in SLAVE role. Can be used without autonegotiation.
mdix auto|on|offโ selects MDI-X mode for port. May be used to override the automatic detection feature of most adapters. An argument ofautomeans automatic detection of MDI status,onforces MDI-X (crossover) mode, whileoffmeans MDI (straight through) mode. The driver should guarantee that this command takes effect immediately, and if necessary may reset the link to cause the change to take effect. ๐autoneg on|offโ specifies whether autonegotiation should be enabled. Autonegotiation is enabled by default, but in some network devices may have trouble with it, so you can disable it if really necessary. ๐
advertise Nโ tells autonegotiation which speeds and duplex modes to brag about ๐Nis a hexadecimal value, and you can OR together as many of the following as you want. Here's the whole menu, bestie โ yes, all of it, I would never gatekeep:
0x001 10baseT Half
0x002 10baseT Full
0x100000000000000000000000 10baseT1L Full
0x8000000000000000000000000 10baseT1S Full
0x10000000000000000000000000 10baseT1S Half
0x20000000000000000000000000 10baseT1S_P2MP Half
0x40000000000000000000000000 10baseT1BRR Full
0x004 100baseT Half
0x008 100baseT Full
0x80000000000000000 100baseT1 Full
0x40000000000000000000000 100baseFX Half
0x80000000000000000000000 100baseFX Full
0x010 1000baseT Half (not supported by IEEE standards)
0x020 1000baseT Full
0x20000 1000baseKX Full
0x20000000000 1000baseX Full
0x100000000000000000 1000baseT1 Full
0x8000 2500baseX Full (not supported by IEEE standards)
0x800000000000 2500baseT Full
0x1000000000000 5000baseT Full
0x1000 10000baseT Full
0x40000 10000baseKX4 Full
0x80000 10000baseKR Full
0x100000 10000baseR_FEC
0x40000000000 10000baseCR Full (a.k.a 10G_SFI_DA, SFF-8431 Appendix-E)
0x80000000000 10000baseSR Full
0x100000000000 10000baseLR Full
0x200000000000 10000baseLRM Full
0x400000000000 10000baseER Full
0x200000 20000baseMLD2 Full (not supported by IEEE standards)
0x400000 20000baseKR2 Full (not supported by IEEE standards)
0x80000000 25000baseCR Full
0x100000000 25000baseKR Full
0x200000000 25000baseSR Full
0x800000 40000baseKR4 Full
0x1000000 40000baseCR4 Full
0x2000000 40000baseSR4 Full
0x4000000 40000baseLR4 Full
0x400000000 50000baseCR2 Full
0x800000000 50000baseKR2 Full
0x10000000000 50000baseSR2 Full
0x10000000000000 50000baseKR Full
0x20000000000000 50000baseSR Full
0x40000000000000 50000baseCR Full
0x80000000000000 50000baseLR_ER_FR Full
0x100000000000000 50000baseDR Full
0x8000000 56000baseKR4 Full
0x10000000 56000baseCR4 Full
0x20000000 56000baseSR4 Full
0x40000000 56000baseLR4 Full
0x1000000000 100000baseKR4 Full
0x2000000000 100000baseSR4 Full
0x4000000000 100000baseCR4 Full
0x8000000000 100000baseLR4_ER4 Full
0x200000000000000 100000baseKR2 Full
0x400000000000000 100000baseSR2 Full
0x800000000000000 100000baseCR2 Full
0x1000000000000000 100000baseLR2_ER2_FR2 Full
0x2000000000000000 100000baseDR2 Full
0x8000000000000000000 100000baseKR Full
0x10000000000000000000 100000baseSR Full
0x20000000000000000000 100000baseLR_ER_FR Full
0x40000000000000000000 100000baseCR Full
0x80000000000000000000 100000baseDR Full
0x4000000000000000 200000baseKR4 Full
0x8000000000000000 200000baseSR4 Full
0x10000000000000000 200000baseLR4_ER4_FR4 Full
0x20000000000000000 200000baseDR4 Full
0x40000000000000000 200000baseCR4 Full
0x100000000000000000000 200000baseKR2 Full
0x200000000000000000000 200000baseSR2 Full
0x400000000000000000000 200000baseLR2_ER2_FR2 Full
0x800000000000000000000 200000baseDR2 Full
0x1000000000000000000000 200000baseCR2 Full
0x80000000000000000000000000 200000baseCR Full
0x100000000000000000000000000 200000baseKR Full
0x200000000000000000000000000 200000baseDR Full
0x400000000000000000000000000 200000baseDR_2 Full
0x800000000000000000000000000 200000baseSR Full
0x1000000000000000000000000000 200000baseVR Full
0x200000000000000000 400000baseKR8 Full
0x400000000000000000 400000baseSR8 Full
0x800000000000000000 400000baseLR8_ER8_FR8 Full
0x1000000000000000000 400000baseDR8 Full
0x2000000000000000000 400000baseCR8 Full
0x2000000000000000000000 400000baseKR4 Full
0x4000000000000000000000 400000baseSR4 Full
0x8000000000000000000000 400000baseLR4_ER4_FR4 Full
0x10000000000000000000000 400000baseDR4 Full
0x20000000000000000000000 400000baseCR4 Full
0x2000000000000000000000000000 400000baseCR2 Full
0x4000000000000000000000000000 400000baseKR2 Full
0x8000000000000000000000000000 400000baseDR2 Full
0x10000000000000000000000000000 400000baseDR2_2 Full
0x20000000000000000000000000000 400000baseSR2 Full
0x40000000000000000000000000000 400000baseVR2 Full
0x200000000000000000000000 800000baseCR8 Full
0x400000000000000000000000 800000baseKR8 Full
0x800000000000000000000000 800000baseDR8 Full
0x1000000000000000000000000 800000baseDR8_2 Full
0x2000000000000000000000000 800000baseSR8 Full
0x4000000000000000000000000 800000baseVR8 Full
0x80000000000000000000000000000 800000baseCR4 Full
0x100000000000000000000000000000 800000baseKR4 Full
0x200000000000000000000000000000 800000baseDR4 Full
0x400000000000000000000000000000 800000baseDR4_2 Full
0x800000000000000000000000000000 800000baseSR4 Full
0x1000000000000000000000000000000 800000baseVR4 Full
0x2000000000000000000000000000000 1600000baseCR8 Full
0x4000000000000000000000000000000 1600000baseKR8 Full
0x8000000000000000000000000000000 1600000baseDR8 Full
0x10000000000000000000000000000000 1600000baseDR8_2 Full
bestie please notice the little "(not supported by IEEE standards)" notes on a few of these โ they're still listed, they're just spicy non-standard vibes, so don't come for me ๐ธ
phyad Nโ sets the PHY address. That's it, that's the whole thing ๐xcvr internal|externalโ picks the transceiver type. Right now onlyinternalandexternalare valid; in the future further types might be added, so keep an eye out ๐wol p|u|m|b|a|g|s|f|d...โ sets Wake-on-LAN options. Not all devices support this, so vibe check your hardware first ๐ญ the argument is a string of characters saying which options to turn on:pโ Wake on PHY activityuโ Wake on unicast messagesmโ Wake on multicast messagesbโ Wake on broadcast messagesaโ Wake on ARPgโ Wake on MagicPacketโขsโ Enable SecureOnโข password for MagicPacketโขfโ Wake on filter(s)dโ Disable (wake on nothing). This option clears all previous options.
sopass xx:yy:zz:aa:bb:ccโ sets the SecureOnโข password. The argument has to be exactly 6 bytes in Ethernet MAC hex format (xx:yy:zz:aa:bb:cc) โ no improvising, she's strict ๐msglvl Nmsglvl type on|off ...โ sets the driver message type flags, either by name or by number.typenames the type of message to enable or disable;Nspecifies the new flags numerically. The defined type names and numbers are:drvโ0x0001โ General driver statusprobeโ0x0002โ Hardware probinglinkโ0x0004โ Link statetimerโ0x0008โ Periodic status checkifdownโ0x0010โ Interface being brought downifupโ0x0020โ Interface being brought uprx_errโ0x0040โ Receive errortx_errโ0x0080โ Transmit errortx_queuedโ0x0100โ Transmit queueingintrโ0x0200โ Interrupt handlingtx_doneโ0x0400โ Transmit completionrx_statusโ0x0800โ Receive completionpktdataโ0x1000โ Packet contentshwโ0x2000โ Hardware statuswolโ0x4000โ Wake-on-LAN status
The precise meanings of these type flags differ between drivers โ so like, don't assume, iykyk ๐ฆ
-n,-u,--show-nfc,--show-ntupleโ retrieves receive network flow classification options or rules. getting the receipts on your flow rules โจrx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6โ pulls the hash options for the flow type you name:tcp4โ TCP over IPv4udp4โ UDP over IPv4ah4โ IPSEC AH over IPv4esp4โ IPSEC ESP over IPv4sctp4โ SCTP over IPv4tcp6โ TCP over IPv6udp6โ UDP over IPv6ah6โ IPSEC AH over IPv6esp6โ IPSEC ESP over IPv6sctp6โ SCTP over IPv6
rule Nโ retrieves the RX classification rule with the given ID. just hand her the ID and she'll hand you the rule, no cap ๐-N,-U,--config-nfc,--config-ntupleโ sets up your receive network flow classification options or rules, bestie. This is the "tell the NIC exactly which packets go where" button ๐
the rx-flow-hash situation ๐
rx-flow-hash tcp4|udp4|ah4|esp4|sctp4|tcp6|udp6|ah6|esp6|sctp6
m|v|t|s|d|f|n|r...
Configures the hash options for whichever flow type you named. The letters mean:
mโ hash on the Layer 2 destination address of the rx packet.vโ hash on the VLAN tag of the rx packet.tโ hash on the Layer 3 protocol field of the rx packet.sโ hash on the IP source address of the rx packet.dโ hash on the IP destination address of the rx packet.fโ hash on bytes 0 and 1 of the Layer 4 header of the rx packet.nโ hash on bytes 2 and 3 of the Layer 4 header of the rx packet.lโ hash on IPv6 Flow Label of the rx packet.rโ discard all packets of this flow type. When this one's set, all the other options are ignored, periodt.
the flow-type moment ๐ฆ
ether|ip4|tcp4|udp4|sctp4|ah4|esp4|ip6|tcp6|udp6|ah6|esp6|sctp6
Inserts or updates a classification rule for the flow type you picked:
etherโ Ethernetip4โ Raw IPv4tcp4โ TCP over IPv4udp4โ UDP over IPv4sctp4โ SCTP over IPv4ah4โ IPSEC AH over IPv4esp4โ IPSEC ESP over IPv4ip6โ Raw IPv6tcp6โ TCP over IPv6udp6โ UDP over IPv6sctp6โ SCTP over IPv6ah6โ IPSEC AH over IPv6esp6โ IPSEC ESP over IPv6
Okay so here's the mask tea โ โ for all fields that let you specify both a value and a mask, you can drop the mask immediately after the value using themkeyword, or give it separately using the field name keyword with-maskappended, likesrc-mask. Two ways, same energy.
the actual fields ๐
src xx:yy:zz:aa:bb:cc [m xx:yy:zz:aa:bb:cc]โ includes the source MAC address (6 bytes, hex, colon-separated) plus an optional mask. Only valid forflow-type ether.dst xx:yy:zz:aa:bb:cc [m xx:yy:zz:aa:bb:cc]โ includes the destination MAC address (6 bytes, hex, colon-separated) plus an optional mask. Only valid forflow-type ether.proto N [m N]โ includes the Ethernet protocol number (ethertype) and an optional mask. Only valid forflow-type ether.src-ip ip-address [m ip-address]โ the source IP address of the incoming packet to match, plus an optional mask. Valid for all IP based flow-types.dst-ip ip-address [m ip-address]โ the destination IP address of the incoming packet to match, plus an optional mask. Valid for all IP based flow-types.tos N [m N]โ the value of the Type of Service field in the incoming packet to match, plus an optional mask. Applies to all IPv4 based flow-types.tclass N [m N]โ the value of the Traffic Class field in the incoming packet to match, plus an optional mask. Applies to all IPv6 based flow-types.l4proto N [m N]โ includes the layer 4 protocol number and optional mask. Valid only for flow-typesip4andip6.src-port N [m N]โ the value of the source port field (applicable to TCP/UDP packets) in the incoming packet to match, plus an optional mask. Valid for flow-typesip4,tcp4,udp4, andsctp4and their IPv6 equivalents.dst-port N [m N]โ the value of the destination port field (applicable to TCP/UDP packets) in the incoming packet to match, plus an optional mask. Valid for flow-typesip4,tcp4,udp4, andsctp4and their IPv6 equivalents.spi N [m N]โ the value of the security parameter index field (applicable to AH/ESP packets) in the incoming packet to match, plus an optional mask. Valid for flow-typesip4,ah4, andesp4and their IPv6 equivalents.l4data N [m N]โ the value of the first 4 Bytes of Layer 4 in the incoming packet to match, plus an optional mask. Valid forip4andip6flow-types.vlan-etype N [m N]โ includes the VLAN tag Ethertype and an optional mask.vlan N [m N]โ includes the VLAN tag and an optional mask.user-def N [m N]โ includes 64-bits of user-specific data and an optional mask.dst-mac xx:yy:zz:aa:bb:cc [m xx:yy:zz:aa:bb:cc]โ includes the destination MAC address (6 bytes, hex, colon-separated) plus an optional mask. Valid for all IP based flow-types.
where does it GO tho ๐
action Nโ specifies the Rx queue to send packets to, or some other action:-1โ drop the matched flow-2โ use the matched flow as a Wake-on-LAN filter0or higher โ Rx queue to route the flow
context Nโ specifies the RSS context to spread packets over multiple queues; either0for the default RSS context, or a value returned byethtool -X ... context new. If you combine it withactionorqueue, the Rx queue you specified gets added to the value read from the RSS indirection table to produce the actual Rx queue to deliver to. iykyk ๐ซvf Nโ specifies the Virtual Function the filter applies to. Not compatible withaction.queue Nโ specifies the Rx queue to send packets to. Not compatible withaction.loc Nโ specify the location/ID to insert the rule. Heads up: this will overwrite any rule present in that location and will not go through any of the rule ordering process. no cap, it just slams it in there ๐ญdelete Nโ deletes the RX classification rule with the given ID.
-w,--get-dumpโ retrieves and prints firmware dump for the specified network device. By default it prints out the dump flag, version and length of the dump data. When data is indicated, thenethtoolfetches the dump data and directs it to a file. cute little fetch quest ๐-W,--set-dumpโ sets the dump flag for the device.-T,--show-time-stampingโ shows the device's time stamping capabilities and associated PTP hardware clock. If you don't provide an index and qualifier, it shows the capabilities of the currently selected time stamping. โฐโจindex Nโ index of the ptp hardware clockqualifier precise|approxโ qualifier of the ptp hardware clock. Mainly"precise"โ the default one โ is for IEEE 1588 quality, and"approx"is for NICs DMA point.
--get-hwtimestamp-cfgโ shows the selected time stamping PTP hardware clock configuration.--set-hwtimestamp-cfgโ sets the device's time stamping PTP hardware clock configuration.index Nโ index of the ptp hardware clockqualifier precise|approxโ qualifier of the ptp hardware clock. Mainly"precise"โ the default one โ is for IEEE 1588 quality, and"approx"is for NICs DMA point.tx TX-TYPEโ type of TX time stamping to configurerx-filter RX-FILTERโ type of RX time stamping filter to configure
-x,--show-rxfh-indir,--show-rxfhโ retrieves the receive flow hash indirection table and/or RSS hash key. peek at the spread ๐-X,--set-rxfh-indir,--rxfhโ configures the receive flow hash indirection table and/or RSS hash key. now you're the one deciding the spread ๐hkeyโ sets RSS hash key of the specified network device. RSS hash key should be of device supported length. Hash key format must be inxx:yy:zz:aa:bb:ccformat, meaning both the nibbles of a byte should be mentioned even if a nibble is zero. don't skip the zeros bestie, it will not slay ๐ซถhfuncโ sets RSS hash function of the specified network device. The list of RSS hash functions which the kernel supports is shown as a part of the--show-rxfhcommand output.xfrmโ sets the RSS input transformation. Currently, only thesymmetric-xorandsymmetric-or-xortransformations are supported, where the NIC XORs/ORs the L3 and/or L4 source and destination fields (as selected by--config-nfc rx-flow-hash) before passing them to the hash algorithm. The RSS hash function will then yield the same hash for the other flow direction where the source and destination fields are swapped (i.e. Symmetric RSS).
โ ๏ธ Real talk: this operation reduces the entropy of the input set and the hash algorithm could potentially be exploited. Switch off by xfrm none. Not me warning you twice ๐
start Nโ for theequalandweightoptions, sets the starting receive queue for spreading flows to N.equal Nโ sets the receive flow hash indirection table to spread flows evenly between the first N receive queues. fairness icon โจweight W0 W1 ...โ sets the receive flow hash indirection table to spread flows between receive queues according to the given weights. The sum of the weights must be non-zero and must not exceed the size of the indirection table.defaultโ sets the receive flow hash indirection table to its default value. reset era ๐ธcontext CTX | newโ specifies an RSS context to act on; eithernewto allocate a new RSS context, orCTX, a value returned by a previous... context new.deleteโ delete the specified RSS context. May only be used in conjunction withcontextand a non-zeroCTXvalue.
-f,--flashโ write a firmware image to flash or other non-volatile memory on the device. glow-up time for your NIC ๐ฅfileโ specifies the filename of the firmware image. The firmware must first be installed in one of the directories where the kernel firmware loader or firmware agent will look, such as/lib/firmware. so like, put it where it can be found first, okay? ๐Nโ if the device stores multiple firmware images in separate regions of non-volatile memory, this parameter may be used to specify which region is to be written. The default is0, requesting that all regions are written. All other values are driver-dependent.
-l,--show-channelsโ asks the NIC bestie "so how many channels u got?" and reports back. A channel is literally an IRQ plus the whole little squad of queues that can trigger it. ๐-L,--set-channelsโ actually changes the channel counts on the device. main character energy, we're rearranging things now:rx Nโ changes the number of channels that have only receive queues.tx Nโ changes the number of channels that have only transmit queues.other Nโ changes the number of channels used for other purposes only, like link interrupts or SR-IOV co-ordination. iykyk.combined Nโ changes the number of multi-purpose channels. the versatile ones. ๐ฆ
-m,--dump-module-eeprom,--module-infoโ grabs the EEPROM out of plugin modules (e.g. SFP+, QSFP) and decodes it if it can. If the driver and the module both support it, the optical diagnostic info gets read and decoded too โจ. A few things to know, bestie, bc this one's got lore:- When either one of
page,bankori2cparameters is specified, only dumps of a single page โ or its portion โ are allowed. In that case,offsetandlengthare treated relatively to EEPROM page boundaries. - When
hex onpages onis specified, it dumps all relevant EEPROM pages in hex, organized by page. Each page is preceded by a header identifying the page number. For banked pages the bank number is also shown, and for SFP modules the I2C address is also shown too, since different parts of the EEPROM memory map are accessible via different I2C addresses. - The set of pages dumped matches what the pretty-printer reads for each module type.
- This option cannot be combined with the
offset,length,page,bankori2cparameters. sorry bestie, pick a lane ๐ซถ - When combined with
--json, the output is a JSON object with a"pages"array. Each element is an object with the fields"bank","page","offset","i2c_address"and"data", emitted unconditionally regardless of module type."data"is an array of lowercase hex strings, one per byte; its length is the length of the memory block. iconic structured output ngl.
- When either one of
--show-priv-flagsโ asks the specified network device for its private flags. The names and meanings of these (if there are any) are defined by each network device driver, so it's giving "every driver has its own personality" ๐--set-priv-flagsโ sets the device's private flags exactly how u specified them.flag on|offโ sets the state of the named private flag. simple as. ๐
--show-eeeโ queries the specified network device for its support of Energy-Efficient Ethernet, according to the IEEE 802.3az specifications. sleepy girl networking ๐ธ--set-eeeโ sets the device's EEE behaviour:eee on|offโ enables/disables the device's support of EEE.tx-lpi on|offโ determines whether the device should assert its Tx LPI.advertise Nโ sets the speeds for which the device should advertise EEE capabilities. Values are as for--change advertise.tx-timer Nโ sets how long (in microseconds) the device should stay in idle mode before asserting its Tx LPI. This one only has meaning when Tx LPI is enabled. lowkey conditional.
--set-phy-tunableโ sets the PHY tunable parameters. this is the fiddly little knobs section, stay with me ๐downshift on|offโ specifies whether downshift should be enabled.count Nโ sets the PHY downshift re-tries count.
fast-link-down on|offโ specifies whether Fast Link Down should be enabled, and the time until link down (if supported).msecs Nโ sets the period after which the link is reported as down. Note that the PHY may choose the closest supported value โ only on reading back the tunable do you get the actual value. so don't come for us if it's not exact ๐ญ
energy-detect-power-down on|offโ specifies whether Energy Detect Power Down (EDPD) should be enabled (if supported). This puts the RX and TX circuit blocks into a low power mode, and the PHY wakes up periodically to send link pulses so it avoids any lock-up situation with a peer PHY that might also have EDPD enabled. By default, this setting will also enable the periodic transmission of TX pulses.msecs Nโ some PHYs support configuring the wake-up interval for sending TX pulses. This setting controls that interval, and0disables TX pulses if the PHY supports it. > Heads up bestie: disabling TX pulses can create a lock-up situation where neither of the PHYs wakes the other one. If unspecified, the default value (in milliseconds) will be used by the PHY.
short-cable-preset on|offโ specifies whether a PHY short-cable preset should be enabled (if supported). On KSZ87xx this is a global switch-wide preset and not a per-port setting.lpf-bandwidth valueโ sets the PHY LPF bandwidth register value (if supported). On KSZ87xx this is a global switch-wide setting and not a per-port setting.dsp-eq-init-value valueโ sets the PHY DSP EQ initial value register value (if supported). On KSZ87xx this is a global switch-wide setting and not a per-port setting.
--get-phy-tunableโ gets the PHY tunable parameters. the read-only vibe check โจdownshiftโ for operation in cabling environments that are incompatible with 1000BASE-T, the PHY device provides an automatic link speed downshift operation. Link speed downshift happens after N failed 1000BASE-T auto-negotiation attempts. Downshift is useful where the cable doesn't have the 4 pairs instance. Gets the PHY downshift count/status.fast-link-downโ depending on the mode, it may take 0.5s - 1s until a broken link is reported as down. In certain use cases a link-down event needs to be reported as soon as possible. Some PHYs support a Fast Link Down Feature and may allow configuration of the delay before a broken link is reported as being down. Gets the PHY Fast Link Down status / period.energy-detect-power-downโ gets the current configured setting for Energy Detect Power Down (if supported).short-cable-presetโ gets PHY short-cable preset status (if supported).lpf-bandwidthโ gets PHY LPF bandwidth register value (if supported).dsp-eq-init-valueโ gets PHY DSP EQ initial value register value (if supported).
--get-tunableโ get the tunable parameters. more knobs, but we're reading them this time ๐rx-copybreakโ get the current rx copybreak value in bytes.tx-copybreakโ get the current tx copybreak value in bytes.tx-buf-sizeโ get the current tx copybreak buffer size in bytes.pfc-prevention-toutโ get the PFC storm prevention timeout value in milliseconds. This timeout value applies to both PFC (Priority Flow Control) and standard link-level pause storms (IEEE 802.3x). A pause storm happens when a device continuously sends TX pause frames to the switch, resulting in persistent backpressure. When enabled, if the NIC detects that pause assertion has exceeded the configured timeout, the device takes protective action (stops sending pause frames) to prevent a complete traffic stall. we love a self-defence mechanism fr fr ๐
--set-tunableโ set the driver's tunable parameters.rx-copybreak Nโ set the rx copybreak value in bytes.tx-copybreak Nโ set the tx copybreak value in bytes.tx-buf-size Nโ set the tx copybreak buffer size in bytes.pfc-prevention-tout Nโ set the PFC storm prevention timeout in milliseconds. The range of valid values is device specific. Special values:0โ disable storm prevention.65535โ use the device-local default timeout (auto).
--resetโ reset hardware components specified by flags and components listed below. the "have u tried turning it off and on again" of ethtool ๐ญflags Nโ resets the components based on the direct flags mask.mgmtโ Management processor.irqโ Interrupt requester.dmaโ DMA engine.filterโ Filtering/flow direction.offloadโ Protocol offload.macโ Media access controller.phyโ Transceiver/PHY.ramโ RAM shared between multiple components.apโ Application Processor.dedicatedโ All components dedicated to this interface.allโ All components used by this interface, even if shared.
--show-fecโ queries the specified network device for its support of Forward Error Correction.--set-fecโ configures Forward Error Correction for the specified network device.
Forward Error Correction modes selected by a user are expected to be persisted after any hotplug events. If a module is swapped that does not support the current FEC mode, the driver or firmware must take the link down administratively and report the problem in the system logs for users to correct. so like, check ur logs bestie ๐ซถ
encoding auto|off|rs|baser|llrs [...]โ sets the FEC encoding for the device. Combinations of options are specified as e.g.encoding auto rs; the semantics of such combinations vary between drivers. literally depends on the driver's mood.autoโ Use the driver's default encoding.offโ Turn off FEC.RSโ Force RS-FEC encoding.BaseRโ Force BaseR encoding.LLRSโ Force LLRS-FEC encoding.
-Q,--per-queueโ applies the provided sub command to specific queues. targeted, not spray-and-pray ๐queue_mask %xโ sets the specific queues which the sub command is applied to. Ifqueue_maskis not set, the sub command will be applied to all queues.sub_commandโ the sub command to apply. The supported sub commands include--show-coalesceand--coalesce.
--cable-testโ performs a cable test and reports the results. What results come back depends on the capabilities of the network interface. Typically open pairs and shorted pairs can be reported, along with pairs being O.K. When a fault is detected, the approximate distance to the fault may be reported. diagnostic queen behaviour ๐--cable-test-tdrโ runs a cable test and hands you back the raw Time Domain Reflectometer data ๐ okay so what happens is: a pulse gets yeeted down a cable pair, and the amplitude of the reflection at a given distance gets reported. Cable break? Big reflection, huge, you'll see it. Minor damage? Small reflection, lowkey subtle. Cable shorted? Then the amplitude of the reflection can be negative, which is its own little plot twist ๐ญ. By default you get data for lengths between 0 and 150m at 1m steps, for all pairs โ but you can pass parameters to restrict what gets collected. Ngl, one thing to know: the interface will round the distances to whatever granularity is actually implemented, and that's often 0.8 of a meter. The results should include the actual rounded first and last distance and step size, so you're not out here guessing ๐ซถfirst Nโ distance along the cable, in meters, where the first measurement should be made.last Nโ distance along the cable, in meters, where the last measurement should be made.step Nโ distance, in meters, between each measurement. โจpair Nโ which pair should be measured. Typically a cable has 4 pairs, so: 0 = Pair A, 1 = Pair B, ... and so on.
--monitorโ sits there and listens to netlink notifications, then displays them. It's giving "always on read receipts" energy ๐commandโ if an argument matching a command is used,ethtoolonly shows notifications of this type. Without such an argument, or with--all, all notification types are shown.devnameโ if a device name is used as argument, only notifications for this device are shown. Default is to show notifications for all devices.
--show-tunnelsโ shows tunnel-related device capabilities and state ๐ it lists the UDP ports the kernel has programmed the device to parse as VxLAN, or GENEVE tunnels.--show-moduleโ shows the transceiver module's parameters. Sneak peek of the module's whole vibe ๐--set-moduleโ sets the transceiver module's parameters. Now you're the one making the rules โจpower-mode-policy high|autoโ sets the power mode policy for the module. When it's set tohigh, the module always operates at high power mode. When it's set toauto, the module is transitioned by the host to high power mode when the first port using it is put administratively up, and to low power mode when the last port using it is put administratively down. And yes bestie, the power mode policy can be set before a module is plugged-in. Iconic behavior honestly ๐
--get-plca-cfgโ shows the current PLCA parameters for the given interface.--set-plca-cfgโ changes the PLCA settings for the given interface. Let's tweak the whole PLCA situation ๐งenable on|offโ enables or disables the PLCA function. When the PLCA RS is disabled (that's the default), the PHY operates in plain CSMA/CD mode. To enable PLCA, the PHY must be assigned a uniqueplca-idother than 255. This one can be configured concurrently with theenableparameter. Theenableparameter maps to IEEE 802.3cg-2019 clause 30.16.1.1.1 (aPLCAAdminState) and clause 30.16.1.2.1 (acPLCAAdminControl).node-id Nโ the unique node identifier in the range [0 .. 255]. Node ID 0 is reserved for the coordinator node, aka the one generating the BEACON signal ๐จ there must be exactly one coordinator on a PLCA network, no cap. Setting the node ID to 255 (the default) disables the node. This parameter maps to IEEE 802.3cg-2019 clause 30.16.1.1.4 (aPLCALocalNodeID).node-cnt Nโ thenode-cnt[1 .. 255] should be set to the maximum number of nodes that can be plugged to the multi-drop network. This parameter regulates the minimum length of the PLCA cycle. Therefore, it is only meaningful for the coordinator node (node-id= 0). Setting this parameter on a follower node has no effect โ zero, nada, nothing ๐. Thenode-cntparameter maps to IEEE 802.3cg-2019 clause 30.16.1.1.3 (aPLCANodeCount).to-tmr Nโ the TO timer parameter sets the value of the transmit opportunity timer in bit-times, and shall be set equal across all the nodes sharing the same medium for PLCA to work. The default value of 32 is enough to cover a link of roughly 50 mt. This parameter maps to IEEE 802.3cg-2019 clause 30.16.1.1.5 (aPLCATransmitOpportunityTimer).burst-cnt Nโ theburst-cntparameter [0 .. 255] indicates the extra number of packets that the node is allowed to send during a single transmit opportunity. By default, this attribute is 0, meaning that the node can send a single frame per TO. When greater than 0, the PLCA RS keeps the TO after any transmission, waiting for the MAC to send a new frame for up toburst-tmrBTs. This can only happen a number of times per PLCA cycle up to the value of this parameter. After that, the burst is over and the normal counting of TOs resumes. This parameter maps to IEEE 802.3cg-2019 clause 30.16.1.1.6 (aPLCAMaxBurstCount).burst-tmr Nโ theburst-tmrparameter [0 .. 255] sets how many bit-times the PLCA RS waits for the MAC to initiate a new transmission whenburst-cntis greater than 0. If the MAC fails to send a new frame within this time, the burst ends and the counting of TOs resumes. Otherwise, the new frame is sent as part of the current burst. This parameter maps to IEEE 802.3cg-2019 clause 30.16.1.1.7 (aPLCABurstTimer). The value ofburst-tmrshould be set greater than the Inter-Frame-Gap (IFG) time of the MAC (plus some margin) for PLCA burst mode to work as intended โ so don't skimp on it ๐ซถ
--get-plca-statusโ shows the current PLCA status for the given interface. If it's on, the PHY is successfully receiving or generating the BEACON signal โจ if it's off, the PLCA function is temporarily disabled and the PHY is operating in plain CSMA/CD mode.--show-mmโ shows the MAC Merge layer state. Theethtoolargument-I --include-statisticscan be used with this command, and MAC Merge layer statistics counters will also be retrieved ๐pmac-enabledโ shows whether the pMAC is enabled and capable of receiving traffic and SMD-V frames (and responding to them with SMD-R replies).tx-enabledโ shows whether transmission on the pMAC is administratively enabled.tx-activeโ shows whether transmission on the pMAC is active (verification is either successful, or was disabled).tx-min-frag-sizeโ shows the minimum size (in octets) of transmitted non-final fragments which can be received by the link partner. Corresponds to the standardaddFragSizevariable using the formula:
tx-min-frag-size = 64 * (1 + addFragSize) - 4
rx-min-frag-sizeโ shows the minimum size (in octets) of non-final fragments which the local device supports receiving.verify-enabledโ shows whether the verification state machine is enabled. This process, if successful, ensures that preemptible frames transmitted by the local device will not be dropped as error frames by the link partner. Very much a "trust but verify" moment ๐verify-timeโ shows the interval in ms between verification attempts, represented as an integer between 1 and 128 ms. The standard defines a fixed number of verification attempts (verifyLimit) before failing the verification process.max-verify-timeโ shows the maximum value forverify-timeaccepted by the local device, which may be less than 128 ms.verify-statusโ shows the current state of the verification state machine of the local device. Values can beINITIAL,VERIFYING,SUCCEEDED,FAILEDorDISABLED.
--set-mmโ sets the MAC Merge layer parameters. Time to actually configure the thing ๐ฅpmac-enabled on|offโ enable reception for the pMAC.tx-enabled on|offโ administratively enable transmission for the pMAC.tx-min-frag-size Nโ set the minimum size (in octets) of transmitted non-final fragments which can be received by the link partner.verify-enabled on|offโ enable or disable the verification state machine.verify-time Nโ set the interval in ms between verification attempts.
--show-pseโ shows the current Power Sourcing Equipment (PSE) status for the given interface โก๏ธpodl-pse-admin-stateโ this attribute indicates the operational status of PoDL PSE functions, which can be modified using thepodl-pse-admin-controlparameter. It corresponds to IEEE 802.3-2018 30.15.1.1.2 (aPoDLPSEAdminState), with potential values beingenabled,disabled.podl-pse-power-detection-statusโ this attribute indicates the power detection status of the PoDL PSE. The status depends on the internal PSE state machine and automatic PD classification support. It corresponds to IEEE 802.3-2018 30.15.1.1.3 (aPoDLPSEPowerDetectionStatus) with potential values beingdisabled,searching,delivering power,sleep,idle,error. A whole little mood ring of states ๐ญc33-pse-admin-stateโ this attribute indicates the operational status of c33 PSE functions, which can be modified using thec33-pse-admin-controlparameter. It corresponds to IEEE 802.3-2022 30.9.1.1.2 (aPSEAdminState), with potential values beingenabled,disabled.c33-pse-power-detection-statusโ this attribute indicates the power detection status of the c33 PSE. The status depends on the internal PSE state machine and automatic PD classification support. It corresponds to IEEE 802.3-2022 30.9.1.1.5 (aPSEPowerDetectionStatus) with potential values beingdisabled,searching,delivering power,test,fault,other fault.
c33-pse-extended-stateโ the Extended state of the c33 PSE. Correlated with the c33 PSE Extended Substate, it lets you get way more detail on the c33 PSE's current error state. Corresponds to IEEE 802.3-2022 33.2.4.4 Variables. ๐c33-pse-extended-substateโ the Extended substate of the c33 PSE. Correlated with the c33 PSE Extended state value, it lets you get more detail on the c33 PSE's current error state. No cap, it's just the substate bestie.c33-pse-power-classโ identifies the power class of the c33 PSE. It depends on the class negotiated between the PSE and the PD. Corresponds to IEEE 802.3-2022 30.9.1.1.8 (aPSEPowerClassification). negotiated, periodt.c33-pse-actual-powerโ identifies the actual power drawn by the c33 PSE. Corresponds toIEEE 802.3-202230.9.1.1.23 (aPSEActualPower). Actual power is reported inmW. ๐c33-pse-available-power-limitโ identifies the configured c33 PSE power limit, inmW.c33-pse-power-limit-rangesโ specifies the allowed power limit ranges inmWfor configuring thec33-pse-avail-pw-limitparameter. Basically it defines the valid power levels that can be assigned to the c33 PSE in compliance with the c33 standard โ the vibe check for your power limits โจ.power-domain-indexโ reports the index of the PSE power domain the port belongs to. Every port belongs to exactly one power domain, and port priorities are defined within that power domain. Each power domain may have its own maximum budget (e.g.,100 Wper domain) in addition to a system-wide budget (e.g.,200 Woverall). Domain limits are enforced first: if a single domain reaches its budget, only ports in that domain are affected. The system-wide budget is enforced across all domains. iykyk ๐ฅpriority-maxโ reports the maximum configurable port priority value within the reported power domain. The valid range forpriois0topriority-max(inclusive).priorityโ reports the currently configured port priority within the reported power domain. Lower numeric values indicate higher priority:0is the highest priority. main character energy at index 0 ๐
--set-pseโ Set Power Sourcing Equipment (PSE) parameters. This is the write side bestie, the show side is--show-pse.podl-pse-admin-controlenable|disable โ this parameter manages PoDL PSE Admin operations in accordance with the IEEE 802.3-2018 30.15.1.2.1 (acPoDLPSEAdminControl) specification.c33-pse-admin-controlenable|disable โ this parameter manages c33 PSE Admin operations in accordance with the IEEE 802.3-2022 30.9.1.2.1 (acPSEAdminControl) specification.c33-pse-avail-pw-limitN โ this parameter manages the c33 PSE Available Power Limit inmW, in accordance with the IEEE 802.3-2022 33.2.4.4 Variables (pse_available_power) specification.prioN โ set the port priority, scoped to the port's power domain as reported bypower-domain-index. Lower values indicate higher priority;0is the highest. The valid range is0to thepriority-maxreported by--show-pse. When a single domain exceeds its budget, ports in that domain are powered up/down by priority (highest first for power-up; lowest shed first). literally survival of the highest-priority ๐
--show-mseโ Show PHY Mean Square Error (MSE) diagnostics.
Metrics follow the OPEN Alliance PHY diagnostics model (used by automotive and industrial PHYs). Numeric scaling, sampling windows, and update intervals are vendor specific and reported by the capability block. So don't come for me about the numbers, your PHY set those ๐ซถ
Values are raw snapshots from the PHY DSP. Lower values generally indicate better signal quality; 0 is ideal. Interpret values relative to the reported max-* scales for this PHY and link mode.
The set of returned channels depends on PHY support. When per-channel data is available, Channel A/B/C/D nests are returned. Otherwise, the kernel may return a single WORST or LINK aggregate snapshot.
๐ Capabilities
Driver-provided scale and timing, aka the receipts:
max-average-mseโ scale for average MSE values.max-peak-mseโ scale for peak MSE values. Present only if the PHY reportspeak-mseand/orworst-peak-mse.refresh-rate-psโ typical hardware update interval in picoseconds.symbols-per-sampleโ number of symbols collected per hardware sample.
๐ฆ Snapshots
One nest per selector (Channel A/B/C/D, WORST, or LINK). Each contains the metrics supported by the PHY: average-mse and optionally peak-mse and/or worst-peak-mse. Values are raw and must be interpreted using the capability scales above. no guessing, use the scales ngl.
Short windows (lowrefresh-rate-psor fewsymbols-per-sample) can yield high variance; userspace can improve stability by polling and averaging over time. so like, average it out bestie, the vibes will stabilize โจ
--flash-module-firmwareโ Flash the transceiver module's firmware. The firmware update process is composed from three logical steps: downloading a firmware image to the transceiver module, running the image, and committing the image so that it is run upon reset. When the flash command is given, the firmware update process is performed in its entirety in that order. all three, in order, no skipping ๐fileFILE โ specifies the filename of the transceiver module firmware image. The firmware must first be installed in one of the directories where the kernel firmware loader or firmware agent will look, such as/lib/firmware. The firmware image is downloaded to the transceiver module, validated, run and committed. validated and run, it's giving thorough ๐passPASS โ optional transceiver module password that might be required as part of the transceiver module firmware update process.
--show-physโ Show the PHY devices attached to an interface, and the way they link together. the whole little family tree ngl ๐ธphy_indexโ the PHY's index, that identifies it within the network interface. If the interface has multiple PHYs, they will each have a unique index on that interface. This index can then be used for commands that target PHYs.drvnameโ the name of the driver bound to this PHY device.nameโ the PHY's device name, matching the name found in sysfs.downstream_sfp_nameโ if the PHY drives an SFP cage, this field contains the name of the associated SFP bus.upstream_typemac | phy โ indicates the nature of the device the PHY is attached to.upstream_indexโ if the PHY'supstream_typeisphy, this field indicates thephy_indexof the upstream phy.upstream_sfp_nameโ if the PHY is within an SFP/SFF module, this field contains the name of the upstream SFP bus.
๐ BUGS
Not supported (in part or whole) on all network drivers. that's the whole bugs section bestie, she's short and honest ๐ญ
๐ AUTHOR
ethtool was written by David Miller.
Modifications by Jeff Garzik, Tim Hockin, Jakub Jelinek, Andre Majorel, Eli Kupermann, Scott Feldman, Andi Kleen, Alexander Duyck, Sucheta Chakraborty, Jesse Brandeburg, Ben Hutchings, Scott Branden. absolute legends, every single one, we stan ๐ซถ
๐ AVAILABILITY
ethtool is available from http://www.kernel.org/pub/software/network/ethtool/
and that's the whole page bestie, you ate that ๐ this was Ethtool version 7.2, dated Oct 2026, and it's the ETHTOOL(8) page โ go forth and configure, you icon โจ๐๐
๐ฆ where this page comes from
- centos-stream 10: ethtool 2:7.2-1.el10 ยท GPL-2.0-only AND GPL-2.0-or-later
- fedora 44: ethtool 2:7.2-1.fc44 ยท GPL-2.0-only AND GPL-2.0-or-later
- Copyright 1999 by David S. Miller. All Rights Reserved
- Copyright 2001 Sun Microsystems
- Copyright 2007, 2009 Free Software Foundation, Inc
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms