From e6bb8c97b6de62a55ed53a9f3183076116e0a72d Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Sat, 20 Nov 2021 20:32:12 +0100 Subject: [PATCH] Add handling for DA port type Is direct attach (copper or active optical) --- src/core/network.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/network.cc b/src/core/network.cc index 746ac1b8..571f0c11 100644 --- a/src/core/network.cc +++ b/src/core/network.cc @@ -227,6 +227,7 @@ struct ethtool_value #define PORT_MII 0x02 #define PORT_FIBRE 0x03 #define PORT_BNC 0x04 +#define PORT_DA 0x05 /* Which tranceiver to use. */ #define XCVR_INTERNAL 0x00 @@ -635,6 +636,9 @@ static void updateCapabilities(hwNode & interface, u32 supported, u32 supported2 case PORT_FIBRE: interface.setConfig("port", "fibre"); break; + case PORT_DA: + interface.setConfig("port", "direct attach"); + break; } interface.setConfig("autonegotiation", (autoneg == AUTONEG_DISABLE) ? "off" : "on"); }