From: Thierry Herbelot <thierry.herbelot@6wind.com>
To: Hemant Agrawal <hemant.agrawal@nxp.com>, dev@dpdk.org
Cc: akhil.goyal@nxp.com, stable@dpdk.org, vipin.varghese@intel.com
Subject: Re: [dpdk-dev] [PATCH] app/proc-info: fix compilation with no security
Date: Fri, 18 Oct 2019 10:09:28 +0200 [thread overview]
Message-ID: <4a08d6c1-9ae8-a75d-7bb1-adeb9c2feeec@6wind.com> (raw)
In-Reply-To: <20191018075613.2784-2-hemant.agrawal@nxp.com>
On 10/18/19 9:56 AM, Hemant Agrawal wrote:
> This patch fixes the compilation issues when
> RTE_LIBRTE_SECURITY is disabled.
>
> Fixes: 8a37f37fc243 ("app/procinfo: add --show-port")
> Cc: stable@dpdk.org
> Cc: vipin.varghese@intel.com
>
> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
> ---
> app/proc-info/main.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/app/proc-info/main.c b/app/proc-info/main.c
> index a3f854b89..8cf501d06 100644
> --- a/app/proc-info/main.c
> +++ b/app/proc-info/main.c
> @@ -30,7 +30,9 @@
> #include <rte_string_fns.h>
> #include <rte_metrics.h>
> #include <rte_cycles.h>
> +#ifdef RTE_LIBRTE_SECURITY
> #include <rte_security.h>
> +#endif
> #include <rte_cryptodev.h>
> #include <rte_tm.h>
> #include <rte_hexdump.h>
> @@ -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, "");
>
Acked-by: Thierry Herbelot <thierry.herbelot@6wind.com>
--
Thierry Herbelot
6WIND
Senior Software Engineer
next prev parent reply other threads:[~2019-10-18 8:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-18 7:56 [dpdk-dev] [PATCH] test/crypto: fix compilation issue without security Hemant Agrawal
2019-10-18 7:56 ` [dpdk-dev] [PATCH] app/proc-info: fix compilation with no security Hemant Agrawal
2019-10-18 8:09 ` Thierry Herbelot [this message]
2019-10-23 14:46 ` Akhil Goyal
2019-10-23 14:48 ` Akhil Goyal
2019-10-18 7:56 ` [dpdk-dev] [PATCH] crypto/dpaa_sec: enable compilation without security Hemant Agrawal
2019-10-18 8:11 ` Thierry Herbelot
2019-10-23 14:45 ` Akhil Goyal
2019-10-18 8:07 ` [dpdk-dev] [PATCH] test/crypto: fix compilation issue " Thierry Herbelot
2019-10-23 14:48 ` Akhil Goyal
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=4a08d6c1-9ae8-a75d-7bb1-adeb9c2feeec@6wind.com \
--to=thierry.herbelot@6wind.com \
--cc=akhil.goyal@nxp.com \
--cc=dev@dpdk.org \
--cc=hemant.agrawal@nxp.com \
--cc=stable@dpdk.org \
--cc=vipin.varghese@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).