Bug 204903

Summary: unable to create vrf interface when ipv6.disable=1
Product: Networking Reporter: zhangyoufu
Component: OtherAssignee: Stephen Hemminger (stephen)
Status: NEW ---    
Severity: normal CC: dsahern
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.2.14 Subsystem:
Regression: No Bisected commit-id:

Description zhangyoufu 2019-09-18 15:15:42 UTC
`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.
Comment 1 David Ahern 2019-09-27 19:01:29 UTC
Fixed in net tree. Commit:
dac91170f8e9 vrf: Do not attempt to create IPv6 mcast rule if IPv6 is disabled