[dpdk-dev] [PATCH v4 7/9] examples/ipsec-secgw: make data-path to use ipsec library

Akhil Goyal akhil.goyal at nxp.com
Fri Dec 21 16:23:47 CET 2018



On 12/14/2018 10:10 PM, Konstantin Ananyev wrote:
> diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c
> index 04eb8bce8..49da966a3 100644
> --- a/examples/ipsec-secgw/sa.c
> +++ b/examples/ipsec-secgw/sa.c
> @@ -1164,10 +1164,15 @@ int
>   inbound_sa_check(struct sa_ctx *sa_ctx, struct rte_mbuf *m, uint32_t sa_idx)
>   {
>   	struct ipsec_mbuf_metadata *priv;
> +	struct ipsec_sa *sa;
>   
>   	priv = get_priv(m);
> +	sa = priv->sa;
> +	if (sa != NULL)
> +		return (sa_ctx->sa[sa_idx].spi == sa->spi);
>   
> -	return (sa_ctx->sa[sa_idx].spi == priv->sa->spi);
> +	RTE_LOG(ERR, IPSEC, "SA not saved in private data\n");
> +	return 0;
>   }
I believe this is a fix and not related to this patchset. Should go as a 
fix and CC to stable.


More information about the dev mailing list