From 14e3f63794131e0eb6bfac8377781c37269b6d9d Mon Sep 17 00:00:00 2001 From: jmatthew Date: Mon, 18 Sep 2023 06:47:21 +0000 Subject: [PATCH] Add 100GB LR4 Ethernet capability and map it to IFM_100G_LR4. This isn't listed in the public PRM but it can be found in the Linux driver. from Olivier Croquin --- sys/dev/pci/if_mcx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/if_mcx.c b/sys/dev/pci/if_mcx.c index dcea0c0118f..1f07679285c 100644 --- a/sys/dev/pci/if_mcx.c +++ b/sys/dev/pci/if_mcx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_mcx.c,v 1.109 2023/09/07 01:43:46 jsg Exp $ */ +/* $OpenBSD: if_mcx.c,v 1.110 2023/09/18 06:47:21 jmatthew Exp $ */ /* * Copyright (c) 2017 David Gwynne @@ -192,6 +192,7 @@ CTASSERT(MCX_MAX_QUEUES * MCX_WQ_DOORBELL_STRIDE < #define MCX_ETHER_CAP_100G_CR4 20 #define MCX_ETHER_CAP_100G_SR4 21 #define MCX_ETHER_CAP_100G_KR4 22 +#define MCX_ETHER_CAP_100G_LR4 23 #define MCX_ETHER_CAP_25G_CR 27 #define MCX_ETHER_CAP_25G_KR 28 #define MCX_ETHER_CAP_25G_SR 29 @@ -2682,6 +2683,7 @@ static const struct mcx_eth_proto_capability mcx_eth_cap_map[] = { [MCX_ETHER_CAP_100G_CR4] = { IFM_100G_CR4, IF_Gbps(100) }, [MCX_ETHER_CAP_100G_SR4] = { IFM_100G_SR4, IF_Gbps(100) }, [MCX_ETHER_CAP_100G_KR4] = { IFM_100G_KR4, IF_Gbps(100) }, + [MCX_ETHER_CAP_100G_LR4] = { IFM_100G_LR4, IF_Gbps(100) }, [MCX_ETHER_CAP_25G_CR] = { IFM_25G_CR, IF_Gbps(25) }, [MCX_ETHER_CAP_25G_KR] = { IFM_25G_KR, IF_Gbps(25) }, [MCX_ETHER_CAP_25G_SR] = { IFM_25G_SR, IF_Gbps(25) }, -- 2.20.1