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 4283BA0545; Mon, 20 Jun 2022 19:52:14 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D409B4069C; Mon, 20 Jun 2022 19:52:13 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 058EA40151 for ; Mon, 20 Jun 2022 19:52:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655747532; x=1687283532; h=from:to:cc:subject:date:message-id; bh=jgmplDOv2jrv08QkInBCZrtORueS/TD3qdCDEyDt9hU=; b=TWbLGfQW92nGmoHqmNg4FJ3J6LVwYf5MvFH7UBeKv6M+pBA1vFePM01S syx9SaG3Dv9352cp0kCeKurDyIqnzunQtBhL3qwa8bQ9PzFXlshWVxdVt qsCoqBpvIIhJW68QhN4z9aLNY807nUyt9MdYaaATlfNHy6Xzd20fD9FQk TxWLE737r73aozPkyHMk+Z0lwJckm1TdkT2m1C8ANWPDa8U8farzHvljS TyMcKqzqC7J0SKLamaarDCWvV3xC/VwHiOHFoiTjHRjn2ryywTuZuvKpJ roFbDpVZMf5XLIFysok760Oix2k0+TLpdpvDayIv/6Dx06lzyxyR5Byrv g==; X-IronPort-AV: E=McAfee;i="6400,9594,10384"; a="262982358" X-IronPort-AV: E=Sophos;i="5.92,207,1650956400"; d="scan'208";a="262982358" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jun 2022 10:51:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,207,1650956400"; d="scan'208";a="676628838" Received: from silpixa00400308.ir.intel.com ([10.237.214.95]) by FMSMGA003.fm.intel.com with ESMTP; 20 Jun 2022 10:51:34 -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: Mon, 20 Jun 2022 18:51:31 +0100 Message-Id: <20220620175131.17729-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..0855adc841 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.