]> git.ipfire.org Git - thirdparty/linux.git/commit
Octeontx-pf: Update SGMII mode mapping
authorHariprasad Kelam <hkelam@marvell.com>
Wed, 25 Jun 2025 09:21:05 +0000 (14:51 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 27 Jun 2025 23:55:59 +0000 (16:55 -0700)
commit1df77da01b63a2f9a9c74630581448007a73f3c1
treede88eed4909610960312f598237abc3b4ab55cc4
parent4f5710edf17ad5472a0a110b0cf0960e64dc706a
Octeontx-pf: Update SGMII mode mapping

Current implementation maps ethtool link modes 10baseT/100baseT/1000baseT
to single firmware mode SGMII. This create a problem for end users who want
to advertise only one speed among them.

This patch addresses the issue by mapping each ethtool link mode
to a corresponding firmware mode also updates new modes supported
by firmware.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Link: https://patch.msgid.link/20250625092107.9746-2-hkelam@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
drivers/net/ethernet/marvell/octeontx2/af/cgx_fw_if.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c