From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 CFFA22DF73; Mon, 8 Apr 2024 13:07:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712581653; cv=none; b=r7x+bW2PMsDl1+M0PJYUO2NCNOUNQdBTxKqEwSLsI3R9IQ6S29ke+kiSSDgRhnSukpEunzykau19D+sfY8pmK7XTBV1YO3pToyQc5hBq3eDXo1RFbjlJuBp9OoOmby2AYsRVlT4dXGuPmmTxMmgw22WVtgXPamjosuCqvNHPzVI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712581653; c=relaxed/simple; bh=+699HSDCyriVvpdTkCtQ8XDRwpL/12Ox7W0ywvXVrpM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UT0tjSGtAXkD28wuxQZQOfizxkqbdk5xK1Ty5AZlC4pxEKK10Eeet1UMaf3dNrIMorTaYFW5mr08pbFXbwYgG+CVCVR07c3wCltOUSn1N5tyTIStZOzV4rgO9bOvrwpLKFgrvMuF9zXHrWAY1Q26FpoaRU3m/PUz/rQbfrdv30o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rjPtp4Vr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="rjPtp4Vr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55F81C43390; Mon, 8 Apr 2024 13:07:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712581653; bh=+699HSDCyriVvpdTkCtQ8XDRwpL/12Ox7W0ywvXVrpM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rjPtp4VrUzh4gBjnNl6pyDTCmMes+CCWXmxWJAM37972/uusI8n7DtX6YmGs0YUDP pz4MffEbP2nvxZb7NvIRKLtWMBjWR3WKa6uoPk8zdTZifFjUcTM+fOYlllUuMprXer ulGEG0ZHRe4ZxbE0n1epAI3awx8FmlMFWj2iKZ8Q= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jie Wang , Jijie Shao , Michal Kubiak , Kalesh AP , Simon Horman , Paolo Abeni , Sasha Levin Subject: [PATCH 6.6 026/252] net: hns3: fix index limit to support all queue stats Date: Mon, 8 Apr 2024 14:55:25 +0200 Message-ID: <20240408125307.461428927@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240408125306.643546457@linuxfoundation.org> References: <20240408125306.643546457@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jie Wang [ Upstream commit 47e39d213e09c6cae0d6b4d95e454ea404013312 ] Currently, hns hardware supports more than 512 queues and the index limit in hclge_comm_tqps_update_stats is wrong. 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 Reviewed-by: Michal Kubiak Reviewed-by: Kalesh AP Reviewed-by: Simon Horman Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- .../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 f3c9395d8351c..618f66d9586b3 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.43.0