cvs commit: src/sys/modules Makefile

Brooks Davis brooks at one-eyed-alien.net
Tue Feb 21 10:37:01 PST 2006


On Tue, Feb 21, 2006 at 08:53:20AM -0500, Andrew Gallatin wrote:
> 
> Greg 'groggy' Lehey writes:
>  > On Monday, 20 February 2006 at  2:50:09 +0000, Andrew Gallatin wrote:
>  > > gallatin    2006-02-20 02:50:09 UTC
>  > >
>  > >   FreeBSD src repository
>  > >
>  > >   Modified files:
>  > >     sys/modules          Makefile
>  > >   Log:
>  > >   Hook the myri10ge driver to the i386 and amd64 module builds.
>  > 
>  > Is this device really going to be called myri10ge?  That's at least
>  > double the length of any other device.  Can't we come up with a
>  > shorter name?
> 
> Personally, I can't stand the name either.  Internally, I lobbied as
> hard as I could for mxge (Myri X GE), but my bosses were afraid that
> name might be confused with other product names (mx2g, mx10g), and
> because our ethernet-over-myriinet interface names have always been
> "myri" for our OS-bypass 2 and 4Gb products.  So we have myri10ge as
> the name of our Linux, Solaris, MacOSX, and Windows drivers.  My
> reason for naming it myri10ge in FreeBSD was to be consistent with our
> other platforms & to keep my bosses happy, since I was allowed to do
> this as part of my day job.  If there are technical reasons why it
> needs to be shortened, then I have a leg to stand on and hopefully
> won't get into trouble for changing it.
> 
> Alternatively, would it be an option to shorten just the
> ifp->if_xname, and leave the driver named myri10ge?  The rationale is
> that nobody seems to mind the MacOSX driver's name being "en3" or the
> linux driver being "eth2" according to ifconfig.

You can set if_dname to anything you want it to be since we don't
actually do much with it (the cloning API being the major exception).
The only place it would be relevant is in if_mib where it's bogusly
exported with if_dunit smashed onto it in the IFDATA_DRIVERNAME case.
I've been meaning to add it to the ifconfig -v output for a while so
people who rename their interfaces can see it.

The one gotcha is that you'll presumably want the config file entries
and the module to be if_myri10ge which would mean that the ifconfig
autoloading hack wouldn't work.  That's not a problem for me since I
think it should die :), but this might be a minor, periodic support
headache.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20060221/04d3072e/attachment.bin


More information about the cvs-src mailing list