aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux
diff options
context:
space:
mode:
authorMarek BehĂșn <kabel@kernel.org>2022-01-20 14:21:36 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2022-02-01 22:59:09 +0100
commit45d541bb409355f090b971d96ebebd8610ef84a7 (patch)
treec41627fbbf1a7e5fce0be984c3983e8e89f1b73c /package/kernel/linux
parentaa8299ee4f75e90795e58b4cc548bb2f7fe0c391 (diff)
downloadupstream-45d541bb409355f090b971d96ebebd8610ef84a7.tar.gz
upstream-45d541bb409355f090b971d96ebebd8610ef84a7.tar.bz2
upstream-45d541bb409355f090b971d96ebebd8610ef84a7.zip
kernel: add kmod-vrf
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>
Diffstat (limited to 'package/kernel/linux')
-rw-r--r--package/kernel/linux/modules/netsupport.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
index 166172dbf3..e37ab59575 100644
--- a/package/kernel/linux/modules/netsupport.mk
+++ b/package/kernel/linux/modules/netsupport.mk
@@ -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