mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue