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 <[email protected]>
  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);
 }
 
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to