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

Hans Petter Selasky hselasky at FreeBSD.org
Wed Aug 9 10:30:57 UTC 2017


Author: hselasky
Date: Wed Aug  9 10:30:55 2017
New Revision: 322305
URL: https://svnweb.freebsd.org/changeset/base/322305

Log:
  Increment queue drops in the network statistics when transmitted packets
  are dropped by the mlx4en(4) driver.
  
  Submitted by:		Sepherosa Ziehau <sephe at dragonflybsd.org>
  MFC after:		3 days
  Sponsored by:		Mellanox Technologies

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

Modified: head/sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
==============================================================================
--- head/sys/dev/mlx4/mlx4_en/mlx4_en_tx.c	Wed Aug  9 10:27:21 2017	(r322304)
+++ head/sys/dev/mlx4/mlx4_en/mlx4_en_tx.c	Wed Aug  9 10:30:55 2017	(r322305)
@@ -1071,6 +1071,10 @@ mlx4_en_transmit(struct ifnet *dev, struct mbuf *m)
 		taskqueue_enqueue(cq->tq, &cq->cq_task);
 	}
 
+#if __FreeBSD_version >= 1100000
+	if (unlikely(err != 0))
+		if_inc_counter(dev, IFCOUNTER_IQDROPS, 1);
+#endif
 	return (err);
 }
 


More information about the svn-src-head mailing list