hn: Increase odrops for if_transmit method if drbr_enqueue fails.

MFC after:	1 week
Sponsored by:	Microsoft OSTC
This commit is contained in:
Sepherosa Ziehau 2016-04-25 03:14:55 +00:00
parent 01a40173f7
commit 62cffb8d93
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298561

View File

@ -2700,8 +2700,10 @@ hn_transmit(struct ifnet *ifp, struct mbuf *m)
txr = &sc->hn_tx_ring[idx]; txr = &sc->hn_tx_ring[idx];
error = drbr_enqueue(ifp, txr->hn_mbuf_br, m); error = drbr_enqueue(ifp, txr->hn_mbuf_br, m);
if (error) if (error) {
if_inc_counter(ifp, IFCOUNTER_OQDROPS, 1);
return error; return error;
}
if (txr->hn_oactive) if (txr->hn_oactive)
return 0; return 0;