From 5f5dc3614f9eabbe771c7ee5dc64eeb3e758464d Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Tue, 13 Feb 2018 15:40:11 +0800 Subject: [PATCH] openvswitch: add gre, vxlan, geneve tunneling support Signed-off-by: Yousong Zhou --- net/openvswitch/Makefile | 40 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/net/openvswitch/Makefile b/net/openvswitch/Makefile index bf250a2fd1..1eadaeedac 100644 --- a/net/openvswitch/Makefile +++ b/net/openvswitch/Makefile @@ -13,7 +13,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=openvswitch PKG_VERSION:=2.8.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_LICENSE:=Apache-2.0 PKG_LICENSE_FILES:=COPYING PKG_USE_MIPS16:=0 @@ -136,6 +136,39 @@ define KernelPackage/openvswitch AUTOLOAD:=$(call AutoProbe,openvswitch) endef +define KernelPackage/openvswitch-gre + SECTION:=kernel + CATEGORY:=Kernel modules + SUBMENU:=Network Support + TITLE:=Open vSwitch GRE tunneling support + KCONFIG:= CONFIG_OPENVSWITCH_GRE + DEPENDS:= +kmod-openvswitch +kmod-gre + FILES:= $(LINUX_DIR)/net/openvswitch/vport-gre.ko + AUTOLOAD:=$(call AutoProbe,vport-gre) +endef + +define KernelPackage/openvswitch-vxlan + SECTION:=kernel + CATEGORY:=Kernel modules + SUBMENU:=Network Support + TITLE:=Open vSwitch VXLAN tunneling support + KCONFIG:= CONFIG_OPENVSWITCH_VXLAN + DEPENDS:= +kmod-openvswitch +kmod-vxlan + FILES:= $(LINUX_DIR)/net/openvswitch/vport-vxlan.ko + AUTOLOAD:=$(call AutoProbe,vport-vxlan) +endef + +define KernelPackage/openvswitch-geneve + SECTION:=kernel + CATEGORY:=Kernel modules + SUBMENU:=Network Support + TITLE:=Open vSwitch Geneve tunneling support + KCONFIG:= CONFIG_OPENVSWITCH_GENEVE + DEPENDS:= +kmod-openvswitch +kmod-geneve + FILES:= $(LINUX_DIR)/net/openvswitch/vport-geneve.ko + AUTOLOAD:=$(call AutoProbe,vport-geneve) +endef + CONFIGURE_ARGS += --enable-ndebug CONFIGURE_ARGS += --enable-shared @@ -263,5 +296,8 @@ $(eval $(call BuildPackage,openvswitch-ovn)) $(eval $(call BuildPackage,openvswitch-vtep)) $(eval $(call BuildPackage,openvswitch-python)) $(eval $(call BuildPackage,openvswitch)) -$(eval $(call KernelPackage,openvswitch)) +$(eval $(call KernelPackage,openvswitch)) +$(eval $(call KernelPackage,openvswitch-gre)) +$(eval $(call KernelPackage,openvswitch-vxlan)) +$(eval $(call KernelPackage,openvswitch-geneve)) -- 2.30.2