Re: [PATCH net-next 4/4] net: hns3: fix wrong rpu tln reg issue
From: Leon Romanovsky
Date: Tue Aug 15 2023 - 14:27:16 EST
On Tue, Aug 15, 2023 at 02:06:41PM +0800, Jijie Shao wrote:
> In the original RPU query command, the status register values of
> multiple RPU tunnels are accumulated by default, which is unreasonable.
> This patch Fix it by querying the specified tunnel ID.
> The tunnel number of the device can be obtained from firmware
> during initialization.
>
> Fixes: ddb54554fa51 ("net: hns3: add DFX registers information for ethtool -d")
> Signed-off-by: Jijie Shao <shaojijie@xxxxxxxxxx>
> ---
> drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 +
> .../hisilicon/hns3/hns3pf/hclge_cmd.h | 4 +-
> .../hisilicon/hns3/hns3pf/hclge_main.c | 2 +
> .../hisilicon/hns3/hns3pf/hclge_regs.c | 66 ++++++++++++++++++-
> 4 files changed, 71 insertions(+), 2 deletions(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>