[OpenWrt-Devel] [PATCH RFC 2/2] modules/netsupport: Add MPLS support
Felix Fietkau
nbd at openwrt.org
Sat Jan 30 17:20:20 EST 2016
On 2016-01-30 23:14, André Valentin wrote:
> Add needed modules for MPLS support.
>
> Signed-off-by: André Valentin <avalentin at marcant.net>
> ---
> package/kernel/linux/modules/netsupport.mk | 23 +++++++++++++++++++++++
> 1 file changed, 23 insertions(+)
>
> diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk
> index 446996e..0215722 100644
> --- a/package/kernel/linux/modules/netsupport.mk
> +++ b/package/kernel/linux/modules/netsupport.mk
> @@ -1029,3 +1029,26 @@ define KernelPackage/rxrpc/description
> endef
>
> $(eval $(call KernelPackage,rxrpc))
> +
> +define KernelPackage/mpls
> + SUBMENU:=$(NETWORK_SUPPORT_MENU)
> + TITLE:=MPLS support
> + KCONFIG:= \
> + CONFIG_MPLS \
> + CONFIG_NET_MPLS_GSO=m \
> + CONFIG_MPLS_ROUTING=m \
> + CONFIG_MPLS_IPTUNNEL=m
> + FILES:= \
> + $(LINUX_DIR)/net/mpls/mpls_gso.ko \
> + $(LINUX_DIR)/net/mpls/mpls_iptunnel.ko \
> + $(LINUX_DIR)/net/mpls/mpls_router.ko
> + AUTOLOAD:=$(call AutoLoad,30,mpls_router mpls_iptunnel mpls_gso)
> + DEPENDS:=+ at KERNEL_MPLS + at KERNEL_LWTUNNEL
> +endef
Since this is causing some code to be built into the kernel image,
please do a measurement of how much it adds.
Thanks,
- Felix
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list