mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 16:10:55 +00:00
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:
parent
f7833544f1
commit
a3d0173d98
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322305
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue