* [LTP] [PATCH] netstress: load dccp module manually
@ 2018-02-26 12:14 Alexey Kodanev
2018-02-27 7:05 ` Petr Vorel
0 siblings, 1 reply; 3+ messages in thread
From: Alexey Kodanev @ 2018-02-26 12:14 UTC (permalink / raw)
To: ltp
RHEL7.5 distro blacklisted dccp module by default, so for DCCP tests
we should enable it manually.
Reported-by: Lianwen Sun <sunlw.fnst@cn.fujitsu.com>
Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
---
testcases/network/netstress/netstress.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/testcases/network/netstress/netstress.c b/testcases/network/netstress/netstress.c
index 9751cf6..d8354b8 100644
--- a/testcases/network/netstress/netstress.c
+++ b/testcases/network/netstress/netstress.c
@@ -941,13 +941,19 @@ static void setup(void)
sock_type = SOCK_DGRAM;
protocol = IPPROTO_UDPLITE;
break;
- case TYPE_DCCP:
+ case TYPE_DCCP: {
+ /* dccp module can be blacklisted, load it manually */
+ static const char * const argv[] = {"modprobe", "dccp", NULL};
+
+ if (tst_run_cmd(argv, NULL, NULL, 1))
+ tst_res(TWARN, "Failed to load DCCP module");
+
tst_res(TINFO, "DCCP %s", (client_mode) ? "client" : "server");
fastopen_api = fastopen_sapi = NULL;
sock_type = SOCK_DCCP;
protocol = IPPROTO_DCCP;
service_code = htonl(service_code);
- break;
+ } break;
case TYPE_SCTP:
tst_res(TINFO, "SCTP %s", (client_mode) ? "client" : "server");
fastopen_api = fastopen_sapi = NULL;
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [LTP] [PATCH] netstress: load dccp module manually
2018-02-26 12:14 [LTP] [PATCH] netstress: load dccp module manually Alexey Kodanev
@ 2018-02-27 7:05 ` Petr Vorel
2018-03-01 15:29 ` Alexey Kodanev
0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2018-02-27 7:05 UTC (permalink / raw)
To: ltp
> RHEL7.5 distro blacklisted dccp module by default, so for DCCP tests
> we should enable it manually.
> Reported-by: Lianwen Sun <sunlw.fnst@cn.fujitsu.com>
> Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
> ---
> testcases/network/netstress/netstress.c | 10 ++++++++--
> 1 files changed, 8 insertions(+), 2 deletions(-)
> diff --git a/testcases/network/netstress/netstress.c b/testcases/network/netstress/netstress.c
> index 9751cf6..d8354b8 100644
> --- a/testcases/network/netstress/netstress.c
> +++ b/testcases/network/netstress/netstress.c
> @@ -941,13 +941,19 @@ static void setup(void)
> sock_type = SOCK_DGRAM;
> protocol = IPPROTO_UDPLITE;
> break;
> - case TYPE_DCCP:
> + case TYPE_DCCP: {
> + /* dccp module can be blacklisted, load it manually */
> + static const char * const argv[] = {"modprobe", "dccp", NULL};
> +
> + if (tst_run_cmd(argv, NULL, NULL, 1))
> + tst_res(TWARN, "Failed to load DCCP module");
> +
> tst_res(TINFO, "DCCP %s", (client_mode) ? "client" : "server");
> fastopen_api = fastopen_sapi = NULL;
> sock_type = SOCK_DCCP;
> protocol = IPPROTO_DCCP;
> service_code = htonl(service_code);
> - break;
> + } break;
> case TYPE_SCTP:
> tst_res(TINFO, "SCTP %s", (client_mode) ? "client" : "server");
> fastopen_api = fastopen_sapi = NULL;
Acked-by: Petr Vorel <pvorel@suse.cz>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-01 15:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-26 12:14 [LTP] [PATCH] netstress: load dccp module manually Alexey Kodanev
2018-02-27 7:05 ` Petr Vorel
2018-03-01 15:29 ` Alexey Kodanev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox