Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2015 10:39:02 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        mike@karels.net, Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, Eric Joyner <ricera10@gmail.com>, Jack Vogel <jfvogel@gmail.com>, "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Subject:   Re: Adding new media types to if_media.h
Message-ID:  <54EEE9B6.6090106@selasky.org>
In-Reply-To: <201502260258.t1Q2wKNK054143@mail.karels.net>
References:  <201502260258.t1Q2wKNK054143@mail.karels.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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






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