Skip to contentSkip to conversation

net/igc: fix xstats name

PATCH In review Kaiwen Deng 2 participants 3 messages Apr 9, 2025 – Apr 10, 2025 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/igc: fix xstats name

The xstats name needs to be changed correctly tx_size_1023_to_max_packets should be tx_size_1024_to_max_packets.

Fixes e6defdfddc3b ("net/igc: enable statistics")
---
 drivers/net/intel/e1000/igc_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/intel/e1000/igc_ethdev.c +1 -1
index e712cfcf7c..68444e4fba 100644
@@ -181,7 +181,7 @@ static const struct rte_igc_xstats_name_off rte_igc_stats_strings[] = {
 	{"tx_size_256_to_511_packets", offsetof(struct e1000_hw_stats, ptc511)},
 	{"tx_size_512_to_1023_packets", offsetof(struct e1000_hw_stats,
 		ptc1023)},
-	{"tx_size_1023_to_max_packets", offsetof(struct e1000_hw_stats,
+	{"tx_size_1024_to_max_packets", offsetof(struct e1000_hw_stats,
 		ptc1522)},
 	{"tx_multicast_packets", offsetof(struct e1000_hw_stats, mptc)},
 	{"tx_broadcast_packets", offsetof(struct e1000_hw_stats, bptc)},
Signature · 1 line
2.34.1
#1 lore raw
Quoted 16 lines · On Wed, 9 Apr 2025 09:07:11 +0800 Kaiwen Deng <[email protected]> wrote:

The xstats name needs to be changed correctly tx_size_1023_to_max_packets should be tx_size_1024_to_max_packets.

Fixes e6defdfddc3b ("net/igc: enable statistics")
---
 drivers/net/intel/e1000/igc_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/intel/e1000/igc_ethdev.c +0 -0
index e712cfcf7c..68444e4fba 100644

drivers/net/intel/e1000/igc_ethdev.c static const struct rte_igc_xstats_name_off rte_igc_stats_strings[] = { · line 187

Quoted 8 lines
drivers/net/intel/e1000/igc_ethdev.c +1 -1
@@ -181,7 +181,7 @@ static const struct rte_igc_xstats_name_off rte_igc_stats_strings[] = {
 	{"tx_size_256_to_511_packets", offsetof(struct e1000_hw_stats, ptc511)},
 	{"tx_size_512_to_1023_packets", offsetof(struct e1000_hw_stats,
 		ptc1023)},
-	{"tx_size_1023_to_max_packets", offsetof(struct e1000_hw_stats,
+	{"tx_size_1024_to_max_packets", offsetof(struct e1000_hw_stats,
 		ptc1522)},
 	{"tx_multicast_packets", offsetof(struct e1000_hw_stats, mptc)},
 	{"tx_broadcast_packets", offsetof(struct e1000_hw_stats, bptc)},

Please don't send same patch twice.

#2 lore raw
Quoted 33 lines

-----Original Message-----
From: Stephen Hemminger <[email protected]>
Sent: Wednesday, April 9, 2025 11:56 AM
To: Deng, KaiwenX <[email protected]>
Cc: [email protected]; [email protected]; Ferruh Yigit <[email protected]>; Alvin Zhang <[email protected]>
Subject: Re: [PATCH] net/igc: fix xstats name

drivers/net/intel/e1000/igc_ethdev.c static const struct rte_igc_xstats_name_off

Quoted 17 lines · On Wed, 9 Apr 2025 09:07:11 +0800 Kaiwen Deng <[email protected]> wrote:

The xstats name needs to be changed correctly tx_size_1023_to_max_packets should be tx_size_1024_to_max_packets.

Fixes e6defdfddc3b ("net/igc: enable statistics")
---
 drivers/net/intel/e1000/igc_ethdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/intel/e1000/igc_ethdev.c +0 -0
index e712cfcf7c..68444e4fba 100644
@@ -181,7 +181,7 @@ static const struct rte_igc_xstats_name_off

rte_igc_stats_strings[] = {

drivers/net/intel/e1000/igc_ethdev.c static const struct rte_igc_xstats_name_off · line 181

Quoted 1 line
drivers/net/intel/e1000/igc_ethdev.c +0 -0
 	{"tx_size_256_to_511_packets", offsetof(struct e1000_hw_stats,

ptc511)},

Quoted 10 lines

drivers/net/intel/e1000/igc_ethdev.c static const struct rte_igc_xstats_name_off rte_igc_stats_strings[] = { · line 187

Quoted 7 lines
drivers/net/intel/e1000/igc_ethdev.c +1 -1
 	{"tx_size_512_to_1023_packets", offsetof(struct e1000_hw_stats,
 		ptc1023)},
-	{"tx_size_1023_to_max_packets", offsetof(struct e1000_hw_stats,
+	{"tx_size_1024_to_max_packets", offsetof(struct e1000_hw_stats,
 		ptc1522)},
 	{"tx_multicast_packets", offsetof(struct e1000_hw_stats, mptc)},
 	{"tx_broadcast_packets", offsetof(struct e1000_hw_stats, bptc)},

Please don't send same patch twice.

Hi Stephen,
Thanks for your review.
The two patches I posted earlier were fixes for the same issue for both igb and igc drivers. Now I merged those two patches into one patch to fix the issue.