ipsec: include high order bytes of ESN in packet length
authorLukasz Bartosik <lbartosik@marvell.com>
Wed, 5 Jun 2019 15:31:27 +0000 (17:31 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 5 Jul 2019 13:28:14 +0000 (15:28 +0200)
commit8734e669fc175bf652020bc30d67d99a7073f1a4
treee93ab2e0d01a2713ff832efd6e6f78143366d57e
parente95291f01966cbb2b7cd0985cc0edd40eda75a1d
ipsec: include high order bytes of ESN in packet length

When esn is used then high-order 32 bits are included in ICV
calculation however are not transmitted. Update packet length
to be consistent with auth data offset and length before crypto
operation. High-order 32 bits of esn will be removed from packet
length in crypto post processing.

Signed-off-by: Lukasz Bartosik <lbartosik@marvell.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
lib/librte_ipsec/esp_inb.c
lib/librte_ipsec/esp_outb.c
lib/librte_ipsec/sa.c
lib/librte_ipsec/sa.h