test/cryptodev: ensure structs are updated in unison
PATCH 1/1 test/cryptodev: ensure structs are updated in unison
The structs are directly indexed for generating standard vectors. Add asserts to make sure structs are not updated in isolation.
Signed-off-by Anoob Joseph <[email protected]>
--- app/test/test_cryptodev.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
app/test/test_cryptodev.c +11 -0
@@ -873,6 +873,17 @@ pdcp_proto_testsuite_setup(void)RTE_CRYPTO_AUTH_ZUC_EIA3 }; +RTE_BUILD_BUG_ON (RTE_DIM (pdcp_test_params) !=RTE_DIM (pdcp_test_auth_key)); +RTE_BUILD_BUG_ON (RTE_DIM (pdcp_test_params) !=RTE_DIM (pdcp_test_bearer)); +RTE_BUILD_BUG_ON (RTE_DIM (pdcp_test_params) !=RTE_DIM (pdcp_test_crypto_key)); +RTE_BUILD_BUG_ON (RTE_DIM (pdcp_test_params) !=RTE_DIM (pdcp_test_data_in)); +RTE_BUILD_BUG_ON (RTE_DIM (pdcp_test_params) !=RTE_DIM (pdcp_test_data_in_len)); +RTE_BUILD_BUG_ON (RTE_DIM (pdcp_test_params) !=RTE_DIM (pdcp_test_data_out)); +RTE_BUILD_BUG_ON (RTE_DIM (pdcp_test_params) !=RTE_DIM (pdcp_test_data_sn_size)); +RTE_BUILD_BUG_ON (RTE_DIM (pdcp_test_params) !=RTE_DIM (pdcp_test_hfn)); +RTE_BUILD_BUG_ON (RTE_DIM (pdcp_test_params) !=RTE_DIM (pdcp_test_hfn_threshold)); +RTE_BUILD_BUG_ON (RTE_DIM (pdcp_test_params) !=RTE_DIM (pdcp_test_packet_direction)); +rte_cryptodev_info_get (dev_id, &dev_info); if (!(dev_info.feature_flags & RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO) ||
--
2.25.1
Quoted 6 lines
Subject: [PATCH] test/cryptodev: ensure structs are updated in unison
The structs are directly indexed for generating standard vectors. Add asserts to make sure structs are not updated in isolation.
Signed-off-by Anoob Joseph <[email protected]>
Acked-by Akhil Goyal <[email protected]>
Applied to dpdk-next-crypto
Thanks.