From 2b4c6bc2fb7672904b18c837632c93b922e0849b Mon Sep 17 00:00:00 2001 From: Mahesh Patil Date: Thu, 5 Oct 2023 12:25:06 -0700 Subject: [PATCH] nvethernet: match stats count to num of vdma In T164 MTL Q numbers are not same as VDMA, so change ether_xtra_stat_counters to match VDMA number Ported from - https://git-master.nvidia.com/r/c/nvethernet-docs/+/2992110 Bug 4316080 Change-Id: Id8e4f1b37f4aa6d84e4faa0c2b03c42d1cfd4cc2 Signed-off-by: Mahesh Patil --- drivers/net/ethernet/nvidia/nvethernet/ether_linux.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.h b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.h index 3b240e7b..9696bcd7 100644 --- a/drivers/net/ethernet/nvidia/nvethernet/ether_linux.h +++ b/drivers/net/ethernet/nvidia/nvethernet/ether_linux.h @@ -412,13 +412,13 @@ struct ether_timestamp_skb_list { */ struct ether_xtra_stat_counters { /** rx skb allocation failure count */ - nveu64_t re_alloc_rxbuf_failed[OSI_MGBE_MAX_NUM_QUEUES]; + nveu64_t re_alloc_rxbuf_failed[OSI_MGBE_MAX_NUM_CHANS]; /** TX per channel interrupt count */ - nveu64_t tx_normal_irq_n[OSI_MGBE_MAX_NUM_QUEUES]; + nveu64_t tx_normal_irq_n[OSI_MGBE_MAX_NUM_CHANS]; /** TX per channel SW timer callback count */ - nveu64_t tx_usecs_swtimer_n[OSI_MGBE_MAX_NUM_QUEUES]; + nveu64_t tx_usecs_swtimer_n[OSI_MGBE_MAX_NUM_CHANS]; /** RX per channel interrupt count */ - nveu64_t rx_normal_irq_n[OSI_MGBE_MAX_NUM_QUEUES]; + nveu64_t rx_normal_irq_n[OSI_MGBE_MAX_NUM_CHANS]; /** link connect count */ nveu64_t link_connect_count; /** link disconnect count */