Page MenuHomeFreeBSD

D60290.diff
No OneTemporary

D60290.diff

diff --git a/sys/net/iflib.c b/sys/net/iflib.c
--- a/sys/net/iflib.c
+++ b/sys/net/iflib.c
@@ -3457,6 +3457,13 @@
if_ctx_t ctx = txq->ift_ctx;
qidx_t dbval, max;
+ /*
+ * Nothing has been queued since the last doorbell. The threshold is
+ * zero for a lightly used ring, so the test below would not catch this.
+ */
+ if (txq->ift_db_pending == 0)
+ return (false);
+
max = TXQ_MAX_DB_DEFERRED(txq, txq->ift_in_use);
/* force || threshold exceeded || at the edge of the ring */

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 9, 1:50 PM (18 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40299878
Default Alt Text
D60290.diff (496 B)

Event Timeline