summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYu Xiao <yu.xiao@corigine.com>2022-11-25 14:30:30 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-25 13:25:41 +0300
commit05c91c03913902dfed96669160b385beaae69232 (patch)
treee61532dfba73a838a827da3238bf1a7dad371e6a /include
parentfd2dba8b4a35c296fba0f601fed1f2190f57f87b (diff)
downloadlinux-05c91c03913902dfed96669160b385beaae69232.tar.xz
nfp: ethtool: support reporting link modes
[ Upstream commit a61474c41e8c530c54a26db4f5434f050ef7718d ] Add support for reporting link modes, including `Supported link modes` and `Advertised link modes`, via ethtool $DEV. A new command `SPCODE_READ_MEDIA` is added to read info from management firmware. Also, the mapping table `nfp_eth_media_table` associates the link modes between NFP and kernel. Both of them help to support this ability. Signed-off-by: Yu Xiao <yu.xiao@corigine.com> Reviewed-by: Louis Peens <louis.peens@corigine.com> Signed-off-by: Simon Horman <simon.horman@corigine.com> Reviewed-by: Alexander Lobakin <alexandr.lobakin@intel.com> Link: https://lore.kernel.org/r/20221125113030.141642-1-simon.horman@corigine.com Signed-off-by: Paolo Abeni <pabeni@redhat.com> Stable-dep-of: 821de68c1f9c ("nfp: ethtool: fix the bug of setting unsupported port speed") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions