netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Fw: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1
@ 2019-09-19  8:46 Stephen Hemminger
  2019-09-25  2:28 ` David Ahern
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2019-09-19  8:46 UTC (permalink / raw)
  To: David Ahern; +Cc: netdev



Begin forwarded message:

Date: Wed, 18 Sep 2019 15:15:42 +0000
From: bugzilla-daemon@bugzilla.kernel.org
To: stephen@networkplumber.org
Subject: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1


https://bugzilla.kernel.org/show_bug.cgi?id=204903

            Bug ID: 204903
           Summary: unable to create vrf interface when ipv6.disable=1
           Product: Networking
           Version: 2.5
    Kernel Version: 5.2.14
          Hardware: All
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
          Assignee: stephen@networkplumber.org
          Reporter: zhangyoufu@gmail.com
        Regression: No

`ip link add vrf0 type vrf table 100` fails with EAFNOSUPPORT when boot with
`ipv6.disable=1`. There must be somewhere inside `vrf_newlink` trying to use
IPv6 without checking availablity. Maybe `vrf_add_fib_rules` I guess.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fw: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1
  2019-09-19  8:46 Fw: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1 Stephen Hemminger
@ 2019-09-25  2:28 ` David Ahern
  2019-09-25  6:01   ` Michal Kubecek
  0 siblings, 1 reply; 4+ messages in thread
From: David Ahern @ 2019-09-25  2:28 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev

On 9/19/19 2:46 AM, Stephen Hemminger wrote:
> 
> 
> Begin forwarded message:
> 
> Date: Wed, 18 Sep 2019 15:15:42 +0000
> From: bugzilla-daemon@bugzilla.kernel.org
> To: stephen@networkplumber.org
> Subject: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1
> 
> 
> https://bugzilla.kernel.org/show_bug.cgi?id=204903
> 
>             Bug ID: 204903
>            Summary: unable to create vrf interface when ipv6.disable=1
>            Product: Networking
>            Version: 2.5
>     Kernel Version: 5.2.14
>           Hardware: All
>                 OS: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Other
>           Assignee: stephen@networkplumber.org
>           Reporter: zhangyoufu@gmail.com
>         Regression: No
> 
> `ip link add vrf0 type vrf table 100` fails with EAFNOSUPPORT when boot with
> `ipv6.disable=1`. There must be somewhere inside `vrf_newlink` trying to use
> IPv6 without checking availablity. Maybe `vrf_add_fib_rules` I guess.
> 

ack. I'll take a look when I get a chance. Should be a simple fix.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fw: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1
  2019-09-25  2:28 ` David Ahern
@ 2019-09-25  6:01   ` Michal Kubecek
  2019-09-25 14:22     ` David Ahern
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Kubecek @ 2019-09-25  6:01 UTC (permalink / raw)
  To: netdev; +Cc: David Ahern, Stephen Hemminger

On Tue, Sep 24, 2019 at 08:28:52PM -0600, David Ahern wrote:
> On 9/19/19 2:46 AM, Stephen Hemminger wrote:
> > 
> > 
> > Begin forwarded message:
> > 
> > Date: Wed, 18 Sep 2019 15:15:42 +0000
> > From: bugzilla-daemon@bugzilla.kernel.org
> > To: stephen@networkplumber.org
> > Subject: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1
> > 
> > 
> > https://bugzilla.kernel.org/show_bug.cgi?id=204903
> > 
> >             Bug ID: 204903
> >            Summary: unable to create vrf interface when ipv6.disable=1
> >            Product: Networking
> >            Version: 2.5
> >     Kernel Version: 5.2.14
> >           Hardware: All
> >                 OS: Linux
> >               Tree: Mainline
> >             Status: NEW
> >           Severity: normal
> >           Priority: P1
> >          Component: Other
> >           Assignee: stephen@networkplumber.org
> >           Reporter: zhangyoufu@gmail.com
> >         Regression: No
> > 
> > `ip link add vrf0 type vrf table 100` fails with EAFNOSUPPORT when boot with
> > `ipv6.disable=1`. There must be somewhere inside `vrf_newlink` trying to use
> > IPv6 without checking availablity. Maybe `vrf_add_fib_rules` I guess.
> > 
> 
> ack. I'll take a look when I get a chance. Should be a simple fix.

Not sure if it's the only problem but vrf_fib_rule() checks
ipv6_mod_enabled() for AF_INET6 but not for RTNL_FAMILY_IP6MR.

Michal

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fw: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1
  2019-09-25  6:01   ` Michal Kubecek
@ 2019-09-25 14:22     ` David Ahern
  0 siblings, 0 replies; 4+ messages in thread
From: David Ahern @ 2019-09-25 14:22 UTC (permalink / raw)
  To: Michal Kubecek, netdev; +Cc: Stephen Hemminger

On 9/25/19 12:01 AM, Michal Kubecek wrote:
> Not sure if it's the only problem but vrf_fib_rule() checks
> ipv6_mod_enabled() for AF_INET6 but not for RTNL_FAMILY_IP6MR.

yes, that's the problem. sending a patch soon.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-25 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-19  8:46 Fw: [Bug 204903] New: unable to create vrf interface when ipv6.disable=1 Stephen Hemminger
2019-09-25  2:28 ` David Ahern
2019-09-25  6:01   ` Michal Kubecek
2019-09-25 14:22     ` David Ahern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).