From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 592E7A0093 for ; Tue, 19 May 2020 15:07:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4FEA11D65B; Tue, 19 May 2020 15:07:09 +0200 (CEST) Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by dpdk.org (Postfix) with ESMTP id D0DC21D65F for ; Tue, 19 May 2020 15:07:07 +0200 (CEST) Received: by mail-wm1-f65.google.com with SMTP id n5so3507797wmd.0 for ; Tue, 19 May 2020 06:07:07 -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 :mime-version:content-transfer-encoding; bh=uPEALE//GA9aUcaMScN1Us/yOFRhcFa2omfSFIWro9I=; b=TX5EzP3QH4I82l9ayHXYVRyXk8vEwkvovMpH3116qAD3ZUiocmCPzSAwjplCzQBU9t sni8ARrpHtQQWp9vHLPIYxapQVPp0hO029OGwQpCW9+LNY+anDUsK6xW0Hmc32hpkAL1 nq0e6PEsr+ZI2fBlQAtbzN3MsBmI/FgQ0C+L2Q6QjEHkxiU0JJf2gfKwtczA6VekZ+wn ffLipXEBj2isVz/qSDwYg3MgXPXxudB2HaK++fTJJUU2OHLK68b9Qle8gP5R+gRiepPK eQNR3rLr/KsaWUTw5v7DkuIMuWEt/sye8eAjUPcuqYLMZFfF0Kr+gdiPoXakM71t4hfV uyvQ== 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=uPEALE//GA9aUcaMScN1Us/yOFRhcFa2omfSFIWro9I=; b=CBH8Va01pKN7jJairTbmEuF1Nhxmv/Gqn4UHojPeiPbAFQzjWbaRU8AHEeclJJtvki tRwcdq5tpPYoLlsQjB477UynQr3lPh3hP/txjeiAHFVqL3JrpYRWt//Qf/jgdnQeYhhN sHd3AAoqzpGFT6n1HJzrwqkMev3S+4k2vMSiy6gtcQwbAAo1Qg7rY9ohW22wIg1oEZtN 2ttW3jT9bjC1KHRmgf/HpvLH3ShZANVwPeaCkWH7Eh4FppGBXAV9lfeBnozxSYjocXbd /h60kgqCVqiZUiVbAFqK/N66uyzhueUyWEwVLhfh7ttMHQrObPQDlBrNfeAkFMgDHWl2 FlCw== X-Gm-Message-State: AOAM532GBSYkI85urMC6cpNMsOaKuE6bg93Xub4tahNWkoFXOAjX+c9H Iy+jsu7fKrVDwuIMxa3Ypiw= X-Google-Smtp-Source: ABdhPJx7YzJ3CKeHfaZbY8ZnBUfN1KZC0Zh5MqwTXn+hDzayhh3sTvszggiCoJ34JvLKcQbuqCCY/A== X-Received: by 2002:a1c:29c2:: with SMTP id p185mr5150593wmp.7.1589893627521; Tue, 19 May 2020 06:07:07 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id m7sm3838037wmc.40.2020.05.19.06.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 May 2020 06:07:06 -0700 (PDT) From: luca.boccassi@gmail.com To: Junyu Jiang Cc: Xiaoyun Li , Yingya Han , dpdk stable Date: Tue, 19 May 2020 14:02:40 +0100 Message-Id: <20200519130549.112823-25-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200519130549.112823-1-luca.boccassi@gmail.com> References: <20200519125804.104349-1-luca.boccassi@gmail.com> <20200519130549.112823-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'examples/vmdq: fix output of pools/queues' has been queued to stable release 19.11.3 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: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Hi, FYI, your patch has been queued to stable release 19.11.3 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/21/20. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Thanks. Luca Boccassi --- >From 1b70d8acd01e494549765f8968ce348bb376583c Mon Sep 17 00:00:00 2001 From: Junyu Jiang Date: Mon, 2 Mar 2020 06:41:21 +0000 Subject: [PATCH] examples/vmdq: fix output of pools/queues [ upstream commit 70c37e32083468e0496e5b12dbdd99d7a95d8b15 ] To match the pools/queues configuration, the pools/queues output should start from VMDQ base queue. This patch fixed the issue. Fixes: 6bb97df521aa ("examples/vmdq: new app") Signed-off-by: Junyu Jiang Acked-by: Xiaoyun Li Tested-by: Yingya Han --- examples/vmdq/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c index 6e6fc91ec0..74fe9a16ee 100644 --- a/examples/vmdq/main.c +++ b/examples/vmdq/main.c @@ -441,10 +441,11 @@ update_mac_address(struct rte_mbuf *m, unsigned dst_port) static void sighup_handler(int signum) { - unsigned q; - for (q = 0; q < num_queues; q++) { - if (q % (num_queues/num_pools) == 0) - printf("\nPool %u: ", q/(num_queues/num_pools)); + unsigned int q = vmdq_queue_base; + for (; q < num_queues; q++) { + if ((q - vmdq_queue_base) % (num_vmdq_queues / num_pools) == 0) + printf("\nPool %u: ", (q - vmdq_queue_base) / + (num_vmdq_queues / num_pools)); printf("%lu ", rxPackets[q]); } printf("\nFinished handling signal %d\n", signum); -- 2.20.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-05-19 14:04:45.642698221 +0100 +++ 0025-examples-vmdq-fix-output-of-pools-queues.patch 2020-05-19 14:04:44.160647358 +0100 @@ -1,13 +1,14 @@ -From 70c37e32083468e0496e5b12dbdd99d7a95d8b15 Mon Sep 17 00:00:00 2001 +From 1b70d8acd01e494549765f8968ce348bb376583c Mon Sep 17 00:00:00 2001 From: Junyu Jiang Date: Mon, 2 Mar 2020 06:41:21 +0000 Subject: [PATCH] examples/vmdq: fix output of pools/queues +[ upstream commit 70c37e32083468e0496e5b12dbdd99d7a95d8b15 ] + To match the pools/queues configuration, the pools/queues output should start from VMDQ base queue. This patch fixed the issue. Fixes: 6bb97df521aa ("examples/vmdq: new app") -Cc: stable@dpdk.org Signed-off-by: Junyu Jiang Acked-by: Xiaoyun Li @@ -17,7 +18,7 @@ 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/vmdq/main.c b/examples/vmdq/main.c -index 67aa558887..a66dd533c8 100644 +index 6e6fc91ec0..74fe9a16ee 100644 --- a/examples/vmdq/main.c +++ b/examples/vmdq/main.c @@ -441,10 +441,11 @@ update_mac_address(struct rte_mbuf *m, unsigned dst_port)