[Differential] D24937: Add tunable net.iflib.tx_update_freq to set transmit descriptor update frequency

neel_neelc.org (Neel Chauhan) phabric-noreply at FreeBSD.org
Tue Jun 23 15:04:58 UTC 2020


neel_neelc.org updated this revision to Diff 73520.
neel_neelc.org retitled this revision from "Add sysctl net.iflib.tx_update_freq to set transmit descriptor update frequency" to "Add tunable net.iflib.tx_update_freq to set transmit descriptor update frequency".
neel_neelc.org edited the summary of this revision.
neel_neelc.org edited the test plan for this revision.
neel_neelc.org added a comment.


  Done.

REPOSITORY
  rS FreeBSD src repository

CHANGES SINCE LAST UPDATE
  https://reviews.freebsd.org/D24937?vs=73493&id=73520

CHANGES SINCE LAST ACTION
  https://reviews.freebsd.org/D24937/new/

REVISION DETAIL
  https://reviews.freebsd.org/D24937

AFFECTED FILES
  sys/net/iflib.c

CHANGE DETAILS

diff --git a/sys/net/iflib.c b/sys/net/iflib.c
--- a/sys/net/iflib.c
+++ b/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;



EMAIL PREFERENCES
  https://reviews.freebsd.org/settings/panel/emailpreferences/

To: neel_neelc.org, shurd, #iflib
Cc: gallatin, aleksandr.fedorov_itglobal.com, koobs, imp, ae, melifaro, #contributor_reviews_base, freebsd-net-list, mmacy, kpraveen.lkml_gmail.com, marcnarc_gmail.com, simonvella_gmail.com, novice_techie.com, tommi.pernila_iki.fi, krzysztof.galazka_intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24937.73520.patch
Type: text/x-patch
Size: 889 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20200623/76e7e995/attachment.bin>


More information about the freebsd-net mailing list