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
@ -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…
x
Reference in New Issue
Block a user