net/intel: fix xstats name
PATCH 1/1 net/intel: fix xstats name
The igb and igc xstats name need to be changed correctly. tx_size_1023_to_max_packets should be tx_size_1024_to_max_packets.
Fixes 38552317dcef ("igb: add extended stats")
Fixes e6defdfddc3b ("net/igc: enable statistics")
Signed-off-by Kaiwen Deng <[email protected]>
--- drivers/net/intel/e1000/igb_ethdev.c | 2 +- drivers/net/intel/e1000/igc_ethdev.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/intel/e1000/igb_ethdev.c +1 -1
@@ -486,7 +486,7 @@ static const struct rte_igb_xstats_name_off rte_igb_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)},
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)},
Signature · 1 line
2.34.1
Quoted 9 lines · Kaiwen Deng
The igb and igc xstats name need to be changed correctly.
tx_size_1023_to_max_packetsshould betx_size_1024_to_max_packets.Fixes 38552317dcef ("igb: add extended stats")Fixes e6defdfddc3b ("net/igc: enable statistics")Signed-off-by Kaiwen Deng <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Applied to dpdk-next-net-intel.
Thanks,
/Bruce