]> git.droids-corp.org - dpdk.git/commit
crypto/cnxk: improve fast path
authorAnoob Joseph <anoobj@marvell.com>
Mon, 20 Jun 2022 07:18:06 +0000 (12:48 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 21 Jun 2022 18:04:50 +0000 (20:04 +0200)
commit4c30c94a00ab3f2aae917cf14751d8057c1f99d9
treebab81b5b9a2dba77b01f940aafb7dc949081395c
parent532963b80707c5f5c5852920b99ecf728d03a874
crypto/cnxk: improve fast path

Remove SA & packet accesses in dequeue path by adjusting the headers in
the enqueue path for outbound packets. For inbound packets, add extra
esn_en flag in the SA to minimize cache line accesses in the datapath.

Also, use seq_lo for IPID. IPID just need to be unique. Instead of
incrementing per packet, use ESN low bits.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
drivers/crypto/cnxk/cn9k_cryptodev_ops.c
drivers/crypto/cnxk/cn9k_ipsec.c
drivers/crypto/cnxk/cn9k_ipsec.h
drivers/crypto/cnxk/cn9k_ipsec_la_ops.h
drivers/crypto/cnxk/cnxk_cryptodev_ops.h