DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/ipsec-secgw: print correct crypto name
@ 2018-02-09 10:40 Radu Nicolau
  2018-02-12  7:02 ` Anoob Joseph
  0 siblings, 1 reply; 3+ messages in thread
From: Radu Nicolau @ 2018-02-09 10:40 UTC (permalink / raw)
  To: dev
  Cc: anoob.joseph, akhil.goyal, declan.doherty, pablo.de.lara.guarch,
	Radu Nicolau

When AES-256 was used aes-128 was printed in the console

Fixes: fa9088849e12 ("examples/ipsec-secgw: support AES 256")
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
 examples/ipsec-secgw/sa.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c
index 21239dd..d9dcc0e 100644
--- a/examples/ipsec-secgw/sa.c
+++ b/examples/ipsec-secgw/sa.c
@@ -631,7 +631,8 @@ print_one_sa_rule(const struct ipsec_sa *sa, int inbound)
 	printf("\tspi_%s(%3u):", inbound?"in":"out", sa->spi);
 
 	for (i = 0; i < RTE_DIM(cipher_algos); i++) {
-		if (cipher_algos[i].algo == sa->cipher_algo) {
+		if (cipher_algos[i].algo == sa->cipher_algo &&
+				cipher_algos[i].key_len == sa->cipher_key_len) {
 			printf("%s ", cipher_algos[i].keyword);
 			break;
 		}
-- 
2.7.5

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: print correct crypto name
  2018-02-09 10:40 [dpdk-dev] [PATCH] examples/ipsec-secgw: print correct crypto name Radu Nicolau
@ 2018-02-12  7:02 ` Anoob Joseph
  2018-02-13 18:08   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Anoob Joseph @ 2018-02-12  7:02 UTC (permalink / raw)
  To: Radu Nicolau, dev; +Cc: akhil.goyal, declan.doherty, pablo.de.lara.guarch



On 09/02/18 16:10, Radu Nicolau wrote:
> When AES-256 was used aes-128 was printed in the console
>
> Fixes: fa9088849e12 ("examples/ipsec-secgw: support AES 256")
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>
> ---
>   examples/ipsec-secgw/sa.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c
> index 21239dd..d9dcc0e 100644
> --- a/examples/ipsec-secgw/sa.c
> +++ b/examples/ipsec-secgw/sa.c
> @@ -631,7 +631,8 @@ print_one_sa_rule(const struct ipsec_sa *sa, int inbound)
>   	printf("\tspi_%s(%3u):", inbound?"in":"out", sa->spi);
>   
>   	for (i = 0; i < RTE_DIM(cipher_algos); i++) {
> -		if (cipher_algos[i].algo == sa->cipher_algo) {
> +		if (cipher_algos[i].algo == sa->cipher_algo &&
> +				cipher_algos[i].key_len == sa->cipher_key_len) {
>   			printf("%s ", cipher_algos[i].keyword);
>   			break;
>   		}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: print correct crypto name
  2018-02-12  7:02 ` Anoob Joseph
@ 2018-02-13 18:08   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2018-02-13 18:08 UTC (permalink / raw)
  To: Radu Nicolau
  Cc: dev, Anoob Joseph, akhil.goyal, declan.doherty, pablo.de.lara.guarch

12/02/2018 08:02, Anoob Joseph:
> 
> On 09/02/18 16:10, Radu Nicolau wrote:
> > When AES-256 was used aes-128 was printed in the console
> >
> > Fixes: fa9088849e12 ("examples/ipsec-secgw: support AES 256")
> > Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
> Acked-by: Anoob Joseph <anoob.joseph@caviumnetworks.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-02-13 18:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-09 10:40 [dpdk-dev] [PATCH] examples/ipsec-secgw: print correct crypto name Radu Nicolau
2018-02-12  7:02 ` Anoob Joseph
2018-02-13 18:08   ` Thomas Monjalon

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).