[PATCH] RTNet builtin kernel - Fix IP protocols

Jan Kiszka jan.kiszka at siemens.com
Mon Apr 6 07:57:49 CEST 2020


On 03.04.20 10:37, François Legal via Xenomai wrote:
> From: François LEGAL <devel at thom.fr.eu.org>
> 
> The link order of IP protocols does not allow to do UDP/TCP over IP with RTNet builtin as protocol list gets zeroed by af_inet when initializing

Thanks, applied.

Actually, that rt_inet_protocols clearing in rt_ipv4_proto_init is 
redundant because that variable is global, thus zero-initialized anyway. 
Still, the ordering should be as you patch now put it.

> 
> Signed-off-by: François LEGAL <devel at thom.fr.eu.org>
> 
> Subject: [PATCH] RTNet builtin kernel - Fix IP protocols

This line is wrong here. The email already carries the subject, and this 
will only show up at the wrong place in the commit log.

Jan

> ---
>   kernel/drivers/net/stack/ipv4/Makefile | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/kernel/drivers/net/stack/ipv4/Makefile b/kernel/drivers/net/stack/ipv4/Makefile
> index f0fcd36..7d45d23 100644
> --- a/kernel/drivers/net/stack/ipv4/Makefile
> +++ b/kernel/drivers/net/stack/ipv4/Makefile
> @@ -1,9 +1,5 @@
>   ccflags-y += -Idrivers/xenomai/net/stack/include
>   
> -obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4_UDP) += udp/
> -
> -obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4_TCP) += tcp/
> -
>   obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4) += rtipv4.o
>   
>   rtipv4-y := \
> @@ -16,4 +12,8 @@ rtipv4-y := \
>   	ip_output.o \
>   	ip_fragment.o
>   
> +obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4_UDP) += udp/
> +
> +obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4_TCP) += tcp/
> +
>   rtipv4-$(CONFIG_XENO_DRIVERS_NET_RTIPV4_ICMP) += icmp.o
> 

-- 
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux



More information about the Xenomai mailing list