[LEDE-DEV] Difference between AutoLoad vs. AutoProbe for kernel modules?

Yousong Zhou yszhou4tech at gmail.com
Tue Jan 10 04:38:24 PST 2017


On 10 January 2017 at 20:20, John Crispin <john at phrozen.org> wrote:
>
>
> On 10/01/2017 12:11, Yousong Zhou wrote:
>> On 10 January 2017 at 18:27, John Crispin <john at phrozen.org> wrote:
>>> correct, which is why we tend to add subsystem and lib stuff using
>>> AutoLoad and the rest using AutoProbe
>>
>> I think the problem with wireguard in github issue 3790 [1] is that
>> wireguard requires NFPROTO_{IPV4,IPV6} "hashlimit" module and
>> netfilter subsystem will try to load ipt_hashlimit and ip6t_hashlimit
>> which are aliases of xt_hashlimit, but we have aliases along with
>> other modinfoinfo stripped from kernel modules with patch
>> 204-module_strip.patch.
>>
>> It looks to me mod aliases are essential part of the module info in
>> this case . What do you think about restoring them by patching the
>> 204.xxx.patch?
>>
>> [1] https://github.com/openwrt/packages/issues/3790
>>
>>                 yousong
>>
>
> why not simply set the hashlimit to autoload and make wireguard depend
> on it ? that should resolve the loading issue.
>
>         John

Yes, but the point is that missing aliases is a generic issue and
autoloading hashlimit only fixes a single case.

                yousong



More information about the Lede-dev mailing list