Skip to content

Commit

Permalink
kernel: add kmod-vrf
Browse files Browse the repository at this point in the history
Add option to compile kmod-vrf, support for Virtual Routing and
Forwarding (Lite).

This module depends on NET_L3_MASTER_DEV, which is a boolean kernel
option, so we need to create a configuration option also for this, and
make kmod-vrf depend on it.

Signed-off-by: Marek Behún <kabel@kernel.org>
  • Loading branch information
elkablo authored and hauke committed Feb 1, 2022
1 parent aa8299e commit 45d541b
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
10 changes: 10 additions & 0 deletions config/Config-kernel.in
Expand Up @@ -1042,6 +1042,16 @@ if KERNEL_IPV6

endif

#
# Miscellaneous network configuration
#

config KERNEL_NET_L3_MASTER_DEV
bool "L3 Master device support"
help
This module provides glue between core networking code and device
drivers to support L3 master devices like VRF.

#
# NFS related symbols
#
Expand Down
17 changes: 17 additions & 0 deletions package/kernel/linux/modules/netsupport.mk
Expand Up @@ -564,6 +564,23 @@ endef
$(eval $(call KernelPackage,veth))


define KernelPackage/vrf
SUBMENU:=$(NETWORK_SUPPORT_MENU)
TITLE:=Virtual Routing and Forwarding (Lite)
DEPENDS:=@KERNEL_NET_L3_MASTER_DEV
KCONFIG:=CONFIG_NET_VRF
FILES:=$(LINUX_DIR)/drivers/net/vrf.ko
AUTOLOAD:=$(call AutoLoad,30,vrf)
endef

define KernelPackage/vrf/description
This option enables the support for mapping interfaces into VRF's. The
support enables VRF devices.
endef

$(eval $(call KernelPackage,vrf))


define KernelPackage/slhc
SUBMENU:=$(NETWORK_SUPPORT_MENU)
HIDDEN:=1
Expand Down

0 comments on commit 45d541b

Please sign in to comment.