svn commit: r322497 - stable/11/sys/ofed/drivers/net/mlx4

Hans Petter Selasky hselasky at FreeBSD.org
Mon Aug 14 12:37:00 UTC 2017


Author: hselasky
Date: Mon Aug 14 12:36:58 2017
New Revision: 322497
URL: https://svnweb.freebsd.org/changeset/base/322497

Log:
  MFC r322305:
  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>
  Sponsored by:		Mellanox Technologies

Modified:
  stable/11/sys/ofed/drivers/net/mlx4/en_tx.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/ofed/drivers/net/mlx4/en_tx.c
==============================================================================
--- stable/11/sys/ofed/drivers/net/mlx4/en_tx.c	Mon Aug 14 11:23:07 2017	(r322496)
+++ stable/11/sys/ofed/drivers/net/mlx4/en_tx.c	Mon Aug 14 12:36:58 2017	(r322497)
@@ -1073,6 +1073,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-all mailing list