[dpdk-dev] [PATCH] examples/ipsec-secgw: fix corner case for spi value

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Wed Jan 17 17:54:13 CET 2018



> -----Original Message-----
> From: Nicolau, Radu
> Sent: Tuesday, January 16, 2018 11:02 AM
> To: Akhil Goyal <akhil.goyal at nxp.com>; dev at dpdk.org
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>;
> hemant.agrawal at nxp.com; Gonzalez Monroy, Sergio
> <sergio.gonzalez.monroy at intel.com>
> Subject: RE: [PATCH] examples/ipsec-secgw: fix corner case for spi value
> 
> 
> 
> > -----Original Message-----
> > From: Akhil Goyal [mailto:akhil.goyal at nxp.com]
> > Sent: Thursday, January 11, 2018 11:56 AM
> > To: dev at dpdk.org
> > Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>;
> > hemant.agrawal at nxp.com; Gonzalez Monroy, Sergio
> > <sergio.gonzalez.monroy at intel.com>; Nicolau, Radu
> > <radu.nicolau at intel.com>; Akhil Goyal <akhil.goyal at nxp.com>
> > Subject: [PATCH] examples/ipsec-secgw: fix corner case for spi value
> >
> > application is using index 0 of SA table as error, with current value
> > of
> > IPSEC_SA_MAX_ENTRIES(128) it can not support SA with spi = 128, as it
> > uses sa_idx = 0 in the SA table.
> >
> > With this patch, sa_idx = 0 can also be used.
> >
> > PS: spi = 0 is an invalid SPI and application throws error for it.
> >
> > Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample
> > application")
> >
> > Signed-off-by: Akhil Goyal <akhil.goyal at nxp.com>
> > ---
> Acked-by: Radu Nicolau <radu.nicolau at intel.com>

CC'ing stable ML.

Applied to dpdk-next-crypto.
Thanks,

Pablo


More information about the dev mailing list