[dpdk-dev] [PATCH 5/7] app/proc-info: hide crypto-context display
Stephen Hemminger
stephen at networkplumber.org
Wed May 6 21:37:39 CEST 2020
If crypto context is not present, no point in displaying it.
Also fix spelling error.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
app/proc-info/main.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/app/proc-info/main.c b/app/proc-info/main.c
index 2f74cbf462d5..bb0e0cbe9e6e 100644
--- a/app/proc-info/main.c
+++ b/app/proc-info/main.c
@@ -779,12 +779,11 @@ show_port(void)
}
}
- printf(" - cyrpto context\n");
#ifdef RTE_LIBRTE_SECURITY
void *p_ctx = rte_eth_dev_get_sec_ctx(i);
- printf("\t -- security context - %p\n", p_ctx);
-
if (p_ctx) {
+ printf(" - crypto context\n");
+ printf("\t -- security context - %p\n", p_ctx);
printf("\t -- size %u\n",
rte_security_session_get_size(p_ctx));
const struct rte_security_capability *s_cap =
--
2.20.1
More information about the dev
mailing list