]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: fix build without CONFIG_SYSCTL definition
authorMahesh Bandewar <maheshb@google.com>
Fri, 18 Sep 2020 05:08:32 +0000 (22:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Sep 2020 21:14:05 +0000 (14:14 -0700)
commit3753d9779038ab011e01b949253492aaa37bf57a
tree73f7d0204b839f3b0c92ae917c276dbf0567da16
parentd134b78ee34823c607875c77426e18c762a911ea
net: fix build without CONFIG_SYSCTL definition

Earlier commit 316cdaa1158a ("net: add option to not create fall-back
tunnels in root-ns as well") removed the CONFIG_SYSCTL to enable the
kernel-commandline to work. However, this variable gets defined only
when CONFIG_SYSCTL option is selected.

With this change the behavior would default to creating fall-back
tunnels in all namespaces when CONFIG_SYSCTL is not selected and
the kernel commandline option will be ignored.

Fixes: 316cdaa1158a ("net: add option to not create fall-back tunnels in root-ns as well")
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: kernel test robot <lkp@intel.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h