Dynamic loading of network kernel modules?

David Horn dhorn2000 at gmail.com
Thu Mar 26 08:59:31 PDT 2009


On Tue, Mar 24, 2009 at 11:57 AM, Brooks Davis <brooks at freebsd.org> wrote:
> On Wed, Mar 18, 2009 at 01:33:06PM -0400, David Horn wrote:
>> On Wed, Mar 18, 2009 at 12:26 PM, Oliver Fromme <olli at lurza.secnetix.de> wrote:
>> > David Horn wrote:
>> > ?> Oliver Fromme wrote:
>> > ?> >
>> > ?> > ?network_interfaces="bge0 lo0"
>> > ?>
>> > ?> Ah. ?Ok, now I am understanding your scenario.
>> > ?>
>> > ?> I thought that using 'network_interfaces' with anything other than
>> > ?> "AUTO" ?was in the process of being depreciated ?
>> >
>> > Well, the manual page says so, but I think that is a
>> > mistake. ?There are cases where you have to specify the
>> > list of interfaces explicitly. ?The situation described
>> > in this thread is one such case.
>>
>> Good point.
>>
>> >
>> > My opinion is that it is good to have the ability to let
>> > things be done automatically, but it is bad to remove the
>> > ability to do things manually. ?This is UNIX, after all.
>>
>> Exactly.  Both scenarios should probably be supported, but I guess we
>> would need to ask brooks for some history on the depreciated warning
>> for network_interfaces.
>
> I think network_interfaces and the autoloading support in ifconfig are
> a massive mistake that we've been unable to kill.  The relativly large
> amount of code you've written to hack around yet another edge case proves
> my point. :) If you want to load if_iwn at boot just do:
>
> echo 'if_iwn_load="YES"' >> /boot/loader.conf
>
> and be done with it.

Yep, now that I have had some time to think about it, this is probably
not worth patching.  Thanks for the feedback.

--Dave H

>
> -- Brooks
>
>> =================================================
>> src/etc/network.subr
>> Revision 1.185: download - view: text, markup, annotated - [selected for diffs]
>> Wed Apr 30 16:29:15 2008 UTC (10 months, 2 weeks ago) by brooks
>> Branches: MAIN
>> Diff to: previous 1.184: preferred, colored
>> Changes since revision 1.184: +4 -0 lines
>>
>> Emit a warning when the network_interfaces variable is not set to AUTO.
>>
>> MFC after:    3 days
>> ==================================================
>>
>> --Thanks!
>>
>> -_Dave H
>>
>> >
>> > Best regards
>> > ? Oliver
>> >
>> > --
>> > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
>> > Handelsregister: Registergericht Muenchen, HRA 74606, ?Gesch?ftsfuehrung:
>> > secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M?n-
>> > chen, HRB 125758, ?Gesch?ftsf?hrer: Maik Bachmann, Olaf Erb, Ralf Gebhart
>> >
>> > FreeBSD-Dienstleistungen, -Produkte und mehr: ?http://www.secnetix.de/bsd
>> >
>> > "The ITU has offered the IETF formal alignment with its
>> > corresponding technology, Penguins, but that won't fly."
>> > ? ? ? ?-- RFC 2549
>> >
>> _______________________________________________
>> freebsd-net at freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-net
>> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"
>>
>


More information about the freebsd-net mailing list