From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] netstress: load dccp module manually
Date: Tue, 27 Feb 2018 08:05:14 +0100 [thread overview]
Message-ID: <20180227070514.GC876@x230> (raw)
In-Reply-To: <1519647255-11671-1-git-send-email-alexey.kodanev@oracle.com>
> 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>
next prev parent reply other threads:[~2018-02-27 7:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-26 12:14 [LTP] [PATCH] netstress: load dccp module manually Alexey Kodanev
2018-02-27 7:05 ` Petr Vorel [this message]
2018-03-01 15:29 ` Alexey Kodanev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180227070514.GC876@x230 \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.