]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-pf: Don't mask out supported link modes
authorHariprasad Kelam <hkelam@marvell.com>
Sun, 22 Aug 2021 12:02:21 +0000 (17:32 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Aug 2021 20:38:15 +0000 (21:38 +0100)
commitcabe3053753d1a6ecfcff43bd0bf9c4656f08e8e
tree39aaa8c7d4c33a31a4e778f1d3999020f0352cce
parent5e5b47add3c67ae4c18f9c88e430540e20c00a16
octeontx2-pf: Don't mask out supported link modes

Supported link modes are updated by firmware in shared
structure per interface. Kernel uses this value to display
supported link modes via ethtool.

Currently there is extra validation that firmware updated
modes are validated against internal list of supported modes.
As intenal list of supported modes are not updated frequently
new modes supported by firmware are not updated to ethtool.

Hence remove extra validation and report all firmware updated
modes.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c