Increment queue drops in the network statistics when transmitted packets

are dropped by the mlx4en(4) driver.

Submitted by:		Sepherosa Ziehau <sephe@dragonflybsd.org>
MFC after:		3 days
Sponsored by:		Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2017-08-09 10:30:55 +00:00
parent f7833544f1
commit a3d0173d98
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322305

View file

@ -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);
}