Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159691174
D24937/new/.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
928 B
Referenced Files
None
Subscribers
None
D24937/new/.diff
View Options
Index: sys/net/iflib.c
===================================================================
--- sys/net/iflib.c
+++ sys/net/iflib.c
@@ -586,8 +586,11 @@
static int iflib_no_tx_batch = 0;
SYSCTL_INT(_net_iflib, OID_AUTO, no_tx_batch, CTLFLAG_RW,
&iflib_no_tx_batch, 0, "minimize transmit latency at the possible expense of throughput");
+int iflib_tx_update_freq = IFLIB_DEFAULT_TX_UPDATE_FREQ;
+SYSCTL_UINT(_net_iflib, OID_AUTO, tx_update_freq, CTLFLAG_RWTUN,
+ &iflib_tx_update_freq, IFLIB_DEFAULT_TX_UPDATE_FREQ,
+ "tramsmit descriptor updates per second");
-
#if IFLIB_DEBUG_COUNTERS
static int iflib_tx_seen;
@@ -1768,8 +1771,7 @@
/* Set number of descriptors available */
txq->ift_qstatus = IFLIB_QUEUE_IDLE;
- /* XXX make configurable */
- txq->ift_update_freq = IFLIB_DEFAULT_TX_UPDATE_FREQ;
+ txq->ift_update_freq = iflib_tx_update_freq;
/* Reset indices */
txq->ift_cidx_processed = 0;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 18, 2:59 AM (16 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34042932
Default Alt Text
D24937/new/.diff (928 B)
Attached To
Mode
D24937: Add tunable net.iflib.tx_update_freq to set transmit descriptor update frequency
Attached
Detach File
Event Timeline
Log In to Comment