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 <se...@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);
 }
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to