svn commit: r317755 - head/sbin/ifconfig

Warner Losh imp at bsdimp.com
Wed May 3 23:05:13 UTC 2017


On Wed, May 3, 2017 at 4:50 PM, Andrey V. Elsukov <bu7cher at 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


More information about the svn-src-all mailing list