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 A0407A0527 for ; Mon, 9 Nov 2020 19:44:56 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 95AB972E9; Mon, 9 Nov 2020 19:44:55 +0100 (CET) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by dpdk.org (Postfix) with ESMTP id CF62B72E9 for ; Mon, 9 Nov 2020 19:44:53 +0100 (CET) Received: by mail-wr1-f66.google.com with SMTP id r17so5964704wrw.1 for ; Mon, 09 Nov 2020 10:44:53 -0800 (PST) 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=JgyXoZbEOZmBNtwfOoRpnDwIzJkbY6GQtGVd8dahsEU=; b=S7Ad8o1pM7h9j5KKFQEjj6nfUgy++ilWvCj4bxi2XwGBghY0imLafpv1OWBUcRRZAe U1E7r6thOmnL/IEFHPa3thWufDHdGGg+DZ48XivdwgyeShbZsHFEVFbbF8IXiLNqo/pv TxDSOuVQ1a/pfE3PuSndTWqmgbu92Eq5kYbUj4bL9IillBufETCuhqazI8byVWgfhWTs HCLu6syy/7lGIEjQ4gW3lS87QfyX5k5nbWqj+eoG/mVa8s8ykXyJxlWRdfNDhSTtTkwO K8xK4CV1FYCk/xx53WLLMvpqrA1so4KFcFu2B9y/2MUkisNZTixceSnUpEYIyGMCTZIi YN6A== 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=JgyXoZbEOZmBNtwfOoRpnDwIzJkbY6GQtGVd8dahsEU=; b=jrvusV04mXY+bB7sygz9+zEIi1kWDjEPqojT85F/Un5HEOwZz4TFOTitSVHVktIgwP o6GEee4itXNtTiSRqmkl9gkOOIVArrP+SAIhh2WGFz4abQDMvmfvOthH5kSuGmq2sZOv 6Tx37rhQkuAtXr+ACP4uB/zHEgWBXIaIStYFkUHQL+oQ5X2ZDgp0ZDb7IeIwVoh/MN+l XxZk9vEue1XUX6b1SFkBjPLctxLibq49kIJKl8sxeukUW17LwdQYMI5s1uD0LmL0Qz1Y dYbhhuQQeDEdCqKWwvDlxsLeUEYKdNQBhsPhlcQo33l9fIo5zY9Uvp0xyvoS5KCwUh6W xAUw== X-Gm-Message-State: AOAM532bqZ4qTmwOiDUsyNvwd0KIq/Tev37F2/p1EKvzw5cFCNPo/jHo jMqBhakJ4bMHxKAEdD93Twc= X-Google-Smtp-Source: ABdhPJx6cEZs0YwpeJG4zBNP/i3tclpMVLpgcmX0zHRbtSzSlUBJT3Sro9nuX6zammgueeMa5/iDBg== X-Received: by 2002:adf:fd03:: with SMTP id e3mr13898281wrr.303.1604947493584; Mon, 09 Nov 2020 10:44:53 -0800 (PST) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id g20sm310571wmh.20.2020.11.09.10.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 10:44:52 -0800 (PST) From: luca.boccassi@gmail.com To: Huisong Li Cc: Lijun Ou , dpdk stable Date: Mon, 9 Nov 2020 18:40:52 +0000 Message-Id: <20201109184111.3463090-64-luca.boccassi@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201109184111.3463090-1-luca.boccassi@gmail.com> References: <20201028104606.3504127-207-luca.boccassi@gmail.com> <20201109184111.3463090-1-luca.boccassi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-stable] patch 'net/hns3: fix data type to store queue number' has been queued to stable release 19.11.6 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.6 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/11/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. Queued patches are on a temporary branch at: https://github.com/bluca/dpdk-stable This queued commit can be viewed at: https://github.com/bluca/dpdk-stable/commit/eb8dd4f623c4a895ea0e00e9e390d983b2d5dd95 Thanks. Luca Boccassi --- >From eb8dd4f623c4a895ea0e00e9e390d983b2d5dd95 Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Thu, 29 Oct 2020 20:51:54 +0800 Subject: [PATCH] net/hns3: fix data type to store queue number [ upstream commit 708ecc07d23edff628008669401cfaf37a503ce8 ] Currently, u8 type variable is used to control to release fake queues in hns3_fake_rx/tx_queue_config function. Although there is no case in which more than 256 fake queues are created in hns3 network engine, it is unreasonable to compare u8 variable with u16 variable. Fixes: a951c1ed3ab5 ("net/hns3: support different numbers of Rx and Tx queues") Signed-off-by: Huisong Li Signed-off-by: Lijun Ou --- drivers/net/hns3/hns3_rxtx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c index c1ffa136bd..5aee8cb995 100644 --- a/drivers/net/hns3/hns3_rxtx.c +++ b/drivers/net/hns3/hns3_rxtx.c @@ -991,7 +991,7 @@ hns3_fake_rx_queue_config(struct hns3_hw *hw, uint16_t nb_queues) { uint16_t old_nb_queues = hw->fkq_data.nb_fake_rx_queues; void **rxq; - uint8_t i; + uint16_t i; if (hw->fkq_data.rx_queues == NULL && nb_queues != 0) { /* first time configuration */ @@ -1038,7 +1038,7 @@ hns3_fake_tx_queue_config(struct hns3_hw *hw, uint16_t nb_queues) { uint16_t old_nb_queues = hw->fkq_data.nb_fake_tx_queues; void **txq; - uint8_t i; + uint16_t i; if (hw->fkq_data.tx_queues == NULL && nb_queues != 0) { /* first time configuration */ -- 2.27.0 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2020-11-09 18:40:13.602582169 +0000 +++ 0064-net-hns3-fix-data-type-to-store-queue-number.patch 2020-11-09 18:40:11.199312340 +0000 @@ -1 +1 @@ -From 708ecc07d23edff628008669401cfaf37a503ce8 Mon Sep 17 00:00:00 2001 +From eb8dd4f623c4a895ea0e00e9e390d983b2d5dd95 Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 708ecc07d23edff628008669401cfaf37a503ce8 ] + @@ -12 +13,0 @@ -Cc: stable@dpdk.org @@ -21 +22 @@ -index 3d5e4654c7..33864535b6 100644 +index c1ffa136bd..5aee8cb995 100644 @@ -24 +25 @@ -@@ -1378,7 +1378,7 @@ hns3_fake_rx_queue_config(struct hns3_hw *hw, uint16_t nb_queues) +@@ -991,7 +991,7 @@ hns3_fake_rx_queue_config(struct hns3_hw *hw, uint16_t nb_queues) @@ -33 +34 @@ -@@ -1425,7 +1425,7 @@ hns3_fake_tx_queue_config(struct hns3_hw *hw, uint16_t nb_queues) +@@ -1038,7 +1038,7 @@ hns3_fake_tx_queue_config(struct hns3_hw *hw, uint16_t nb_queues)