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 E120F7350E; Mon, 8 Apr 2024 13:03:01 +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=1712581382; cv=none; b=PFgHA2kjXF5KgXcIaXfaNw/uCKamndxOSsdnMh/VpCxlBoSswoHE15ESdWqX/WgEbWwB4dSAcn/klMWQZqnGZVb8DTYLG7rVr5+s1dF1mk3ohqL4TiHpoGstRY6E+KX4sJfBh0RvbRSL9L3Hq5Y4LjcoBFF8SabKa3EhCT/K5VU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712581382; c=relaxed/simple; bh=hx+ZReYAu8WNJafOoPvrC1pFlcLA2eJ8A+8rS/v2/2k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bohMp35JuAlYlnYGSBxVotPPaaAOb/N9fMdbcyweUm/PVhzPNRLAoANpwImhYTWK6wNy2JEMQoKGf2/U68AzXpyY5Gnv8sxAKrlMeUGA1nwMKX22bmxoIG2msiHAg6AOWtOxPUM4BR2HXDsijLn0YAl+5YO+WVbXxkRD9SFZseU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H5c5MJqk; 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="H5c5MJqk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69F69C433C7; Mon, 8 Apr 2024 13:03:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712581381; bh=hx+ZReYAu8WNJafOoPvrC1pFlcLA2eJ8A+8rS/v2/2k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H5c5MJqkOhJH3mHVIK8rF7TrQ2EbkZnyZm/Bxy/0hovTrEHfbGAaOq1GZZiOhv4Er YrGuvvdTyX+AmjyI9U6wMSgCvksFpOzDCic7RMHC7UpeqQkGpnukBxyp1oWS4O3ivc 3wzOp900C5PbAIy9ydAN/yMy2pgedR5ZfdBV8KD0= 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.1 011/138] net: hns3: fix index limit to support all queue stats Date: Mon, 8 Apr 2024 14:57:05 +0200 Message-ID: <20240408125256.581745686@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240408125256.218368873@linuxfoundation.org> References: <20240408125256.218368873@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.1-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