Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2018 13:38:35 +0000 (UTC)
From:      Slava Shwartsman <slavash@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341550 - head/sys/dev/mlx4/mlx4_en
Message-ID:  <201812051338.wB5DcZTc076283@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812051338.wB5DcZTc076283>