From: Francesco Dolcini <redacted>
An SFP+ direct attach cable is reported by the SFP layer as
10000baseCR_Full, and this link mode is missing from the 10GBASE-R
supported list, therefore xpcs_validate() masks it away and the
10GBASE-R interface cannot be used with such a cable.
Signed-off-by: Francesco Dolcini <redacted>
---
drivers/net/pcs/pcs-xpcs.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/pcs/pcs-xpcs.c b/drivers/net/pcs/pcs-xpcs.c
index 6466e0ff2a98..3378528e57f0 100644
--- a/drivers/net/pcs/pcs-xpcs.c
+++ b/drivers/net/pcs/pcs-xpcs.c
@@ -114,6 +114,7 @@ static const int xpcs_100gbasep_features[] = {
static const int xpcs_10gbaser_features[] = {
ETHTOOL_LINK_MODE_Pause_BIT,
ETHTOOL_LINK_MODE_Asym_Pause_BIT,
+ ETHTOOL_LINK_MODE_10000baseCR_Full_BIT,
ETHTOOL_LINK_MODE_10000baseSR_Full_BIT,
ETHTOOL_LINK_MODE_10000baseLR_Full_BIT,
ETHTOOL_LINK_MODE_10000baseLRM_Full_BIT,--
2.47.3