Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 2020 14:45:16 +0000 (UTC)
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r365801 - head/sys/net
Message-ID:  <202009161445.08GEjGFS073971@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mhorne
Date: Wed Sep 16 14:45:16 2020
New Revision: 365801
URL: https://svnweb.freebsd.org/changeset/base/365801

Log:
  if_media: definitions for 40GE LM4 ethernet media type
  
  Reviewed by:	erj
  Sponsored by:	NetApp, Inc.
  Sponsored by:	Klara, Inc.
  Differential Revision:	https://reviews.freebsd.org/D26276

Modified:
  head/sys/net/ieee8023ad_lacp.c
  head/sys/net/if_media.h

Modified: head/sys/net/ieee8023ad_lacp.c
==============================================================================
--- head/sys/net/ieee8023ad_lacp.c	Wed Sep 16 14:20:45 2020	(r365800)
+++ head/sys/net/ieee8023ad_lacp.c	Wed Sep 16 14:45:16 2020	(r365801)
@@ -1213,6 +1213,7 @@ lacp_compose_key(struct lacp_port *lp)
 		case IFM_40G_CR4:
 		case IFM_40G_SR4:
 		case IFM_40G_LR4:
+		case IFM_40G_LM4:
 		case IFM_40G_XLPPI:
 		case IFM_40G_KR4:
 		case IFM_40G_XLAUI:

Modified: head/sys/net/if_media.h
==============================================================================
--- head/sys/net/if_media.h	Wed Sep 16 14:20:45 2020	(r365800)
+++ head/sys/net/if_media.h	Wed Sep 16 14:45:16 2020	(r365801)
@@ -258,6 +258,7 @@ uint64_t	ifmedia_baudrate(int);
 #define	IFM_400G_AUI8_AC IFM_X(116)	/* 400G-AUI8 active copper/optical */
 #define	IFM_400G_AUI8	IFM_X(117)	/* 400G-AUI8 */
 #define	IFM_50G_KR4	IFM_X(118)	/* 50GBase-KR4 */
+#define	IFM_40G_LM4	IFM_X(119)	/* 40GBase-LM4 */
 
 /*
  * Please update ieee8023ad_lacp.c:lacp_compose_key()
@@ -456,6 +457,7 @@ struct ifmedia_description {
 	{ IFM_40G_CR4,	"40Gbase-CR4" },				\
 	{ IFM_40G_SR4,	"40Gbase-SR4" },				\
 	{ IFM_40G_LR4,	"40Gbase-LR4" },				\
+	{ IFM_40G_LM4,	"40GBase-LM4" },				\
 	{ IFM_1000_KX,	"1000Base-KX" },				\
 	{ IFM_OTHER,	"Other" },					\
 	{ IFM_10G_KX4,	"10GBase-KX4" },				\
@@ -801,6 +803,7 @@ struct ifmedia_baudrate {
 	{ IFM_ETHER | IFM_40G_CR4,	IF_Gbps(40ULL) },		\
 	{ IFM_ETHER | IFM_40G_SR4,	IF_Gbps(40ULL) },		\
 	{ IFM_ETHER | IFM_40G_LR4,	IF_Gbps(40ULL) },		\
+	{ IFM_ETHER | IFM_40G_LM4,	IF_Gbps(40ULL) },		\
 	{ IFM_ETHER | IFM_1000_KX,	IF_Mbps(1000) },		\
 	{ IFM_ETHER | IFM_10G_KX4,	IF_Gbps(10ULL) },		\
 	{ IFM_ETHER | IFM_10G_KR,	IF_Gbps(10ULL) },		\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009161445.08GEjGFS073971>