From: Hemant Agrawal Date: Fri, 18 Oct 2019 07:56:12 +0000 (+0530) Subject: app/procinfo: fix build without rte_security X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=b0b9116f7237060b52503dee2112142ed94d358b;p=dpdk.git app/procinfo: fix build without rte_security This patch fixes the compilation issues when RTE_LIBRTE_SECURITY is disabled. Fixes: 8a37f37fc243 ("app/procinfo: add --show-port") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Acked-by: Thierry Herbelot Acked-by: Akhil Goyal --- diff --git a/app/proc-info/main.c b/app/proc-info/main.c index a3f854b898..8cf501d063 100644 --- a/app/proc-info/main.c +++ b/app/proc-info/main.c @@ -30,7 +30,9 @@ #include #include #include +#ifdef RTE_LIBRTE_SECURITY #include +#endif #include #include #include @@ -733,6 +735,7 @@ 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); @@ -751,6 +754,7 @@ show_port(void) s_cap->crypto_capabilities->op); } } +#endif } STATS_BDR_STR(50, "");