vrf: Do not attempt to create IPv6 mcast rule if IPv6 is disabled
authorDavid Ahern <dsahern@gmail.com>
Wed, 25 Sep 2019 14:53:19 +0000 (07:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Sep 2019 18:07:05 +0000 (20:07 +0200)
commitdac91170f8e9c73784af5fad6225e954b795601c
treef153f5702dc01ec960ffd052cfd5b7b7acdf5e3a
parent3c30819dc68ab9498216421b6846123900c0a6d3
vrf: Do not attempt to create IPv6 mcast rule if IPv6 is disabled

A user reported that vrf create fails when IPv6 is disabled at boot using
'ipv6.disable=1':
   https://bugzilla.kernel.org/show_bug.cgi?id=204903

The failure is adding fib rules at create time. Add RTNL_FAMILY_IP6MR to
the check in vrf_fib_rule if ipv6_mod_enabled is disabled.

Fixes: e4a38c0c4b27 ("ipv6: add vrf table handling code for ipv6 mcast")
Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Patrick Ruddy <pruddy@vyatta.att-mail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vrf.c