Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175136560
D60290.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
496 B
Referenced Files
None
Subscribers
None
D60290.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D60290: iflib: Do not ring the transmit doorbell when nothing is pending
Attached
Detach File
Event Timeline
Log In to Comment