ipsec: optimize SA outbound sequence update
authorPhil Yang <phil.yang@arm.com>
Fri, 24 Apr 2020 04:33:04 +0000 (12:33 +0800)
committerAkhil Goyal <akhil.goyal@nxp.com>
Mon, 11 May 2020 11:17:43 +0000 (13:17 +0200)
commit1a805dee01f329128ed4862a5f835a85cbb914cf
tree42de130d3e161a87e18d3dc3d300da72d7a7b176
parent34e0ec71e4e28a4fd833a6bd36f4f164ab014f59
ipsec: optimize SA outbound sequence update

For SA outbound packets, rte_atomic64_add_return is used to generate
SQN atomically. Use C11 atomics with RELAXED ordering for outbound SQN
update instead of rte_atomic ops which enforce unnecessary barriers on
aarch64.

Signed-off-by: Phil Yang <phil.yang@arm.com>
Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>
Reviewed-by: Gavin Hu <gavin.hu@arm.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_ipsec/ipsec_sqn.h
lib/librte_ipsec/sa.c
lib/librte_ipsec/sa.h