net/e1000: xstat RXERRC statictic register added.

Message ID 20181205123514.7104-1-asm@asm.pp.ru (mailing list archive)
State Rejected, archived
Delegated to: Qi Zhang
Headers
Series net/e1000: xstat RXERRC statictic register added. |

Checks

Context Check Description
ci/Intel-compilation success Compilation OK
ci/mellanox-Performance-Testing success Performance Testing PASS
ci/intel-Performance-Testing success Performance Testing PASS
ci/checkpatch warning coding style issues

Commit Message

Leonid Myravjev Dec. 5, 2018, 12:35 p.m. UTC
  Signed-off-by: Leonid Myravjev <asm@asm.pp.ru>
---
 drivers/net/e1000/igb_ethdev.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Qi Zhang Dec. 13, 2018, 12:06 p.m. UTC | #1
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Leonid Myravjev
> Sent: Wednesday, December 5, 2018 8:35 PM
> To: Lu, Wenzhuo <wenzhuo.lu@intel.com>
> Cc: dev@dpdk.org; Leonid Myravjev <asm@asm.pp.ru>
> Subject: [dpdk-dev] [PATCH] net/e1000: xstat RXERRC statictic register added.
> 
> Signed-off-by: Leonid Myravjev <asm@asm.pp.ru>
> ---
>  drivers/net/e1000/igb_ethdev.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c
> index d9d29d22f..ebc242cd9 100644
> --- a/drivers/net/e1000/igb_ethdev.c
> +++ b/drivers/net/e1000/igb_ethdev.c
> @@ -458,6 +458,7 @@ struct rte_igb_xstats_name_off {  static const struct
> rte_igb_xstats_name_off rte_igb_stats_strings[] = {
>  	{"rx_crc_errors", offsetof(struct e1000_hw_stats, crcerrs)},
>  	{"rx_align_errors", offsetof(struct e1000_hw_stats, algnerrc)},
> +	{"rx_rx_errors", offsetof(struct e1000_hw_stats, rxerrc)},

I have no objection for this change, I just feel add all missing field (that be read from register in igb_read_stats_registers) in this array makes the patch complete.
Would do you think?

>  	{"rx_symbol_errors", offsetof(struct e1000_hw_stats, symerrs)},
>  	{"rx_missed_packets", offsetof(struct e1000_hw_stats, mpc)},
>  	{"tx_single_collision_packets", offsetof(struct e1000_hw_stats, scc)},
> --
> 2.17.1
  

Patch

diff --git a/drivers/net/e1000/igb_ethdev.c b/drivers/net/e1000/igb_ethdev.c
index d9d29d22f..ebc242cd9 100644
--- a/drivers/net/e1000/igb_ethdev.c
+++ b/drivers/net/e1000/igb_ethdev.c
@@ -458,6 +458,7 @@  struct rte_igb_xstats_name_off {
 static const struct rte_igb_xstats_name_off rte_igb_stats_strings[] = {
 	{"rx_crc_errors", offsetof(struct e1000_hw_stats, crcerrs)},
 	{"rx_align_errors", offsetof(struct e1000_hw_stats, algnerrc)},
+	{"rx_rx_errors", offsetof(struct e1000_hw_stats, rxerrc)},
 	{"rx_symbol_errors", offsetof(struct e1000_hw_stats, symerrs)},
 	{"rx_missed_packets", offsetof(struct e1000_hw_stats, mpc)},
 	{"tx_single_collision_packets", offsetof(struct e1000_hw_stats, scc)},