Skip to content

Commit

Permalink
net/iavf: update IPsec ESN values when updating session
Browse files Browse the repository at this point in the history
[ upstream commit eb944b5 ]

When updating an ingress session update the internal values before
making the virtual channel request.

Fixes: 6bc987e ("net/iavf: support IPsec inline crypto")

Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
  • Loading branch information
rnicolau authored and kevintraynor committed Oct 11, 2022
1 parent 30fc18b commit fc56f98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/net/iavf/iavf_ipsec_crypto.c
Expand Up @@ -893,11 +893,12 @@ iavf_ipsec_crypto_session_update(void *device,
* iavf_security_session for outbound SA for use
* in *iavf_ipsec_crypto_pkt_metadata_set* function.
*/
iavf_sess->esn.hi = conf->ipsec.esn.hi;
iavf_sess->esn.low = conf->ipsec.esn.low;
if (iavf_sess->direction == RTE_SECURITY_IPSEC_SA_DIR_INGRESS)
rc = iavf_ipsec_crypto_sa_update_esn(adapter,
iavf_sess);
else
iavf_sess->esn.hi = conf->ipsec.esn.hi;

}

return rc;
Expand Down

0 comments on commit fc56f98

Please sign in to comment.