From c13bab00a79a7c4cd2a1bb72120f26e1003f7b58 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Thu, 4 Nov 2021 10:37:49 +0100 Subject: [PATCH] Add network backplane capability Used in pcb connections in blade servers/switches etc, and uses nnnbaseK* modes like 1000baseKX, 10000baseKX4, 10000baseKR and so on. --- src/core/network.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/network.cc b/src/core/network.cc index 746ac1b8..3ea7e0b3 100644 --- a/src/core/network.cc +++ b/src/core/network.cc @@ -185,6 +185,7 @@ struct ethtool_value #define SUPPORTED_BNC (1 << 11) #define SUPPORTED_10000baseT_Full (1 << 12) #define SUPPORTED_2500baseX_Full (1 << 15) +#define SUPPORTED_BACKPLANE (1 << 16) #define SUPPORTED_1000baseKX_Full (1 << 17) #define SUPPORTED_10000baseKX4_Full (1 << 18) #define SUPPORTED_10000baseKR_Full (1 << 19) @@ -496,7 +497,9 @@ static void updateCapabilities(hwNode & interface, u32 supported, u32 supported2 if(supported & SUPPORTED_MII) interface.addCapability("mii", _("Media Independent Interface")); if(supported & SUPPORTED_FIBRE) - interface.addCapability("fibre",_( "optical fibre")); + interface.addCapability("fibre", _("optical fibre")); + if(supported & SUPPORTED_BACKPLANE) + interface.addCapability("backplane", _("backplane")); if(supported & SUPPORTED_10baseT_Half) { interface.addCapability("10bt", _("10Mbit/s"));