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 2CCAFA0C3F; Wed, 28 Apr 2021 16:28:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 10DAB410E0; Wed, 28 Apr 2021 16:28:37 +0200 (CEST) Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) by mails.dpdk.org (Postfix) with ESMTP id 29E8440147 for ; Wed, 28 Apr 2021 16:28:35 +0200 (CEST) Received: by mail-lf1-f45.google.com with SMTP id 124so18527235lff.5 for ; Wed, 28 Apr 2021 07:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=89XwhvRM8pEaY3Xr3sW2ljI80Cz74jR4CM2++QEEuuc=; b=hwlYtpfvR7TWh+WKyxVDUtt+8pIzfTxjQOXgbJRLOpfpavw1T9i38SMscQKOEd9Ymv AZxA13lXAs4Sw4sbYGerav8zFeK0pEgVQSGnWUj0Mx1esHaVZp6OLFtimJ+CLl5fQm15 P2lCsms4kOIILLzIlVxI7w5GRlwK+6kAXuglaSou8Us5azRLbRK/eH0PjEmWT7y36DCO 5GJAkxR/GQo/h59ebNjdrd0uvAbOLpHgxJ/SgujGV8nX8NBQr2eDCatt7BE+1tCY4paA l8oUdaWWN60fDaOIDz2MFE5Hmjvj7FSY00QHz3kpz3pmTj6gBViTAJ4q04rtyak7W62D Mzew== 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:mime-version:content-transfer-encoding; bh=89XwhvRM8pEaY3Xr3sW2ljI80Cz74jR4CM2++QEEuuc=; b=IF1TsMss6gnsM9RcWy3+EPRBWmdiofKipGKZ41yTcMdoJc6UYvgirTwG/WJoUg9cqS 3B8Scx5r/9k2HTLb5L0umOZh7PznVBM/Eg0vb439w6rDN946WeLfFhu5CmcdOaWSazWt Vu4c4eoGLlhdsq4VhTlTe5fUXi4lE+TFxhMBrHR2S8dZ/3dqw8dYBhYeit08M17DLkEs QxoWIvenJ2KSt7354dkhJZ9lT8COZO7hoMxVwXE/LIY7fXMY94teXoD32bkaTsnis0OI Oas4UvkTNd53dJ1aIyzy2J+G7n2uMZRBIp3vT4VzL9zYQ2q6PDWzvt5w4u/KE3k1RNpz GuBQ== X-Gm-Message-State: AOAM530JpoYzg0B7s/BKm3siKuNYOUCJbemjfQOLw4VKSOhiaHGfTJnW wgq6QnCR+h3CIBNJp1XTYbcC7pa0oV+7qjUg X-Google-Smtp-Source: ABdhPJxAmlh2y9nFnElNLSu8gXgZSdVby48DqzGQc/m2w73fZGyUngUP41Ts5sbsKnCJv21cOBYzvg== X-Received: by 2002:a05:6512:3ca0:: with SMTP id h32mr21856421lfv.184.1619620113325; Wed, 28 Apr 2021 07:28:33 -0700 (PDT) Received: from localhost.localdomain (89-73-146-138.dynamic.chello.pl. [89.73.146.138]) by smtp.gmail.com with ESMTPSA id e15sm1204409lja.14.2021.04.28.07.28.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Apr 2021 07:28:33 -0700 (PDT) From: Stanislaw Kardach To: dev@dpdk.org, david.hunt@intel.com Cc: upstream@semihalf.com, l.wojciechow@partner.samsung.com, Stanislaw Kardach , bruce.richardson@intel.com Date: Wed, 28 Apr 2021 16:25:52 +0200 Message-Id: <20210428142553.1593546-2-kda@semihalf.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210428142553.1593546-1-kda@semihalf.com> References: <20210426163310.1043438-1-kda@semihalf.com> <20210428142553.1593546-1-kda@semihalf.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 1/2] test/distributor: fix worker notification in burst 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 Sender: "dev" Because a single worker can process more than one packet from the distributor, the final set of notifications in burst mode should be sent one-by-one to ensure that each worker has a chance to wake up. This fix mirrors the change done in the functional test by commit f72bff0ec272 ("test/distributor: fix quitting workers in burst mode"). Fixes: c3eabff124e6 ("distributor: add unit tests") Cc: bruce.richardson@intel.com Signed-off-by: Stanislaw Kardach Acked-by: David Hunt Tested-by: Lukasz Wojciechowski Reviewed-by: Lukasz Wojciechowski --- app/test/test_distributor_perf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/test/test_distributor_perf.c b/app/test/test_distributor_perf.c index b25f79a34..371a14ba4 100644 --- a/app/test/test_distributor_perf.c +++ b/app/test/test_distributor_perf.c @@ -188,9 +188,10 @@ quit_workers(struct rte_distributor *d, struct rte_mempool *p) rte_mempool_get_bulk(p, (void *)bufs, num_workers); quit = 1; - for (i = 0; i < num_workers; i++) + for (i = 0; i < num_workers; i++) { bufs[i]->hash.usr = i << 1; - rte_distributor_process(d, bufs, num_workers); + rte_distributor_process(d, &bufs[i], 1); + } rte_mempool_put_bulk(p, (void *)bufs, num_workers); -- 2.27.0