svn commit: r341550 - head/sys/dev/mlx4/mlx4_en

Slava Shwartsman slavash at FreeBSD.org
Wed Dec 5 13:38:36 UTC 2018


Author: slavash
Date: Wed Dec  5 13:38:35 2018
New Revision: 341550
URL: https://svnweb.freebsd.org/changeset/base/341550

Log:
  mlx4en: Remove duplicate statistics variable assignment.
  
  The "priv->pkstats.rx_dropped" is written twice in a row.
  
  Submitted by:   hselasky@
  Approved by:    hselasky (mentor)
  MFC after:      1 week
  Sponsored by:   Mellanox Technologies

Modified:
  head/sys/dev/mlx4/mlx4_en/mlx4_en_port.c

Modified: head/sys/dev/mlx4/mlx4_en/mlx4_en_port.c
==============================================================================
--- head/sys/dev/mlx4/mlx4_en/mlx4_en_port.c	Wed Dec  5 13:32:46 2018	(r341549)
+++ head/sys/dev/mlx4/mlx4_en/mlx4_en_port.c	Wed Dec  5 13:38:35 2018	(r341550)
@@ -256,7 +256,6 @@ int mlx4_en_DUMP_ETH_STATS(struct mlx4_en_dev *mdev, u
 	priv->pkstats.rx_length_errors = be32_to_cpu(mlx4_en_stats->RdropLength);
 	priv->pkstats.rx_over_errors = be32_to_cpu(mlx4_en_stats->RdropOvflw);
 	priv->pkstats.rx_crc_errors = be32_to_cpu(mlx4_en_stats->RCRC);
-	priv->pkstats.rx_dropped = be32_to_cpu(mlx4_en_stats->RdropOvflw);
 	priv->pkstats.tx_dropped = be32_to_cpu(mlx4_en_stats->TDROP);
 
 	/* RX stats */


More information about the svn-src-head mailing list