git: 4220b52453c9 - main - net: Add ifmedia support for 10GBase-BX BiDi

Kevin Bowling <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.src
Message-ID <6a79fe49.39720.7cb97ccb__28382.12962249$1786379864$gmane$org@gitrepo.freebsd.org>
The branch main has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=4220b52453c9701922955dcc1c1e1554d6a9f3ae

commit 4220b52453c9701922955dcc1c1e1554d6a9f3ae
Author:     Kevin Bowling <[email protected]>
AuthorDate: 2026-08-10 16:28:14 +0000
Commit:     Kevin Bowling <[email protected]>
CommitDate: 2026-08-10 16:36:31 +0000

    net: Add ifmedia support for 10GBase-BX BiDi
    
    10GBase-BX uses paired wavelengths to carry both directions over a
    single strand of single-mode fiber.  The optics must be paired so that
    the transmit and receive wavelengths cross over.
    
    MFC after:      2 weeks
---
 sys/net/if_media.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index 5e2548d844c9..7a0c1fa588ca 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -278,6 +278,7 @@ uint64_t	ifmedia_baudrate(int);
 #define	IFM_800G_CR4	IFM_X(137)	/* 800GBase-CR4 */
 #define	IFM_800G_SR4	IFM_X(138)	/* 800GBase-SR4 */
 #define	IFM_800G_KR4_PAM4 IFM_X(139)	/* 800GBase-KR4 PAM4 */
+#define	IFM_10G_BX	IFM_X(140)	/* 10GBase-BX */
 
 /*
  * Please update ieee8023ad_lacp.c:lacp_compose_key()
@@ -467,6 +468,7 @@ struct ifmedia_description {
 	{ IFM_1000_T,	"1000baseT" },					\
 	{ IFM_HPNA_1,	"homePNA" },					\
 	{ IFM_10G_LR,	"10Gbase-LR" },					\
+	{ IFM_10G_BX,	"10Gbase-BX" },					\
 	{ IFM_10G_SR,	"10Gbase-SR" },					\
 	{ IFM_10G_CX4,	"10Gbase-CX4" },				\
 	{ IFM_2500_SX,	"2500BaseSX" },					\
@@ -834,6 +836,7 @@ struct ifmedia_baudrate {
 	{ IFM_ETHER | IFM_1000_T,	IF_Mbps(1000) },		\
 	{ IFM_ETHER | IFM_HPNA_1,	IF_Mbps(1) },			\
 	{ IFM_ETHER | IFM_10G_LR,	IF_Gbps(10ULL) },		\
+	{ IFM_ETHER | IFM_10G_BX,	IF_Gbps(10ULL) },		\
 	{ IFM_ETHER | IFM_10G_SR,	IF_Gbps(10ULL) },		\
 	{ IFM_ETHER | IFM_10G_CX4,	IF_Gbps(10ULL) },		\
 	{ IFM_ETHER | IFM_2500_SX,	IF_Mbps(2500ULL) },		\
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.