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

Nicolau, Radu radu.nicolau at intel.com
Tue Jan 16 12:01:43 CET 2018



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


More information about the dev mailing list