svn commit: r281749 - projects/em_mq/sys/dev/e1000
Sean Bruno
sbruno at FreeBSD.org
Sun Apr 19 20:02:10 UTC 2015
Author: sbruno
Date: Sun Apr 19 20:02:09 2015
New Revision: 281749
URL: https://svnweb.freebsd.org/changeset/base/281749
Log:
Add DDB includes for future DB_FUNC work.
Add explict programming of RDTR register.
Add EM_MULTIQUEUE Values for RADV, RDTR.
- arbitrarily choose an RADV that is 2xRDTR.
Modified:
projects/em_mq/sys/dev/e1000/if_em.c
Modified: projects/em_mq/sys/dev/e1000/if_em.c
==============================================================================
--- projects/em_mq/sys/dev/e1000/if_em.c Sun Apr 19 18:10:39 2015 (r281748)
+++ projects/em_mq/sys/dev/e1000/if_em.c Sun Apr 19 20:02:09 2015 (r281749)
@@ -33,6 +33,7 @@
/*$FreeBSD$*/
#include "opt_em.h"
+#include "opt_ddb.h"
#include "opt_inet.h"
#include "opt_inet6.h"
@@ -42,6 +43,10 @@
#include <sys/param.h>
#include <sys/systm.h>
+#ifdef DDB
+#include <sys/types.h>
+#include <ddb/ddb.h>
+#endif
#if __FreeBSD_version >= 800000
#include <sys/buf_ring.h>
#endif
@@ -4353,6 +4358,9 @@ em_initialize_receive_unit(struct adapte
E1000_WRITE_REG(&adapter->hw, E1000_RADV,
adapter->rx_abs_int_delay.value);
+
+ E1000_WRITE_REG(&adapter->hw, E1000_RDTR,
+ adapter->rx_int_delay.value);
/*
* Set the interrupt throttling rate. Value is calculated
* as DEFAULT_ITR = 1/(MAX_INTS_PER_SEC * 256ns)
More information about the svn-src-projects
mailing list