From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B3AEEA0548; Wed, 15 Jun 2022 15:13:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5C2E640F1A; Wed, 15 Jun 2022 15:13:56 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 4A44540F19 for ; Wed, 15 Jun 2022 15:13:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655298835; x=1686834835; h=from:to:cc:subject:date:message-id; bh=17C0ozclvBhFGq1iQdG2OdlnXefqJXsDGTBBExv56JM=; b=jyboYVhWWPNqZ+iRD/befGqXBSYMphDQXEzcON23cYF0y5REedXdBr8k Q6G/xtcZ370MOSnxiH0ziDpRv9/bVcP93C4jCapQio3FSlQo2NZX/WdkT mslzP3ppj+/Wfliit3k5YeLgMU3Vb0RYmh78q+X+ltMRJvbJHH+8ymBXS Y/0Z21n3tuyXoggslzuxrNMctcqxDZ8LsnR8RQqwnCpYkzV+XTaxw7BzA qhSByuMEME6tSDQMGPjRtzEKHjGpqUSV8mCUKwZVtYJ49hQBdPE7NuOSx 1CFakElepA3xuE/t0sdtHNaWNF6KeVvtX1ONzbdHzffPKGLBvSXkL2Dbp g==; X-IronPort-AV: E=McAfee;i="6400,9594,10378"; a="279673450" X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="279673450" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Jun 2022 06:13:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,302,1647327600"; d="scan'208";a="831034120" Received: from silpixa00400308.ir.intel.com ([10.237.214.95]) by fmsmga006.fm.intel.com with ESMTP; 15 Jun 2022 06:13:52 -0700 From: Jakub Wysocki To: dev@dpdk.org Cc: kai.ji@intel.com, roy.fan.zhang@intel.com, Jakub Wysocki Subject: [PATCH] crypto/scheduler: fix qp_id in scheduler failover Date: Wed, 15 Jun 2022 14:13:49 +0100 Message-Id: <20220615131349.20315-1-jakubx.wysocki@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This commit fixes wrong qp_id value in cryptodev scheduler in failover mode. Fixes: 37f075dad1e9 ("crypto/scheduler: add fail-over scheduling mode") Cc: roy.fan.zhang@intel.com Signed-off-by: Jakub Wysocki --- drivers/crypto/scheduler/scheduler_failover.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/crypto/scheduler/scheduler_failover.c b/drivers/crypto/scheduler/scheduler_failover.c index 5023577ef8..247aeb2f22 100644 --- a/drivers/crypto/scheduler/scheduler_failover.c +++ b/drivers/crypto/scheduler/scheduler_failover.c @@ -157,6 +157,9 @@ scheduler_start(struct rte_cryptodev *dev) ((struct scheduler_qp_ctx *) dev->data->queue_pairs[i])->private_qp_ctx; + sched_ctx->workers[PRIMARY_WORKER_IDX].qp_id = i; + sched_ctx->workers[SECONDARY_WORKER_IDX].qp_id = i; + rte_memcpy(&qp_ctx->primary_worker, &sched_ctx->workers[PRIMARY_WORKER_IDX], sizeof(struct scheduler_worker)); -- 2.17.1 -------------------------------------------------------------- Intel Research and Development Ireland Limited Registered in Ireland Registered Office: Collinstown Industrial Park, Leixlip, County Kildare Registered Number: 308263 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.