All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH V2] testsuite/smokey: net: load rtnet module if it has not been loaded
@ 2021-08-05  3:13 Hongzhan Chen
  2021-08-05  5:00 ` Jan Kiszka
  0 siblings, 1 reply; 8+ messages in thread
From: Hongzhan Chen @ 2021-08-05  3:13 UTC (permalink / raw)
  To: xenomai

Before checking net config, rtnet should be ready.

Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>

diff --git a/testsuite/smokey/net_common/setup.c b/testsuite/smokey/net_common/setup.c
index 1badabdfb..a0512b00d 100644
--- a/testsuite/smokey/net_common/setup.c
+++ b/testsuite/smokey/net_common/setup.c
@@ -408,6 +408,10 @@ int smokey_net_setup(const char *driver, const char *intf, int tested_config,
 	struct sockaddr_in *in_peer = vpeer;
 	struct sockaddr *peer = vpeer;
 
+	err = smokey_net_modprobe(MODID_RTNET);
+	if (err < 0)
+		return err;
+
 	err = cobalt_corectl(_CC_COBALT_GET_NET_CONFIG,
 			&net_config, sizeof(net_config));
 	if (err == -EINVAL)
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-05  8:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-05  3:13 [PATCH V2] testsuite/smokey: net: load rtnet module if it has not been loaded Hongzhan Chen
2021-08-05  5:00 ` Jan Kiszka
2021-08-05  5:21   ` Chen, Hongzhan
2021-08-05  5:25     ` Jan Kiszka
2021-08-05  5:32       ` Chen, Hongzhan
2021-08-05  5:50         ` Jan Kiszka
2021-08-05  6:12           ` Chen, Hongzhan
2021-08-05  8:10             ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.