]> git.ipfire.org Git - thirdparty/linux.git/commit
ethtool: add FEC bins histogram report
authorVadim Fedorenko <vadim.fedorenko@linux.dev>
Wed, 24 Sep 2025 12:40:33 +0000 (12:40 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Sep 2025 23:49:18 +0000 (16:49 -0700)
commitcc2f08129925b437bf28f7f7822f20dac083a87c
treedfcf1f26847c4a67e4b1fde8a8a2ad8bb834abe8
parentfbb8bc408027a94b0b513410df15003e6ba6a77c
ethtool: add FEC bins histogram report

IEEE 802.3ck-2022 defines counters for FEC bins and 802.3df-2024
clarifies it a bit further. Implement reporting interface through as
addition to FEC stats available in ethtool. Drivers can leave bin
counter uninitialized if per-lane values are provided. In this case the
core will recalculate summ for the bin.

Signed-off-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Reviewed-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Link: https://patch.msgid.link/20250924124037.1508846-2-vadim.fedorenko@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
15 files changed:
Documentation/netlink/specs/ethtool.yaml
Documentation/networking/ethtool-netlink.rst
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c
drivers/net/ethernet/fungible/funeth/funeth_ethtool.c
drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c
drivers/net/ethernet/intel/ice/ice_ethtool.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sfc/siena/ethtool.c
drivers/net/netdevsim/ethtool.c
include/linux/ethtool.h
include/uapi/linux/ethtool_netlink_generated.h
net/ethtool/fec.c