Date: Sun, 19 Apr 2015 20:02:10 +0000 (UTC) From: Sean Bruno <sbruno@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r281749 - projects/em_mq/sys/dev/e1000 Message-ID: <201504192002.t3JK2AdR008366@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504192002.t3JK2AdR008366>