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 D0B61A0093 for ; Wed, 9 Mar 2022 12:03:13 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C8CC8410E8; Wed, 9 Mar 2022 12:03:13 +0100 (CET) Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by mails.dpdk.org (Postfix) with ESMTP id 677AE40150 for ; Wed, 9 Mar 2022 12:03:12 +0100 (CET) Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id C67493F616 for ; Wed, 9 Mar 2022 11:03:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1646823791; bh=7ldo+CXJKGYgzYJ5+qhL/s88uFi4EUtC8wZoT66uLI4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pYaWSnvmBhZe8l3EUE0MhkWJYb/JuacthoYr96aTx0nBMHyXI/HK/aClHBIgKfSk2 s4YKnX1rBcs2BKj4wWTf51m+y/VgrG9Fcs06aJlzYLtvaUudqYv32+MvVjTQcYMeuG 1biO8xVlFz7Z0cTQu6gJwEG6eHDOZMLA3DAzMmV6oeEAS1ZI6Mly9mZgYh9vbi8pN/ oy5Z4m9ouAVPe1ehG+8bk1emZYgREe7EhT3ALfYws1PrSuA+QQkXZQR+yfUkdL7DJL B87NNJfX2bdZkq4/8h1P0hemtyQ52Mizhr/3CWuedqJsnTKN18amsacNL9VzZm/pd2 nV6mAh6PLkKsA== Received: by mail-wr1-f70.google.com with SMTP id t15-20020a5d534f000000b001f1e5759cebso641032wrv.7 for ; Wed, 09 Mar 2022 03:03:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7ldo+CXJKGYgzYJ5+qhL/s88uFi4EUtC8wZoT66uLI4=; b=3ErfRdrPmdqOwCc6vjDe6bwViDygY9V4dyuwTyC1eHALGavJn9/XqDJtIQ62owtgtc xf1ZSYiFb4GwZJtdKacV+jUJtcKZ8gDrwH041eIYkW8hbLJTKtX/DSuuNxa7ARuUryrk LtzrVaUHhPhe3C+G9Q4uyEV2mLxt2C6Gd2/f9Oej65qhUh8w4mjDwRR87dYs4PtSkifd 7ysXAAzHAmEvGB7gIQZqaBTUWKx+2OnwlapRavuirBsSpIiFLoNDc4whAAKVCKJjCS/n lEQNqO+rXrnbbjTLGS/3JPUbq2S0ezGIFIUGgRc/s6Dq0CDr5Sc54mLxFBhR3y1+g3g8 ckPw== X-Gm-Message-State: AOAM531Pe23hBrppQltFYJ3WIuwJGUXbiwakYBQPsycNWpnpZ3rUNuCo 8uljv4MGGPUhrHRIGHuWW3/ecu/fNS2Qi2Kn1QVyb+cnlMcD03QeWigGCHeqiy7g/VmQY4NViXX FykNky+9u1UqryttEXMF+ipol X-Received: by 2002:a05:600c:3503:b0:345:858e:cbe8 with SMTP id h3-20020a05600c350300b00345858ecbe8mr7105115wmq.73.1646823791216; Wed, 09 Mar 2022 03:03:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUKTqoQ/N5q6eFUvg13HQlrh6S4v5V8giZc/SITjbwuPCAR4ChMgvlO6MGSDeiFl/0TzmBDA== X-Received: by 2002:a05:600c:3503:b0:345:858e:cbe8 with SMTP id h3-20020a05600c350300b00345858ecbe8mr7105094wmq.73.1646823790972; Wed, 09 Mar 2022 03:03:10 -0800 (PST) Received: from localhost.localdomain (068-133-067-156.ip-addr.inexio.net. [156.67.133.68]) by smtp.gmail.com with ESMTPSA id 9-20020a05600c268900b00381394d74a1sm1509439wmt.9.2022.03.09.03.03.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 03:03:10 -0800 (PST) From: christian.ehrhardt@canonical.com To: Huisong Li Cc: Min Hu , dpdk stable Subject: patch 'net/hns3: fix RSS TC mode entry' has been queued to stable release 19.11.12 Date: Wed, 9 Mar 2022 12:01:05 +0100 Message-Id: <20220309110116.1295395-34-christian.ehrhardt@canonical.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220309110116.1295395-1-christian.ehrhardt@canonical.com> References: <20220309110116.1295395-1-christian.ehrhardt@canonical.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 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 Hi, FYI, your patch has been queued to stable release 19.11.12 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/11/22. 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/cpaelzer/dpdk-stable-queue This queued commit can be viewed at: https://github.com/cpaelzer/dpdk-stable-queue/commit/c367ca25baf377954e753ce2456764919460f2fe Thanks. Christian Ehrhardt --- >From c367ca25baf377954e753ce2456764919460f2fe Mon Sep 17 00:00:00 2001 From: Huisong Li Date: Mon, 28 Feb 2022 11:21:45 +0800 Subject: [PATCH] net/hns3: fix RSS TC mode entry [ upstream commit cdb9a7ae5f8f3b59b6de9dc2b52387636245e3a5 ] The driver allocates queues only to valid TCs. But the driver also configure queues for invalid TCs, which is unreasonable. Fixes: c37ca66f2b27 ("net/hns3: support RSS") Signed-off-by: Huisong Li Acked-by: Min Hu (Connor) --- drivers/net/hns3/hns3_rss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/hns3/hns3_rss.c b/drivers/net/hns3/hns3_rss.c index a5ce7f9562..08d64e5196 100644 --- a/drivers/net/hns3/hns3_rss.c +++ b/drivers/net/hns3/hns3_rss.c @@ -456,8 +456,8 @@ hns3_set_rss_tc_mode(struct hns3_hw *hw) for (i = 0; i < HNS3_MAX_TC_NUM; i++) { tc_valid[i] = !!(hw->hw_tc_map & BIT(i)); - tc_size[i] = roundup_size; - tc_offset[i] = rss_size * i; + tc_size[i] = tc_valid[i] ? roundup_size : 0; + tc_offset[i] = tc_valid[i] ? rss_size * i : 0; } hns3_cmd_setup_basic_desc(&desc, HNS3_OPC_RSS_TC_MODE, false); -- 2.35.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2022-03-09 11:57:45.138330665 +0100 +++ 0034-net-hns3-fix-RSS-TC-mode-entry.patch 2022-03-09 11:57:43.400938432 +0100 @@ -1 +1 @@ -From cdb9a7ae5f8f3b59b6de9dc2b52387636245e3a5 Mon Sep 17 00:00:00 2001 +From c367ca25baf377954e753ce2456764919460f2fe Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit cdb9a7ae5f8f3b59b6de9dc2b52387636245e3a5 ] + @@ -10 +11,0 @@ -Cc: stable@dpdk.org @@ -19 +20 @@ -index 1782d63883..ebf3c60f07 100644 +index a5ce7f9562..08d64e5196 100644 @@ -22 +23 @@ -@@ -601,8 +601,8 @@ hns3_set_rss_tc_mode(struct hns3_hw *hw) +@@ -456,8 +456,8 @@ hns3_set_rss_tc_mode(struct hns3_hw *hw)