From 8ac86b24a2363072c84e0eb1b2d7e40dfd9f281f Mon Sep 17 00:00:00 2001 From: paul luse Date: Fri, 10 May 2019 18:12:08 -0400 Subject: [PATCH] env_dpdk: set crypto log level to ERR This will eliminate a lot of unnecessary verbose messages, especially from cryptodev. Change-Id: I000adfa524c86f6379ebab4ba2087a8d6fabfe5f Signed-off-by: paul luse Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/454099 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk Reviewed-by: Jim Harris --- lib/env_dpdk/init.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/env_dpdk/init.c b/lib/env_dpdk/init.c index 400da1957..e087e1479 100644 --- a/lib/env_dpdk/init.c +++ b/lib/env_dpdk/init.c @@ -306,6 +306,14 @@ spdk_build_eal_cmdline(const struct spdk_env_opts *opts) return -1; } + /* Lower default CRYPTO loglevel to RTE_LOG_ERR to avoid a ton of init msgs. + * This can be overridden by specifying the same option in opts->env_context + */ + args = spdk_push_arg(args, &argcount, strdup("--log-level=lib.cryptodev:5")); + if (args == NULL) { + return -1; + } + /* `user1` log type is used by rte_vhost, which prints an INFO log for each received * vhost user message. We don't want that. The same log type is also used by a couple * of other DPDK libs, but none of which we make use right now. If necessary, this can