Re: af_mpls: fix undefined reference to ip6_route_output

2015-08-04 Thread roopa
On 8/4/15, 12:44 AM, Dan Carpenter wrote: Hello Roopa, I have a concern about patch bf21563acc1d: "af_mpls: fix undefined reference to ip6_route_output" from Jul 30, 2015. net/mpls/af_mpls.c 450 451 dev = find_outdev(net, cfg); 452 if (IS_ERR(dev)) { f

re: af_mpls: fix undefined reference to ip6_route_output

2015-08-04 Thread Dan Carpenter
Hello Roopa, I have a concern about patch bf21563acc1d: "af_mpls: fix undefined reference to ip6_route_output" from Jul 30, 2015. net/mpls/af_mpls.c 450 451 dev = find_outdev(net, cfg); 452 if (IS_ERR(dev)) { find_outdev() used to return NULL pointers

Re: [PATCH net-next v6 0/2] af_mpls: fix undefined reference to ip6_route_output with CONFIG_IPV6=n

2015-07-31 Thread David Miller
From: Roopa Prabhu Date: Thu, 30 Jul 2015 13:34:52 -0700 > This patch series uses ipv6_stub_impl.ipv6_dst_lookup instead of > ip6_route_output. Follows the vxlan drivers usage of > ipv6_stub_impl.ipv6_dst_lookup. > > There is no sk in the af_mpls context from where > ipv6_stub_impl.ipv6_dst_loo

Re: [PATCH net-next v5 0/2] af_mpls: fix undefined reference to ip6_route_output with CONFIG_IPV6=n

2015-07-30 Thread David Miller
From: roopa Date: Thu, 30 Jul 2015 13:38:14 -0700 > but was only concerned about ipv6 module unload. It is not possible to unload the ipv6 module. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at ht

Re: [PATCH net-next v5 0/2] af_mpls: fix undefined reference to ip6_route_output with CONFIG_IPV6=n

2015-07-30 Thread roopa
On 7/30/15, 7:57 AM, Hannes Frederic Sowa wrote: On Thu, 2015-07-30 at 06:22 -0700, roopa wrote: On 7/29/15, 10:42 PM, David Miller wrote: From: Roopa Prabhu Date: Tue, 28 Jul 2015 15:27:39 -0700 v4 - v5: Use ipv6_stub_impl.ipv6_dst_lookup as suggested by Hannes I think this might not work.

[PATCH net-next v6 2/2] af_mpls: fix undefined reference to ip6_route_output

2015-07-30 Thread Roopa Prabhu
From: Roopa Prabhu Undefined reference to ip6_route_output and ip_route_output was reported with CONFIG_INET=n and CONFIG_IPV6=n. This patch uses ipv6_stub_impl.ipv6_dst_lookup instead of ip6_route_output. And wraps affected code under IS_ENABLED(CONFIG_INET) and IS_ENABLED(CONFIG_IPV6). Report

[PATCH net-next v6 0/2] af_mpls: fix undefined reference to ip6_route_output with CONFIG_IPV6=n

2015-07-30 Thread Roopa Prabhu
2): ipv6: change ipv6_stub_impl.ipv6_dst_lookup to take net argument af_mpls: fix undefined reference to ip6_route_output drivers/net/vxlan.c|2 +- include/net/addrconf.h |4 ++-- include/net/ipv6.h |3 ++- net/ipv6/icmp.c|6 +++--- net/ipv6/ip6_output.c | 15 ++

Re: [PATCH net-next v5 0/2] af_mpls: fix undefined reference to ip6_route_output with CONFIG_IPV6=n

2015-07-30 Thread Hannes Frederic Sowa
On Thu, 2015-07-30 at 06:22 -0700, roopa wrote: > On 7/29/15, 10:42 PM, David Miller wrote: > > From: Roopa Prabhu > > Date: Tue, 28 Jul 2015 15:27:39 -0700 > > > > > v4 - v5: Use ipv6_stub_impl.ipv6_dst_lookup as suggested by Hannes > > I think this might not work. > > > > The ipv6_stub pointer

Re: [PATCH net-next v5 0/2] af_mpls: fix undefined reference to ip6_route_output with CONFIG_IPV6=n

2015-07-30 Thread roopa
On 7/29/15, 10:42 PM, David Miller wrote: From: Roopa Prabhu Date: Tue, 28 Jul 2015 15:27:39 -0700 v4 - v5: Use ipv6_stub_impl.ipv6_dst_lookup as suggested by Hannes I think this might not work. The ipv6_stub pointer is NULL until the ipv6 module is loaded. VXLAN can safely call through ipv

Re: [PATCH net-next v5 0/2] af_mpls: fix undefined reference to ip6_route_output with CONFIG_IPV6=n

2015-07-29 Thread David Miller
From: Roopa Prabhu Date: Tue, 28 Jul 2015 15:27:39 -0700 > v4 - v5: Use ipv6_stub_impl.ipv6_dst_lookup as suggested by Hannes I think this might not work. The ipv6_stub pointer is NULL until the ipv6 module is loaded. VXLAN can safely call through ipv6_stub->foo() because it _knows_ the ipv6 m

Re: [PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-29 Thread Robert Shearman
On 29/07/15 11:51, Thomas Graf wrote: On 07/29/15 at 11:38am, Robert Shearman wrote: On 28/07/15 17:16, roopa wrote: RTA_OIF is optional for ipv4 and ipv6 routes and we wanted to keep it that way for mpls routes as well (Quagga is the application in our use case). It was a simple patch...until

Re: [PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-29 Thread Thomas Graf
On 07/29/15 at 11:38am, Robert Shearman wrote: > On 28/07/15 17:16, roopa wrote: > >RTA_OIF is optional for ipv4 and ipv6 routes and we wanted to keep it > >that way for mpls routes as well (Quagga is the application in our use > >case). > >It was a simple patch...until i realized the IPV6 dependen

Re: [PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-29 Thread Robert Shearman
On 28/07/15 17:16, roopa wrote: On 7/28/15, 7:17 AM, Robert Shearman wrote: On 28/07/15 07:40, Roopa Prabhu wrote: From: Roopa Prabhu Undefined reference to ip6_route_output and ip_route_output was reported with CONFIG_INET=n and CONFIG_IPV6=n. This patch adds new CONFIG_MPLS_NEXTHOP_DEVLOOK

Re: [PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-28 Thread roopa
On 7/28/15, 3:22 PM, Hannes Frederic Sowa wrote: Hi roopa, On Tue, Jul 28, 2015, at 21:28, roopa wrote: ipv6_stub_impl.ipv6_dst_lookup seems to require sk today. But it only needs it to get 'net' in the beginning and sk is optional afterwards. I will submit a patch to add 'net' as an arg to

[PATCH net-next v5 0/2] af_mpls: fix undefined reference to ip6_route_output with CONFIG_IPV6=n

2015-07-28 Thread Roopa Prabhu
r use case. Thanks and apologies for the iterations on this. Roopa Prabhu (2): ipv6: change ipv6_stub_impl.ipv6_dst_lookup to take net argument af_mpls: fix undefined reference to ip6_route_output drivers/net/vxlan.c|2 +- include/net/addrconf.h |4 ++-- include/net/ipv6.h |

[PATCH net-next v5 2/2] af_mpls: fix undefined reference to ip6_route_output

2015-07-28 Thread Roopa Prabhu
From: Roopa Prabhu Undefined reference to ip6_route_output and ip_route_output was reported with CONFIG_INET=n and CONFIG_IPV6=n. This patch uses ipv6_stub_impl.ipv6_dst_lookup instead of ip6_route_output. And wraps affected code under IS_ENABLED(CONFIG_INET) and IS_ENABLED(CONFIG_IPV6). Report

Re: [PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-28 Thread Hannes Frederic Sowa
Hi roopa, On Tue, Jul 28, 2015, at 21:28, roopa wrote: > On 7/28/15, 6:04 AM, Hannes Frederic Sowa wrote: > > Can't you simply use ipv6_stub_impl.ipv6_dst_lookup with sk=NULL to do > > that and don't have a run-time dependency on IPv6 at all (for the cost > > of a function pointer). > ipv6_stub_

Re: [PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-28 Thread roopa
On 7/28/15, 6:04 AM, Hannes Frederic Sowa wrote: Can't you simply use ipv6_stub_impl.ipv6_dst_lookup with sk=NULL to do that and don't have a run-time dependency on IPv6 at all (for the cost of a function pointer). ipv6_stub_impl.ipv6_dst_lookup seems to require sk today. But it only needs it t

Re: [PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-28 Thread roopa
On 7/28/15, 7:17 AM, Robert Shearman wrote: On 28/07/15 07:40, Roopa Prabhu wrote: From: Roopa Prabhu Undefined reference to ip6_route_output and ip_route_output was reported with CONFIG_INET=n and CONFIG_IPV6=n. This patch adds new CONFIG_MPLS_NEXTHOP_DEVLOOKUP to lookup nexthop device if us

Re: [PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-28 Thread roopa
On 7/28/15, 6:04 AM, Hannes Frederic Sowa wrote: On Mon, 2015-07-27 at 23:40 -0700, Roopa Prabhu wrote: From: Roopa Prabhu Undefined reference to ip6_route_output and ip_route_output was reported with CONFIG_INET=n and CONFIG_IPV6=n. This patch adds new CONFIG_MPLS_NEXTHOP_DEVLOOKUP to lookup

Re: [PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-28 Thread Robert Shearman
On 28/07/15 07:40, Roopa Prabhu wrote: From: Roopa Prabhu Undefined reference to ip6_route_output and ip_route_output was reported with CONFIG_INET=n and CONFIG_IPV6=n. This patch adds new CONFIG_MPLS_NEXTHOP_DEVLOOKUP to lookup nexthop device if user has not specified it in RTA_OIF attribute.

Re: [PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-28 Thread Hannes Frederic Sowa
On Mon, 2015-07-27 at 23:40 -0700, Roopa Prabhu wrote: > From: Roopa Prabhu > > Undefined reference to ip6_route_output and ip_route_output > was reported with CONFIG_INET=n and CONFIG_IPV6=n. > > This patch adds new CONFIG_MPLS_NEXTHOP_DEVLOOKUP > to lookup nexthop device if user has not specif

[PATCH net-next v4] af_mpls: fix undefined reference to ip6_route_output

2015-07-27 Thread Roopa Prabhu
From: Roopa Prabhu Undefined reference to ip6_route_output and ip_route_output was reported with CONFIG_INET=n and CONFIG_IPV6=n. This patch adds new CONFIG_MPLS_NEXTHOP_DEVLOOKUP to lookup nexthop device if user has not specified it in RTA_OIF attribute. Make CONFIG_MPLS_NEXTHOP_DEVLOOKUP depen

Re: [PATCH net-next v3] af_mpls: fix undefined reference to ip6_route_output

2015-07-27 Thread roopa
On 7/27/15, 9:20 PM, David Miller wrote: From: Roopa Prabhu Date: Mon, 27 Jul 2015 17:41:17 -0700 @@ -33,4 +33,11 @@ config MPLS_IPTUNNEL ---help--- mpls ip tunnel support. +config MPLS_NEXTHOP_DEVLOOKUP + bool "MPLS: nexthop oif dev lookup" + depends on MPLS_R

Re: [PATCH net-next v3] af_mpls: fix undefined reference to ip6_route_output

2015-07-27 Thread David Miller
From: Roopa Prabhu Date: Mon, 27 Jul 2015 17:41:17 -0700 > @@ -33,4 +33,11 @@ config MPLS_IPTUNNEL > ---help--- >mpls ip tunnel support. > > +config MPLS_NEXTHOP_DEVLOOKUP > + bool "MPLS: nexthop oif dev lookup" > + depends on MPLS_ROUTING && INET && (IPV6 || IPV6=n) > +

[PATCH net-next v3] af_mpls: fix undefined reference to ip6_route_output

2015-07-27 Thread Roopa Prabhu
From: Roopa Prabhu This patch fixes undefined reference to ip6_route_output and ip_route_output with CONFIG_INET=n and CONFIG_IPV6=n. The patch adds new CONFIG_MPLS_NEXTHOP_DEVLOOKUP to lookup nexthop device if user has not specified it in RTA_OIF attribute. Make CONFIG_MPLS_NEXTHOP_DEVLOOKUP de

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-26 Thread David Miller
From: roopa Date: Thu, 23 Jul 2015 06:44:13 -0700 > On 7/23/15, 12:09 AM, David Miller wrote: >> From: roopa >> Date: Wed, 22 Jul 2015 13:38:31 -0700 >> >>> I cant think of a way to fix the current problem with my patch... >> I guess it's not obvious that adding CONFIG_MPLS_IPV6 would solve >> t

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-23 Thread roopa
On 7/23/15, 12:09 AM, David Miller wrote: From: roopa Date: Wed, 22 Jul 2015 13:38:31 -0700 I cant think of a way to fix the current problem with my patch... I guess it's not obvious that adding CONFIG_MPLS_IPV6 would solve the problem perfectly. I thought that was not an option because CONF

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread David Miller
From: roopa Date: Wed, 22 Jul 2015 13:38:31 -0700 > I cant think of a way to fix the current problem with my patch... I guess it's not obvious that adding CONFIG_MPLS_IPV6 would solve the problem perfectly. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a mes

[PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread Roopa Prabhu
From: Roopa Prabhu seen with CONFIG_IPV6 disabled. Wrap the code around IS_BUILTIN(CONFIG_IPV6). Also fixes undefined reference to ip_route_output with CONFIG_INET=n Reported-by: kbuild test robot Reported-by: Thomas Graf Signed-off-by: Roopa Prabhu --- could not think of a better way. This u

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread roopa
On 7/22/15, 1:17 PM, Thomas Graf wrote: On 07/22/15 at 01:04pm, David Miller wrote: From: Thomas Graf Date: Wed, 22 Jul 2015 21:57:06 +0200 On 07/22/15 at 12:30pm, roopa wrote: diff --git a/net/mpls/Kconfig b/net/mpls/Kconfig index 5c467ef..2b28615 100644 --- a/net/mpls/Kconfig +++ b/net/mpl

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread roopa
On 7/22/15, 1:04 PM, David Miller wrote: From: Thomas Graf Date: Wed, 22 Jul 2015 21:57:06 +0200 On 07/22/15 at 12:30pm, roopa wrote: diff --git a/net/mpls/Kconfig b/net/mpls/Kconfig index 5c467ef..2b28615 100644 --- a/net/mpls/Kconfig +++ b/net/mpls/Kconfig @@ -24,6 +24,8 @@ config NET_MPLS_

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread Thomas Graf
On 07/22/15 at 01:04pm, David Miller wrote: > From: Thomas Graf > Date: Wed, 22 Jul 2015 21:57:06 +0200 > > > On 07/22/15 at 12:30pm, roopa wrote: > >> diff --git a/net/mpls/Kconfig b/net/mpls/Kconfig > >> index 5c467ef..2b28615 100644 > >> --- a/net/mpls/Kconfig > >> +++ b/net/mpls/Kconfig > >>

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread David Miller
From: Thomas Graf Date: Wed, 22 Jul 2015 21:57:06 +0200 > On 07/22/15 at 12:30pm, roopa wrote: >> diff --git a/net/mpls/Kconfig b/net/mpls/Kconfig >> index 5c467ef..2b28615 100644 >> --- a/net/mpls/Kconfig >> +++ b/net/mpls/Kconfig >> @@ -24,6 +24,8 @@ config NET_MPLS_GSO >> >> config MPLS_ROUT

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread David Miller
From: roopa Date: Wed, 22 Jul 2015 12:30:19 -0700 > diff --git a/net/mpls/Kconfig b/net/mpls/Kconfig > index 5c467ef..2b28615 100644 > --- a/net/mpls/Kconfig > +++ b/net/mpls/Kconfig > @@ -24,6 +24,8 @@ config NET_MPLS_GSO > > config MPLS_ROUTING > tristate "MPLS: routing support" > +

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread Thomas Graf
On 07/22/15 at 12:30pm, roopa wrote: > diff --git a/net/mpls/Kconfig b/net/mpls/Kconfig > index 5c467ef..2b28615 100644 > --- a/net/mpls/Kconfig > +++ b/net/mpls/Kconfig > @@ -24,6 +24,8 @@ config NET_MPLS_GSO > > config MPLS_ROUTING > tristate "MPLS: routing support" > + depends on

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread roopa
On 7/22/15, 5:23 AM, Thomas Graf wrote: On 07/22/15 at 12:10am, Roopa Prabhu wrote: From: Roopa Prabhu seen with CONFIG_IPV6 disabled. Wrap the code around IS_ENABLED(CONFIG_IPV6) Reported-by: kbuild test robot Signed-off-by: Roopa Prabhu We need the same for CONFIG_INET=n in inet_fib_look

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread roopa
On 7/22/15, 10:49 AM, David Miller wrote: From: Thomas Graf Date: Wed, 22 Jul 2015 14:23:09 +0200 On 07/22/15 at 12:10am, Roopa Prabhu wrote: From: Roopa Prabhu seen with CONFIG_IPV6 disabled. Wrap the code around IS_ENABLED(CONFIG_IPV6) Reported-by: kbuild test robot Signed-off-by: Roopa

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread David Miller
From: Thomas Graf Date: Wed, 22 Jul 2015 14:23:09 +0200 > On 07/22/15 at 12:10am, Roopa Prabhu wrote: >> From: Roopa Prabhu >> >> seen with CONFIG_IPV6 disabled. Wrap the code >> around IS_ENABLED(CONFIG_IPV6) >> >> Reported-by: kbuild test robot >> Signed-off-by: Roopa Prabhu > > We need t

Re: [PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread Thomas Graf
On 07/22/15 at 12:10am, Roopa Prabhu wrote: > From: Roopa Prabhu > > seen with CONFIG_IPV6 disabled. Wrap the code > around IS_ENABLED(CONFIG_IPV6) > > Reported-by: kbuild test robot > Signed-off-by: Roopa Prabhu We need the same for CONFIG_INET=n in inet_fib_lookup_dev: /home/tgraf/dev/linu

[PATCH net-next] af_mpls: fix undefined reference to ip6_route_output

2015-07-22 Thread Roopa Prabhu
From: Roopa Prabhu seen with CONFIG_IPV6 disabled. Wrap the code around IS_ENABLED(CONFIG_IPV6) Reported-by: kbuild test robot Signed-off-by: Roopa Prabhu --- net/mpls/af_mpls.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c index 49f1b0e