Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147950660
D18532.1784894844.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
834 B
Referenced Files
None
Subscribers
None
D18532.1784894844.diff
View Options
Index: sys/net/iflib.c
===================================================================
--- sys/net/iflib.c
+++ sys/net/iflib.c
@@ -3444,7 +3444,7 @@
if (reclaimed)
txq->ift_qstatus = IFLIB_QUEUE_IDLE;
consumed = mcast_sent = bytes_sent = pkt_sent = 0;
- count = MIN(avail, TX_BATCH_SIZE);
+ count = avail;
#ifdef INVARIANTS
if (iflib_verbose_debug)
printf("%s avail=%d ifc_flags=%x txq_avail=%d ", __FUNCTION__,
@@ -5157,7 +5157,7 @@
snprintf(txq->ift_db_mtx_name, MTX_NAME_LEN, "%s:tx(%d):db",
device_get_nameunit(dev), txq->ift_id);
- err = ifmp_ring_alloc(&txq->ift_br, 2048, txq, iflib_txq_drain,
+ err = ifmp_ring_alloc(&txq->ift_br, scctx->isc_ntxd[txq->ift_br_offset]/2, txq, iflib_txq_drain,
iflib_txq_can_drain, M_IFLIB, M_WAITOK);
if (err) {
/* XXX free any allocated rings */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 24, 12:07 PM (7 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29246983
Default Alt Text
D18532.1784894844.diff (834 B)
Attached To
Mode
D18532: Use byte-counting rather than packet counting for TX batch size
Attached
Detach File
Event Timeline
Log In to Comment