From: David Ahern <d...@cumulusnetworks.com> Date: Thu, 9 Jun 2016 10:21:00 -0700
> Frank Kellermann reported a kernel crash with 4.5.0 when IPv6 is > disabled at boot using the kernel option ipv6.disable=1. Using > current net-next with the boot option: > > $ ip link add red type vrf table 1001 ... > The problem above is due to the fact that the fib hash table is not > allocated when IPv6 is disabled at boot. > > As for the VRF driver it should not do any IPv6 initializations if IPv6 > is disabled, so it needs to know if IPv6 is disabled at boot. The disable > parameter is private to the IPv6 module, so provide an accessor for > modules to determine if IPv6 was disabled at boot time. > > Fixes: 35402e3136634 ("net: Add IPv6 support to VRF device") > Signed-off-by: David Ahern <d...@cumulusnetworks.com> Applied.