test/event_crypto: no service core when HW support available
If HW support is available, service core shall not come into play by default. This shall be for both FWD/NEW modes. Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
This commit is contained in:
parent
083a59695e
commit
aa026482ba
@ -293,7 +293,8 @@ test_sessionless_with_op_forward_mode(void)
|
||||
ret = rte_event_crypto_adapter_caps_get(TEST_ADAPTER_ID, evdev, &cap);
|
||||
TEST_ASSERT_SUCCESS(ret, "Failed to get adapter capabilities\n");
|
||||
|
||||
if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD))
|
||||
if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) &&
|
||||
!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW))
|
||||
map_adapter_service_core();
|
||||
|
||||
TEST_ASSERT_SUCCESS(rte_event_crypto_adapter_start(TEST_ADAPTER_ID),
|
||||
@ -313,7 +314,8 @@ test_session_with_op_forward_mode(void)
|
||||
ret = rte_event_crypto_adapter_caps_get(TEST_ADAPTER_ID, evdev, &cap);
|
||||
TEST_ASSERT_SUCCESS(ret, "Failed to get adapter capabilities\n");
|
||||
|
||||
if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD))
|
||||
if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) &&
|
||||
!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW))
|
||||
map_adapter_service_core();
|
||||
|
||||
TEST_ASSERT_SUCCESS(rte_event_crypto_adapter_start(TEST_ADAPTER_ID
|
||||
@ -441,7 +443,7 @@ test_sessionless_with_op_new_mode(void)
|
||||
ret = rte_event_crypto_adapter_caps_get(TEST_ADAPTER_ID, evdev, &cap);
|
||||
TEST_ASSERT_SUCCESS(ret, "Failed to get adapter capabilities\n");
|
||||
|
||||
if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) ||
|
||||
if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) &&
|
||||
!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW))
|
||||
map_adapter_service_core();
|
||||
|
||||
@ -463,7 +465,7 @@ test_session_with_op_new_mode(void)
|
||||
ret = rte_event_crypto_adapter_caps_get(TEST_ADAPTER_ID, evdev, &cap);
|
||||
TEST_ASSERT_SUCCESS(ret, "Failed to get adapter capabilities\n");
|
||||
|
||||
if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) ||
|
||||
if (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) &&
|
||||
!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW))
|
||||
map_adapter_service_core();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user