app/crypto-perf: increase segment size for IPsec
authorGagandeep Singh <g.singh@nxp.com>
Wed, 17 Nov 2021 07:40:31 +0000 (13:10 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Tue, 23 Nov 2021 19:48:04 +0000 (20:48 +0100)
commit8e3c55386f6a3178d627311f734769bd4a881ff1
tree90048b8b731ead7d2cd6377229c4e5d3b2957541
parent02363e1f2c35c9ddf8fa47c955a655a53d280986
app/crypto-perf: increase segment size for IPsec

Application calculates segment size based on buffer size plus
digest size only, But if the operation mode is IPsec then
packet length can be increased by some more bytes depending on
the algorithm.

In this patch, increasing segment size with RTE_PKTMBUF_HEADROOM
when there is no user given segment size.

Fixes: 28dde5da503e ("app/crypto-perf: support lookaside IPsec")

Signed-off-by: Gagandeep Singh <g.singh@nxp.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
app/test-crypto-perf/cperf_options_parsing.c