From owner-freebsd-arch@FreeBSD.ORG Thu Feb 26 09:38:18 2015 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9E12F4DF; Thu, 26 Feb 2015 09:38:18 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5CA0B809; Thu, 26 Feb 2015 09:38:18 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 45EEC1FE022; Thu, 26 Feb 2015 10:38:15 +0100 (CET) Message-ID: <54EEE9B6.6090106@selasky.org> Date: Thu, 26 Feb 2015 10:39:02 +0100 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: mike@karels.net, Gleb Smirnoff Subject: Re: Adding new media types to if_media.h References: <201502260258.t1Q2wKNK054143@mail.karels.net> In-Reply-To: <201502260258.t1Q2wKNK054143@mail.karels.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-net@freebsd.org" , Eric Joyner , Jack Vogel , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2015 09:38:18 -0000 Hi, I'm doing some work for Mellanox and we need some 100GBase types for coming hardware products too. I think we are not using the 32-bits of "ifm_media" well enough. Has it been discussed to add more bits to "IFM_NMASK" and have more ethernet types like IFM_ETHER_0, IFM_ETHER_1, IFM_ETHER_2, IFM_ETHER_3 .... Currently 5 IFM types are defined. If 2 more bits can be added to IFM_NMASK we have 5 bits total giving us 2**5 = 32 IFM types. Then it should be possible to define "(32 - 5) * 32 = 864" more ethernet types, which I think should be enough for now - or we add even one more bit to IFM_NMASK ? --HPS