diff mbox

[OpenWrt-Devel,RFC,1/2] config: add MPLS and LWTunnel support

Message ID 1454192087-11405-1-git-send-email-avalentin@marcant.net
State Rejected
Headers show

Commit Message

André Valentin Jan. 30, 2016, 10:14 p.m. UTC
Add support for MPLS and Lighweight tunnel to openwrt kernel config.

Signed-off-by: André Valentin <avalentin@marcant.net>
---
 config/Config-kernel.in | 8 ++++++++
 1 file changed, 8 insertions(+)

Comments

Felix Fietkau Jan. 30, 2016, 10:19 p.m. UTC | #1
On 2016-01-30 23:14, André Valentin wrote:
> Add support for MPLS and Lighweight tunnel to openwrt kernel config.
> 
> Signed-off-by: André Valentin <avalentin@marcant.net>
> ---
>  config/Config-kernel.in | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/config/Config-kernel.in b/config/Config-kernel.in
> index c93bbde..0bc1687 100644
> --- a/config/Config-kernel.in
> +++ b/config/Config-kernel.in
> @@ -184,6 +184,14 @@ config KERNEL_MAGIC_SYSRQ
>  	bool "Compile the kernel with SysRq support"
>  	default y
>  
> +config KERNEL_LWTUNNEL
> +	bool "Compile the kernel with LWTUNNEL support"
> +	default n
> +
> +config KERNEL_MPLS
> +	bool "Compile the kernel with MPLS support"
> +	default n
> +
Putting these here and selecting them from your kmod-* package doesn't
make any sense. Please stick to using KCONFIG.

- Felix
André Valentin Jan. 30, 2016, 11:42 p.m. UTC | #2
Hi Felix,

thanks for taking a look. I had the problem that without this selection the
iproute2 "ip route" does not support the new route "encap" parameter. It seems
to detect the support in the kernel. Same is with GRE, also available for LWTUNNEL,
but it is now missing in iproute2. GRE is build as a module.
I'm pretty sure I cleaned everything by removing every stuff in build_dir/target*
Do you have an idea how to solve this?

Kind regards,

André


Am 30.01.2016 um 23:19 schrieb Felix Fietkau:
> On 2016-01-30 23:14, André Valentin wrote:
>> Add support for MPLS and Lighweight tunnel to openwrt kernel config.
>>
>> Signed-off-by: André Valentin <avalentin@marcant.net>
>> ---
>>  config/Config-kernel.in | 8 ++++++++
>>  1 file changed, 8 insertions(+)
>>
>> diff --git a/config/Config-kernel.in b/config/Config-kernel.in
>> index c93bbde..0bc1687 100644
>> --- a/config/Config-kernel.in
>> +++ b/config/Config-kernel.in
>> @@ -184,6 +184,14 @@ config KERNEL_MAGIC_SYSRQ
>>  	bool "Compile the kernel with SysRq support"
>>  	default y
>>  
>> +config KERNEL_LWTUNNEL
>> +	bool "Compile the kernel with LWTUNNEL support"
>> +	default n
>> +
>> +config KERNEL_MPLS
>> +	bool "Compile the kernel with MPLS support"
>> +	default n
>> +
> Putting these here and selecting them from your kmod-* package doesn't
> make any sense. Please stick to using KCONFIG.
> 
> - Felix
>
André Valentin Jan. 31, 2016, 12:20 a.m. UTC | #3
Hi!

Am 31.01.2016 um 00:42 schrieb Andre Valentin:
> Hi Felix,
> 
> thanks for taking a look. I had the problem that without this selection the
> iproute2 "ip route" does not support the new route "encap" parameter. It seems
> to detect the support in the kernel. Same is with GRE, also available for LWTUNNEL,
> but it is now missing in iproute2. GRE is build as a module.
> I'm pretty sure I cleaned everything by removing every stuff in build_dir/target*
> Do you have an idea how to solve this?

I will do a full clean and test the newly build iproute2 tomorrow again.

Kind regards,

André
diff mbox

Patch

diff --git a/config/Config-kernel.in b/config/Config-kernel.in
index c93bbde..0bc1687 100644
--- a/config/Config-kernel.in
+++ b/config/Config-kernel.in
@@ -184,6 +184,14 @@  config KERNEL_MAGIC_SYSRQ
 	bool "Compile the kernel with SysRq support"
 	default y
 
+config KERNEL_LWTUNNEL
+	bool "Compile the kernel with LWTUNNEL support"
+	default n
+
+config KERNEL_MPLS
+	bool "Compile the kernel with MPLS support"
+	default n
+
 config KERNEL_COREDUMP
 	bool