From: Hemant Agrawal Date: Fri, 6 Sep 2019 10:44:34 +0000 (+0530) Subject: test/event_crypto: no service core when HW support available X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=aa026482baf9;p=dpdk.git 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 Acked-by: Abhinandan Gujjar --- diff --git a/app/test/test_event_crypto_adapter.c b/app/test/test_event_crypto_adapter.c index e7bf809783..ed8a58d32b 100644 --- a/app/test/test_event_crypto_adapter.c +++ b/app/test/test_event_crypto_adapter.c @@ -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();