svn commit: r341052 - head/sys/dev/sfxge/common

Andrew Rybchenko arybchik at FreeBSD.org
Tue Nov 27 13:00:57 UTC 2018


Author: arybchik
Date: Tue Nov 27 13:00:51 2018
New Revision: 341052
URL: https://svnweb.freebsd.org/changeset/base/341052

Log:
  sfxge(4): handle new speeds in link events
  
  Submitted by:   Andy Moreton <amoreton at solarflare.com>
  Sponsored by:   Solarflare Communications, Inc.
  Differential Revision:  https://reviews.freebsd.org/D18170

Modified:
  head/sys/dev/sfxge/common/ef10_phy.c

Modified: head/sys/dev/sfxge/common/ef10_phy.c
==============================================================================
--- head/sys/dev/sfxge/common/ef10_phy.c	Tue Nov 27 13:00:39 2018	(r341051)
+++ head/sys/dev/sfxge/common/ef10_phy.c	Tue Nov 27 13:00:51 2018	(r341052)
@@ -176,8 +176,17 @@ ef10_phy_link_ev(
 	case MCDI_EVENT_LINKCHANGE_SPEED_10G:
 		speed = 10000;
 		break;
+	case MCDI_EVENT_LINKCHANGE_SPEED_25G:
+		speed = 25000;
+		break;
 	case MCDI_EVENT_LINKCHANGE_SPEED_40G:
 		speed = 40000;
+		break;
+	case MCDI_EVENT_LINKCHANGE_SPEED_50G:
+		speed = 50000;
+		break;
+	case MCDI_EVENT_LINKCHANGE_SPEED_100G:
+		speed = 100000;
 		break;
 	default:
 		speed = 0;


More information about the svn-src-all mailing list