From owner-freebsd-net@FreeBSD.ORG Thu Apr 5 21:47:16 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C11A3106564A; Thu, 5 Apr 2012 21:47:16 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (mx1.sbone.de [IPv6:2a01:4f8:130:3ffc::401:25]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2EF8FC12; Thu, 5 Apr 2012 21:47:16 +0000 (UTC) Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:31::2013:587]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 3D83425D3860; Thu, 5 Apr 2012 21:47:15 +0000 (UTC) Received: from content-filter.sbone.de (content-filter.sbone.de [IPv6:fde9:577b:c1a9:31::2013:2742]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id 35907BE4371; Thu, 5 Apr 2012 21:47:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:31::2013:587]) by content-filter.sbone.de (content-filter.sbone.de [fde9:577b:c1a9:31::2013:2742]) (amavisd-new, port 10024) with ESMTP id fyUkQbs8PKYh; Thu, 5 Apr 2012 21:47:12 +0000 (UTC) Received: from orange-en1.sbone.de (orange-en1.sbone.de [IPv6:fde9:577b:c1a9:31:cabc:c8ff:fecf:e8e3]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id BB280BE4370; Thu, 5 Apr 2012 21:47:12 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: "Bjoern A. Zeeb" In-Reply-To: <201204051447.52619.jhb@freebsd.org> Date: Thu, 5 Apr 2012 21:47:11 +0000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201204051447.52619.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1084) Cc: net@freebsd.org Subject: Re: [PATCH] Add 40g media types X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Apr 2012 21:47:16 -0000 On 5. Apr 2012, at 18:47 , John Baldwin wrote: Hi, > The patch below adds 40G media types for what I think are the "common" = media=20 > types we would see on FreeBSD (could be wrong). One caveat though, = we are=20 > running awfully low on bits now, and we don't have enough room for the = 100G=20 > media types after this. Not sure what we want to do about that. :( Can't you also see a bright future for FDDI and Token Ring and the bling = of a Danish axe? Yeah, seems another experiment has proven to be going = better than expected a couple of decades ago. At this point I'd hope someone would get out the right MIB and tell us = here's the right thing to do... 100 will at least need 4 more bits, so you could as well fill the bits = also adding KR4 and FR for 40 or will have to face the problem with 400 = latest. /bz > Index: net/if_media.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- net/if_media.h (revision 233872) > +++ net/if_media.h (working copy) > @@ -150,6 +150,9 @@ > #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 */ > +#define IFM_40G_CR4 27 /* 40GBase-CR4 */ > +#define IFM_40G_SR4 28 /* 40GBase-SR4 */ > +#define IFM_40G_LR4 29 /* 40GBase-LR4 */ >=20 > /* note 31 is the max! */ >=20 > @@ -360,6 +363,9 @@ > { IFM_10G_TWINAX_LONG, "10Gbase-Twinax-Long" }, = \ > { IFM_UNKNOWN, "Unknown" }, = \ > { IFM_10G_T, "10Gbase-T" }, = \ > + { IFM_40G_CR4, "40Gbase-CR4" }, = \ > + { IFM_40G_SR4, "40Gbase-SR4" }, = \ > + { IFM_40G_LR4, "40Gbase-LR4" }, = \ > { 0, NULL }, = \ > } >=20 > @@ -658,6 +664,9 @@ > { 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_ETHER | IFM_40G_CR4, IF_Gbps(40ULL) }, = \ > + { IFM_ETHER | IFM_40G_SR4, IF_Gbps(40ULL) }, = \ > + { IFM_ETHER | IFM_40G_LR4, IF_Gbps(40ULL) }, = \ > = \ > { IFM_TOKEN | IFM_TOK_STP4, IF_Mbps(4) }, = \ > { IFM_TOKEN | IFM_TOK_STP16, IF_Mbps(16) }, = \ >=20 > --=20 > John Baldwin > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" --=20 Bjoern A. Zeeb You have to have visions! It does not matter how good you are. It matters what good you do!