aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJanne Peltonen <janne.peltonen@nokia.com>2023-04-05 14:38:58 +0300
committerPetri Savolainen <petri.savolainen@nokia.com>2023-04-06 09:11:13 +0300
commitb62057cd37b475d199fc2f55f29ad9dff2f8cb94 (patch)
tree7edfe5c35e3c48105ae07cdb50d6ab4d840934cc /test
parent2ff5d82752e9cc2f6daee64980b646cbd15006fd (diff)
validation: crypto: increase max packet size of packet pool
Configure packet pool with packet size and segment size that are large enough for max length text vector + digest + header and trailer + some headroom. This allows some implementations (odp-dpdk) to pass tests by linearizing a multi-segment packet into one single-segment packet of the same pool even with the large aes-xcbc test vector. Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com> Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'test')
-rw-r--r--test/validation/api/crypto/odp_crypto_test_inp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/validation/api/crypto/odp_crypto_test_inp.c b/test/validation/api/crypto/odp_crypto_test_inp.c
index 93ea6be24..787f75d21 100644
--- a/test/validation/api/crypto/odp_crypto_test_inp.c
+++ b/test/validation/api/crypto/odp_crypto_test_inp.c
@@ -22,7 +22,7 @@ static int full_test;
#define MAX_FAILURE_PRINTS 20
#define PKT_POOL_NUM 64
-#define PKT_POOL_LEN (1 * 1024)
+#define PKT_POOL_LEN 1200 /* enough for a test packet and some headroom */
#define UAREA_SIZE 8
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))