Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2013 20:00:03 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r250614 - head/sys/dev/cxgbe
Message-ID:  <201305132000.r4DK033v065664@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Mon May 13 20:00:03 2013
New Revision: 250614
URL: http://svnweb.freebsd.org/changeset/base/250614

Log:
  Deal correctly with 40G ports that don't have any transceiver plugged
  in.  Do not claim that they have unknown tranceivers.
  
  MFC after:	3 days

Modified:
  head/sys/dev/cxgbe/t4_main.c

Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c	Mon May 13 19:55:27 2013	(r250613)
+++ head/sys/dev/cxgbe/t4_main.c	Mon May 13 20:00:03 2013	(r250614)
@@ -2616,12 +2616,19 @@ build_medialist(struct port_info *pi)
 			ifmedia_add(media, m | IFM_40G_SR4, data, NULL);
 			ifmedia_set(media, m | IFM_40G_SR4);
 			break;
+
 		case FW_PORT_MOD_TYPE_TWINAX_PASSIVE:
 		case FW_PORT_MOD_TYPE_TWINAX_ACTIVE:
 			ifmedia_add(media, m | IFM_40G_CR4, data, NULL);
 			ifmedia_set(media, m | IFM_40G_CR4);
 			break;
 
+		case FW_PORT_MOD_TYPE_NONE:
+			m &= ~IFM_FDX;
+			ifmedia_add(media, m | IFM_NONE, data, NULL);
+			ifmedia_set(media, m | IFM_NONE);
+			break;
+
 		default:
 			device_printf(pi->dev,
 			    "unknown port_type (%d), mod_type (%d)\n",
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"



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