]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fbnic: Add support for reporting link config
authorAlexander Duyck <alexanderduyck@fb.com>
Wed, 18 Jun 2025 22:08:02 +0000 (15:08 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Jun 2025 07:31:46 +0000 (09:31 +0200)
commitfb9a3bb7f7f23b86d05e94f85e523d7d3f5fa57d
tree1deba6e6c6d8a15b0531b34d613d3d4fe074001f
parent22780f69fb45d546d2ae32479317049de3621729
fbnic: Add support for reporting link config

This change adds some basic support for reporting the current link config
to the user via ethtool. Currently the main components reported are the
carrier status, link speed, and FEC.

For now we are handling the FEC directly as phylink doesn't have support
for it. The plan is to work on incorporating FEC support into phylink and
eventually adding the ability for us to set the FEC configuration through
phylink itself.

In addition as we don't yet have SFP or PHY support the listed modes
supported are including ones not supported by the media we are attached to.
That will hopefully be addressed once we can get the QSFP modules
supported.

Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
Link: https://patch.msgid.link/175028448275.625704.60592644122010798.stgit@ahduyck-xeon-server.home.arpa
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/meta/fbnic/fbnic_ethtool.c
drivers/net/ethernet/meta/fbnic/fbnic_netdev.h
drivers/net/ethernet/meta/fbnic/fbnic_phylink.c