Re: [PATCH] net: tunnels - enable module autoloading

From: Tom Gundersen
Date: Thu May 15 2014 - 17:43:39 EST


On Thu, May 15, 2014 at 11:32 PM, Stephen Hemminger
<stephen@xxxxxxxxxxxxxxxxxx> wrote:
> On Tue, 13 May 2014 10:48:28 +0200
> Tom Gundersen <teg@xxxxxxx> wrote:
>
>> Enable the module alias hookup to allow tunnel modules to be autoloaded on demand.
>>
>> This is in line with how most other netdev kinds work, and will allow userspace
>> to create tunnels without having CAP_SYS_MODULE.
>>
>> Signed-off-by: Tom Gundersen <teg@xxxxxxx>
>> Tested-by: Susant Sahani <susant@xxxxxxxxxx>
>> ---
>> net/ipv4/ipip.c | 1 +
>> net/ipv6/ip6_tunnel.c | 1 +
>> net/ipv6/sit.c | 1 +
>> 3 files changed, 3 insertions(+)
>
> But tunnel modules are autoloaded now.
> If I create a tunnel with ip tunnel based on the existing MODULE_ALIAS_NETDEV().

Hm, please correct me if I'm wrong, but this only works if you create
a tunnel with one of the hardcoded tunnel names, right? And also, if I
read the code correctly, it only works if you use the ioctl interface
and not the rtnl interface?

What we'd like to do is to use the rtnl interface to create tunnels
with arbitrary names, is there a way this can already be done that I
have missed?

Cheers,

Tom
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/