svn commit: r281750 - projects/em_mq/sys/dev/e1000
Sean Bruno
sbruno at FreeBSD.org
Sun Apr 19 20:08:37 UTC 2015
Author: sbruno
Date: Sun Apr 19 20:08:36 2015
New Revision: 281750
URL: https://svnweb.freebsd.org/changeset/base/281750
Log:
Update the configured default RXD and TXD to 4096 if EM_MULTIQUEUE is defined.
Modified:
projects/em_mq/sys/dev/e1000/if_em.h
Modified: projects/em_mq/sys/dev/e1000/if_em.h
==============================================================================
--- projects/em_mq/sys/dev/e1000/if_em.h Sun Apr 19 20:02:09 2015 (r281749)
+++ projects/em_mq/sys/dev/e1000/if_em.h Sun Apr 19 20:08:36 2015 (r281750)
@@ -53,7 +53,11 @@
*/
#define EM_MIN_TXD 80
#define EM_MAX_TXD 4096
+#ifdef EM_MULTIQUEUE
+#define EM_DEFAULT_TXD 4096
+#else
#define EM_DEFAULT_TXD 1024
+#endif
/*
* EM_RXD - Maximum number of receive Descriptors
@@ -70,7 +74,11 @@
*/
#define EM_MIN_RXD 80
#define EM_MAX_RXD 4096
+#ifdef EM_MULTIQUEUE
+#define EM_DEFAULT_RXD 4096
+#else
#define EM_DEFAULT_RXD 1024
+#endif
/*
* EM_TIDV - Transmit Interrupt Delay Value
@@ -117,7 +125,11 @@
* restoring the network connection. To eliminate the potential
* for the hang ensure that EM_RDTR is set to 0.
*/
+#ifdef EM_MULTIQUEUE
+#define EM_RDTR 64
+#else
#define EM_RDTR 0
+#endif
/*
* Receive Interrupt Absolute Delay Timer (Not valid for 82542/82543/82544)
@@ -130,7 +142,11 @@
* along with EM_RDTR, may improve traffic throughput in specific network
* conditions.
*/
+#ifdef EM_MULTIQUEUE
+#define EM_RADV 128
+#else
#define EM_RADV 64
+#endif
/*
* This parameter controls the max duration of transmit watchdog.
More information about the svn-src-projects
mailing list