Skip to contentSkip to conversation

RTNet builtin kernel - Fix IP protocols

PATCH Applied François Legal 2 participants 2 messages Apr 3, 2020 – Apr 6, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 RTNet builtin kernel - Fix IP protocols

From: François LEGAL <[email protected]>

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

Subject: [PATCH] RTNet builtin kernel - Fix IP protocols

---
 kernel/drivers/net/stack/ipv4/Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
kernel/drivers/net/stack/ipv4/Makefile +4 -4
index f0fcd36..7d45d23 100644
@@ -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

--
2.1.4

Applied
#1 lore raw
Quoted 3 lines · François Legal via Xenomai

From: François LEGAL <[email protected]>

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.

Quoted 4 lines

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

Quoted 28 lines
---
  kernel/drivers/net/stack/ipv4/Makefile | 8 ++++----
  1 file changed, 4 insertions(+), 4 deletions(-)
kernel/drivers/net/stack/ipv4/Makefile +4 -4
index f0fcd36..7d45d23 100644
@@ -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
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux