From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by dpdk.org (Postfix) with ESMTP id 658852BE1 for ; Wed, 23 May 2018 14:11:13 +0200 (CEST) Received: by mail-wr0-f193.google.com with SMTP id w3-v6so18341331wrl.12 for ; Wed, 23 May 2018 05:11:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=IdnfnLn7D7AA/GHcBDvPndDDlKl6cHmJZ/GJVdA+yME=; b=W10XrnQlM3cK590YHGUR4U+o2V+yF6Qe7IKUBXza8SQIbXJq0mOugxp59bNO7fc+jN cgpeuqyKvHMiDqooCLvmW/Ec/xX1upnIaRKf1Ed434J2Z9lvRETg8LaPirHML72Zs/fe 3azbAYxoTxD9aZlR3/MfWnk0vLQ9znbe9AI6HBSq0Q2vNdDZ4LmN/PbdPodJmF9FE8gP oSNvJQIaNm6tme+BckwlU+KRxVisYNB3iEJvXytU/pbFqim2bl+Id+Xg9IxPFkTIlaIn 827aKMnfd/b2NeQ9BmZbqpojK0shUGfwrI8sOk5mHdrPBbrtR8nThyLrZvbW3P1EE3Xf sZdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=IdnfnLn7D7AA/GHcBDvPndDDlKl6cHmJZ/GJVdA+yME=; b=ueJKNAsX/Bnt6c9/Y5S4IX7vY1PXbUC+l8zCQkZZPRKu6lIVL5PrAFSLlGqhp1qMAt CPMMv6+kA5JUk62Z2dv97klsvkOkOFYjQtm8+XIJ6Zb3ipVjBrGfLpkyO28T22Otzdwq XomvBbhYySmZUp0o0JYLVcXmhnbOKWchgxpgKdUqqafEbJtynUp+bvpN+t81iCPD2KPY DL2utjjzr9s7A7AqVYJ5rhgCWAtANMfTAxDGQxJ1EWcSU4ZsdXygeXFyXoGpXROrp/x2 9xCeJsF4b8MQ1bL1y9AR37YHVtgIHS1UsnnB22u67LGn/uCnURKFZayVYPBETchHgP/x D/KA== X-Gm-Message-State: ALKqPwcX0D4wFaTLzuAq2kq1V5fzFXqEFZ8PPeasv+CvbyVFHFMH0Vb5 AkOympKzH5xpju1DVBcIxu7+vor+kxQ= X-Google-Smtp-Source: AB8JxZpQl3dp/C+5sRoGb7jH0etDh7mK+CV6P0uylohc4iRembWngIdNPELhJW+q1CRRqjYRs5MZHg== X-Received: by 2002:adf:9893:: with SMTP id w19-v6mr2434921wrb.34.1527077473112; Wed, 23 May 2018 05:11:13 -0700 (PDT) Received: from localhost ([2a00:23c5:be9a:5200:ce4c:82c0:d567:ecbb]) by smtp.gmail.com with ESMTPSA id x24-v6sm1576132wmh.18.2018.05.23.05.11.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 05:11:12 -0700 (PDT) From: luca.boccassi@gmail.com To: Fan Zhang Cc: Pablo de Lara , dpdk stable Date: Wed, 23 May 2018 13:09:46 +0100 Message-Id: <20180523121010.8385-35-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180523121010.8385-1-luca.boccassi@gmail.com> References: <20180516101323.2234-2-luca.boccassi@gmail.com> <20180523121010.8385-1-luca.boccassi@gmail.com> Subject: [dpdk-stable] patch 'crypto/scheduler: fix possible duplicated ring names' has been queued to stable release 18.02.2 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 12:11:13 -0000 Hi, FYI, your patch has been queued to stable release 18.02.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 05/25/18. So please shout if anyone has objections. Thanks. Luca Boccassi --- >>From 8a3d07e9de488daf3b9be33ea88625f402a79053 Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Wed, 16 May 2018 14:10:32 +0100 Subject: [PATCH] crypto/scheduler: fix possible duplicated ring names [ upstream commit 91b9c522d61c752708db7005452ebb4b05baff7a ] This patch fixes the possible duplicated ring names in multi-core scheduler. Originally two or more multi-core schedulers may have same worker ring names thus will cause initialization error. Fixes: 4c07e0552f0a ("crypto/scheduler: add multicore scheduling mode") Signed-off-by: Fan Zhang Acked-by: Pablo de Lara --- drivers/crypto/scheduler/scheduler_multicore.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/scheduler/scheduler_multicore.c b/drivers/crypto/scheduler/scheduler_multicore.c index 555c405c1..b4c29d72f 100644 --- a/drivers/crypto/scheduler/scheduler_multicore.c +++ b/drivers/crypto/scheduler/scheduler_multicore.c @@ -347,7 +347,8 @@ scheduler_create_private_ctx(struct rte_cryptodev *dev) for (i = 0; i < sched_ctx->nb_wc; i++) { char r_name[16]; - snprintf(r_name, sizeof(r_name), MC_SCHED_ENQ_RING_NAME_PREFIX "%u", i); + snprintf(r_name, sizeof(r_name), MC_SCHED_ENQ_RING_NAME_PREFIX + "%u_%u", dev->data->dev_id, i); mc_ctx->sched_enq_ring[i] = rte_ring_lookup(r_name); if (!mc_ctx->sched_enq_ring[i]) { mc_ctx->sched_enq_ring[i] = rte_ring_create(r_name, @@ -360,7 +361,8 @@ scheduler_create_private_ctx(struct rte_cryptodev *dev) goto exit; } } - snprintf(r_name, sizeof(r_name), MC_SCHED_DEQ_RING_NAME_PREFIX "%u", i); + snprintf(r_name, sizeof(r_name), MC_SCHED_DEQ_RING_NAME_PREFIX + "%u_%u", dev->data->dev_id, i); mc_ctx->sched_deq_ring[i] = rte_ring_lookup(r_name); if (!mc_ctx->sched_deq_ring[i]) { mc_ctx->sched_deq_ring[i] = rte_ring_create(r_name, -- 2.14.2