Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp283178lqb; Sat, 16 Mar 2024 04:16:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWp6KtHanMvrNFYG0s1I+HcMVpiEH+iTsYaoUaZwjWifiYHJW42qUtccYWf3MG20LBvAc6sfKX4vND4JKhZbpt2GIeOnivVRP15HU9HVg== X-Google-Smtp-Source: AGHT+IHWhg0DEUDU6Hh24AcXarDtDZHpMaY8IIo429e098u1fgHWS7K3BRgcuOHKR+HcVdsBaZxQ X-Received: by 2002:a17:906:bc4e:b0:a45:66c8:26ae with SMTP id s14-20020a170906bc4e00b00a4566c826aemr3977898ejv.33.1710587771705; Sat, 16 Mar 2024 04:16:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710587771; cv=pass; d=google.com; s=arc-20160816; b=x6coH91K+YzZoyn2Ditg3usITuQQJyFTPZtUq1kN/ozU4yCeODJ2hTq5KF5vS3jZig RS9f3tCWJfK886NJ+cxrOTU8EGdcNznu47MB2i76C01uhfSjUjvL4sjmWlMYnuCQibZj g1lrZt3ahfqD1kb44FtL7enBkp9Y0DPTG1UD2fqvNc4xafdsqm3PEOmKpHnIeGnD1mmK gtN6RONac/zFw0GpmdQwUkOOVTEoFWjCzM/Ivi9o/cgDcgEIy6wX29oYtCqFTlJp7gU2 YzURLV7w2iFVGtMt8tPFHOxbBreqc1j94Ue0B8ENP6JtJgLPjWyVAl+AoclIP94j1vve 05dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Fcqa3m+Dbadf5wqDMqwzN+Eqx/ooZcN3qduSE3/M7BU=; fh=oFX7uQ5uJvdLTn4laet2aG27bFnOToVIV53xImI6MDA=; b=PQiqyJezg6y4ODS33rcZXXYB8LL/XPRgVrsJUR9JSEHC7mQskjVHfGfwib7v/uhCq1 Og3Kxuk+/EWspeRq+fIyyv6sxmS9Ci1foh87zjDUVLcdbUDWJYEfKc4AgF6n/LFRFhHl 3RDBrZXUJSWgX1kBYQNHpo5cyZUpmt7MU/kuMY6Twe4AD87YOpLYZa6FzRgd0lDkM6j2 bvrn1pcGxLdV0xDGVVUX1fkpfhVeV7O8+UYcnecSZ7OCsvJNGKhxQC8tshDBkZfvgcbX 2OkGJhVINn+nDlabwmz1ZZ3Y0YKqVTFMPU7KTGVP2ypJrHYOv4r6hRxuijKN0/xe6VFf DSNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-105161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i6-20020a170906264600b00a3e68c15801si2569448ejc.776.2024.03.16.04.16.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 04:16:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-105161-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105161-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5E4E41F21AFF for ; Sat, 16 Mar 2024 11:16:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 581D5168DE; Sat, 16 Mar 2024 11:16:03 +0000 (UTC) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4064118AF4; Sat, 16 Mar 2024 11:15:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710587762; cv=none; b=rNuLLbJ5KLepXb+CgW/yBXBZ0qNG4pNsG1romuqF5V2uDbuQJuEaNdiPQxpFQ4ZgENmiT+foxMZbFWtP57GPbfs5nN0QciyX34D07qoV8oYxnz8XJ8a9GX7WyymBvxPgREH4XIVLm9oP8WyT8TnVksPL41WDFytVNTZJqgtkjmI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710587762; c=relaxed/simple; bh=U9/hk7Afy+z72pgBR5LHCOafJ8A8EwrYJAZvNc/eKWk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=b4O8fM7jDNWRYvtL7FhamCWobQY1l4IsZC5FcDW7cG1l1bDh8oC7X1tpWMtlYLJ1FmRee+HqNr/aJXDsO+3n0Hd/hDvXMmGrnl/i5QoCuCFibj9TWHYxydcAQWDN/NaL4lpnT7adqaArqj9g4Zn586SyJ+jC21U2NV1GvNbqjrY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.17]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4TxdlV5Cvtz1h2HS; Sat, 16 Mar 2024 19:13:26 +0800 (CST) Received: from kwepemm600007.china.huawei.com (unknown [7.193.23.208]) by mail.maildlp.com (Postfix) with ESMTPS id 721771A0172; Sat, 16 Mar 2024 19:15:56 +0800 (CST) Received: from localhost.localdomain (10.67.165.2) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sat, 16 Mar 2024 19:15:55 +0800 From: Jijie Shao To: , , , , , CC: , , , , , , Subject: [PATCH V2 net 1/3] net: hns3: fix index limit to support all queue stats Date: Sat, 16 Mar 2024 19:10:55 +0800 Message-ID: <20240316111057.277591-2-shaojijie@huawei.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20240316111057.277591-1-shaojijie@huawei.com> References: <20240316111057.277591-1-shaojijie@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemm600007.china.huawei.com (7.193.23.208) From: Jie Wang Currently, hns hardware supports more than 512 queues and the index limit in hclge_comm_tqps_update_stats is useless. So this patch removes it. Fixes: 287db5c40d15 ("net: hns3: create new set of common tqp stats APIs for PF and VF reuse") Signed-off-by: Jie Wang Signed-off-by: Jijie Shao --- .../ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c b/drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c index f3c9395d8351..618f66d9586b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c @@ -85,7 +85,7 @@ int hclge_comm_tqps_update_stats(struct hnae3_handle *handle, hclge_comm_cmd_setup_basic_desc(&desc, HCLGE_OPC_QUERY_TX_STATS, true); - desc.data[0] = cpu_to_le32(tqp->index & 0x1ff); + desc.data[0] = cpu_to_le32(tqp->index); ret = hclge_comm_cmd_send(hw, &desc, 1); if (ret) { dev_err(&hw->cmq.csq.pdev->dev, -- 2.30.0