From owner-svn-src-all@FreeBSD.ORG Thu Jun 25 13:56:25 2009 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAEEA106566C; Thu, 25 Jun 2009 13:56:25 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from proxy.meer.net (proxy.meer.net [64.13.141.13]) by mx1.freebsd.org (Postfix) with ESMTP id 954C78FC12; Thu, 25 Jun 2009 13:56:25 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mail.meer.net (mail.meer.net [64.13.141.3]) by proxy.meer.net (8.14.3/8.14.3) with ESMTP id n5PDSQQK040488; Thu, 25 Jun 2009 06:29:19 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from mail2.meer.net (mail2.meer.net [64.13.141.16]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id n5PDInD0045489; Thu, 25 Jun 2009 06:18:49 -0700 (PDT) (envelope-from gnn@neville-neil.com) Received: from gnnmac.hudson-trading.com (209.249.190.8.available.above.net [209.249.190.8] (may be forged)) (authenticated bits=0) by mail2.meer.net (8.14.1/8.14.3) with ESMTP id n5PDIlN3013139 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 25 Jun 2009 06:18:48 -0700 (PDT) (envelope-from gnn@neville-neil.com) Message-Id: <29388187-3617-40D4-ACDA-DECD97F8274F@neville-neil.com> From: George Neville-Neil To: Navdeep Parhar In-Reply-To: <200906242153.n5OLrPEV030916@svn.freebsd.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Thu, 25 Jun 2009 09:18:47 -0400 References: <200906242153.n5OLrPEV030916@svn.freebsd.org> X-Mailer: Apple Mail (2.935.3) X-Spam-Score: undef - spam scanning disabled X-CanIt-Geo: ip=64.13.141.3; country=US; region=CA; city=Mountain View; latitude=37.3974; longitude=-122.0732; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.3974,-122.0732&z=6 X-CanItPRO-Stream: default X-Canit-Stats-ID: Bayes signature not available X-Scanned-By: CanIt (www . roaringpenguin . com) on 64.13.141.13 Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r194918 - head/sys/net X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 13:56:26 -0000 On Jun 24, 2009, at 17:53 , Navdeep Parhar wrote: > Author: np > Date: Wed Jun 24 21:53:25 2009 > New Revision: 194918 > URL: http://svn.freebsd.org/changeset/base/194918 > > Log: > Add 10Gbase-T to known ethernet media types. > > Approved by: gnn (mentor) > MFC after: 1 week. > > Modified: > head/sys/net/if_media.h > > Modified: head/sys/net/if_media.h > = > = > = > = > = > = > = > = > ====================================================================== > --- head/sys/net/if_media.h Wed Jun 24 21:51:42 2009 (r194917) > +++ head/sys/net/if_media.h Wed Jun 24 21:53:25 2009 (r194918) > @@ -149,6 +149,7 @@ uint64_t ifmedia_baudrate(int); > #define IFM_10G_TWINAX_LONG 23 /* 10GBase Twinax Long copper */ > #define IFM_10G_LRM 24 /* 10GBase-LRM 850nm Multi-mode */ > #define IFM_UNKNOWN 25 /* media types not defined yet */ > +#define IFM_10G_T 26 /* 10GBase-T - RJ45 */ > > > /* note 31 is the max! */ > @@ -358,6 +359,7 @@ struct ifmedia_description { > { IFM_10G_TWINAX, "10Gbase-Twinax" }, \ > { IFM_10G_TWINAX_LONG, "10Gbase-Twinax-Long" }, \ > { IFM_UNKNOWN, "Unknown" }, \ > + { IFM_10G_T, "10Gbase-T" }, \ > { 0, NULL }, \ > } > > @@ -615,6 +617,7 @@ struct ifmedia_baudrate { > { IFM_ETHER | IFM_10G_TWINAX, IF_Gbps(10ULL) }, \ > { IFM_ETHER | IFM_10G_TWINAX_LONG, IF_Gbps(10ULL) }, \ > { IFM_ETHER | IFM_10G_LRM, IF_Gbps(10ULL) }, \ > + { IFM_ETHER | IFM_10G_T, IF_Gbps(10ULL) }, \ > \ > { IFM_TOKEN | IFM_TOK_STP4, IF_Mbps(4) }, \ > { IFM_TOKEN | IFM_TOK_STP16, IF_Mbps(16) }, \ Howdy, John Baldwin pointed out to me that UNKNOWN really should have been pushed up to the end. Can you make a small patch and send it to me? Increase the number and move its string to the end of the array? Best, George