2015-06-21 15:11:19

by Alexander Aring

[permalink] [raw]
Subject: [PATCH bluetooth-next] 6lowpan: add request for ipv6 module

The iphc module depends on CONFIG_IPV6, because it's not very useful to
build the module without IPv6 support. Recently an user reported about
issues for setting an IPv6 address to a 6LoWPAN interface. The issues
was solved by modprobe the ipv6 module before. To avoid such user issues
we try to request the ipv6 module when the 6LoWPAN module is loaded.

Signed-off-by: Alexander Aring <[email protected]>
---
net/6lowpan/iphc.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/net/6lowpan/iphc.c b/net/6lowpan/iphc.c
index 94a375c..9055d7b 100644
--- a/net/6lowpan/iphc.c
+++ b/net/6lowpan/iphc.c
@@ -613,6 +613,8 @@ EXPORT_SYMBOL_GPL(lowpan_header_compress);

static int __init lowpan_module_init(void)
{
+ request_module_nowait("ipv6");
+
request_module_nowait("nhc_dest");
request_module_nowait("nhc_fragment");
request_module_nowait("nhc_hop");
--
2.4.1


2015-06-22 10:24:24

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH bluetooth-next] 6lowpan: add request for ipv6 module

Hi Alex,

> The iphc module depends on CONFIG_IPV6, because it's not very useful to
> build the module without IPv6 support. Recently an user reported about
> issues for setting an IPv6 address to a 6LoWPAN interface. The issues
> was solved by modprobe the ipv6 module before. To avoid such user issues
> we try to request the ipv6 module when the 6LoWPAN module is loaded.
>
> Signed-off-by: Alexander Aring <[email protected]>
> ---
> net/6lowpan/iphc.c | 2 ++
> 1 file changed, 2 insertions(+)

patch has been applied to bluetooth-next tree.

Regards

Marcel

2015-06-22 07:31:43

by Jukka Rissanen

[permalink] [raw]
Subject: Re: [PATCH bluetooth-next] 6lowpan: add request for ipv6 module

Hi Alex,

On su, 2015-06-21 at 17:11 +0200, Alexander Aring wrote:
> The iphc module depends on CONFIG_IPV6, because it's not very useful to
> build the module without IPv6 support. Recently an user reported about
> issues for setting an IPv6 address to a 6LoWPAN interface. The issues
> was solved by modprobe the ipv6 module before. To avoid such user issues
> we try to request the ipv6 module when the 6LoWPAN module is loaded.
>
> Signed-off-by: Alexander Aring <[email protected]>
> ---
> net/6lowpan/iphc.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/net/6lowpan/iphc.c b/net/6lowpan/iphc.c
> index 94a375c..9055d7b 100644
> --- a/net/6lowpan/iphc.c
> +++ b/net/6lowpan/iphc.c
> @@ -613,6 +613,8 @@ EXPORT_SYMBOL_GPL(lowpan_header_compress);
>
> static int __init lowpan_module_init(void)
> {
> + request_module_nowait("ipv6");
> +
> request_module_nowait("nhc_dest");
> request_module_nowait("nhc_fragment");
> request_module_nowait("nhc_hop");


Acked-by: Jukka Rissanen <[email protected]>



Cheers,
Jukka