drivers/crypto: fix IPsec TTL decrement option
authorGagandeep Singh <g.singh@nxp.com>
Thu, 18 Nov 2021 07:00:18 +0000 (12:30 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 23 Nov 2021 18:44:34 +0000 (19:44 +0100)
commit0aa5986c280f34893b2a6bacf044cff31484fe0c
tree2ecfb5fa70e739402072121310d356e6d26902e0
parent150837248fc557895b53f0f44c7281a555bc6045
drivers/crypto: fix IPsec TTL decrement option

dpaa, dpaa2 and caam_jr drivers decrement the inner IP header
TTL for all packets and ignoring the dec_ttl option of SA.

In this patch, using the dec_ttl to decide to decrement the
packets inner IP header TTL or not.

Fixes: 0a23d4b6f4c2 ("crypto/dpaa2_sec: support protocol offload IPsec")
Fixes: 3e33486f80a5 ("crypto/caam_jr: add security offload")
Fixes: 1f14d500bce1 ("crypto/dpaa_sec: support IPsec protocol offload")
Cc: stable@dpdk.org
Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/crypto/caam_jr/caam_jr.c
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c
drivers/crypto/dpaa_sec/dpaa_sec.c