Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 May 2017 17:04:13 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>
Cc:        Alan Somers <asomers@freebsd.org>, Ian Lepore <ian@freebsd.org>, Ryan Stone <rysto32@gmail.com>,  "src-committers@freebsd.org" <src-committers@freebsd.org>,  "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>,  "svn-src-head@freebsd.org" <svn-src-head@freebsd.org>
Subject:   Re: svn commit: r317755 - head/sbin/ifconfig
Message-ID:  <CANCZdfq7SKWaL-oe8gAC4vGCqNd3WYrZZC=OR1c2ak4N9dEyKA@mail.gmail.com>
In-Reply-To: <f14034e8-f497-5aed-a864-350bd1ae6844@yandex.ru>
References:  <201705031721.v43HL2vS071819@repo.freebsd.org> <CAFMmRNyHc7qgeidDTZss%2Bo=56Uc-Xgyu_voj4ybHt=mEJa6c%2Bg@mail.gmail.com> <CAFMmRNyUXZz==Xdh8fqbw7BqYCHig%2BXAEOj1dxcJ2p0H6_qWeA@mail.gmail.com> <1493838199.80042.14.camel@freebsd.org> <CAOtMX2irVPoGYHB0pNmWYNdc7-G7R4XTXexz77hsaurUCefm2A@mail.gmail.com> <f14034e8-f497-5aed-a864-350bd1ae6844@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, May 3, 2017 at 4:50 PM, Andrey V. Elsukov <bu7cher@yandex.ru> wrote:
> On 03.05.2017 22:22, Alan Somers wrote:
>> The problem with the original code is that module load errors would be
>> caught too late, and as a result the error printed would be less
>> useful.  For example, if you forgot to put "kld_list=if_igb" in
>> /etc/rc.conf and run "ifconfig igb0", it would print "ifconfig:
>> interface igb7 does not exist" instead of the more useful "ifconfig:
>> kldload(if_igb): Operation not permitted".  But I didn't know that
>> there were drivers like mlx4en where ifconfig can't load the correct
>> module.  So I'll take Ryan's suggestion and revert that part for now.
>
> I want to note, that there is if_enc(4) kernel module, that is failed to
> be loaded by ifconfig(8) due to presence in the kernel enc(4) driver
> (from sys/cam).

There shouldn't be two drivers with the same name. That's a bug, but
it's been like this for 4 years...

Warner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfq7SKWaL-oe8gAC4vGCqNd3WYrZZC=OR1c2ak4N9dEyKA>