app/crypto-perf: add IPsec operations population routine
authorAnoob Joseph <anoobj@marvell.com>
Fri, 4 Mar 2022 10:40:38 +0000 (16:10 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 4 Mar 2022 10:55:08 +0000 (11:55 +0100)
commitfa609d9426c6f73dc51494f4f6226ad18ffa2ee8
treeb17577d82820149c0251ffc66b03b103d6ddcfe5
parent1df045712db1357fd17a5c10e69cd1dda1d2c3f0
app/crypto-perf: add IPsec operations population routine

Ops population functions are called in datapath. Keeping it common for
PDCP & DOCSIS would mean ops population would have additional
conditional checks causing the throughput reported to be lower than what
the PMD is capable of.

Separate out routine for IPsec cases and split vector population and op
preparation into two loops to allow 2 rte_rdtsc_precise() calls to
capture cycles consumed for memcpying the vector. Checking the cycle
count from the loop would mean more calls to the same API.

Signed-off-by: Anoob Joseph <anoobj@marvell.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
app/test-crypto-perf/cperf_ops.c
app/test-crypto-perf/cperf_test_latency.c