From: Shijith Thotton Date: Mon, 12 Apr 2021 08:53:39 +0000 (+0530) Subject: eventdev: fix case to initiate crypto adapter service X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d69123d26620e729ea23a0e11166c3f5859bf6ce;p=dpdk.git eventdev: fix case to initiate crypto adapter service Initiate software crypto adapter service, only if hardware capabilities are not reported. In OP_FORWARD mode, software service is not required to enqueue events if OP_FORWARD capability is supported by the PMD. Fixes: 7901eac3409a ("eventdev: add crypto adapter implementation") Cc: stable@dpdk.org Signed-off-by: Shijith Thotton Acked-by: Abhinandan Gujjar --- diff --git a/lib/librte_eventdev/rte_event_crypto_adapter.c b/lib/librte_eventdev/rte_event_crypto_adapter.c index d903cdd480..e1d38d383d 100644 --- a/lib/librte_eventdev/rte_event_crypto_adapter.c +++ b/lib/librte_eventdev/rte_event_crypto_adapter.c @@ -861,6 +861,7 @@ rte_event_crypto_adapter_queue_pair_add(uint8_t id, * b. OP_NEW mode -> SW Dequeue */ if ((cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW && + !(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) && adapter->mode == RTE_EVENT_CRYPTO_ADAPTER_OP_FORWARD) || (!(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_NEW) && !(cap & RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD) &&