hn: Increase odrops for if_transmit method if drbr_enqueue fails.
MFC after: 1 week Sponsored by: Microsoft OSTC
This commit is contained in:
parent
01a40173f7
commit
62cffb8d93
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298561
@ -2700,8 +2700,10 @@ hn_transmit(struct ifnet *ifp, struct mbuf *m)
|
||||
txr = &sc->hn_tx_ring[idx];
|
||||
|
||||
error = drbr_enqueue(ifp, txr->hn_mbuf_br, m);
|
||||
if (error)
|
||||
if (error) {
|
||||
if_inc_counter(ifp, IFCOUNTER_OQDROPS, 1);
|
||||
return error;
|
||||
}
|
||||
|
||||
if (txr->hn_oactive)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user