igbvf: add tx_timeout_count to ethtool statistics
authorKohei Enju <enjuk@amazon.com>
Thu, 12 Jun 2025 16:16:26 +0000 (01:16 +0900)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Thu, 3 Jul 2025 16:39:04 +0000 (09:39 -0700)
commita31cb447b5473cdc08732ec6362202a1ba8e2fe1
tree3a27cd60b673a5593c93c77501d279ebf39b56a8
parent9ebca2374dbb194a358bdd8a32c1cf9227a7a490
igbvf: add tx_timeout_count to ethtool statistics

Add `tx_timeout_count` to ethtool statistics to provide visibility into
transmit timeout events, bringing igbvf in line with other Intel
ethernet drivers.

Currently `tx_timeout_count` is incremented in igbvf_watchdog_task() and
igbvf_tx_timeout() but is not exposed to userspace nor used elsewhere in
the driver.

Before:
  # ethtool -S ens5 | grep tx
       tx_packets: 43
       tx_bytes: 4408
       tx_restart_queue: 0

After:
  # ethtool -S ens5 | grep tx
       tx_packets: 41
       tx_bytes: 4241
       tx_restart_queue: 0
       tx_timeout_count: 0

Tested-by: Kohei Enju <enjuk@amazon.com>
Signed-off-by: Kohei Enju <enjuk@amazon.com>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: Rafal Romanowski <rafal.romanowski@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/igbvf/ethtool.c