Date: Mon, 22 Jul 2013 19:54:15 -0700 From: Adrian Chadd <adrian@freebsd.org> To: Jack F Vogel <jfv@freebsd.org>, FreeBSD Net <freebsd-net@freebsd.org>, freebsd-current <freebsd-current@freebsd.org> Subject: [ixgbe] Register txd/rxd sysctl values Message-ID: <CAJ-Vmom0K2a4doXRDhBdkeHR3--_Mh2oEkGjbJfKEGH--oeRgw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, This patch adds and hw.ixgbe tree and adds rxd/txd. These are already tunables but it wasn't easy to see if these were being set. I'd like to commit this soon. Thanks! -adrian adrian@freebsd-10-hack2:~/work/freebsd/head/src/sys/dev/ixgbe % svn diff . Index: ixgbe.c =================================================================== --- ixgbe.c (revision 253553) +++ ixgbe.c (working copy) @@ -234,6 +234,8 @@ ** TUNEABLE PARAMETERS: */ +static SYSCTL_NODE(_hw, OID_AUTO, ixgbe, CTLFLAG_RD, 0, "IXGBE driver parameters"); + /* ** AIM: Adaptive Interrupt Moderation ** which means that the interrupt rate @@ -291,6 +293,11 @@ static int ixgbe_rxd = PERFORM_RXD; TUNABLE_INT("hw.ixgbe.rxd", &ixgbe_rxd); +SYSCTL_INT(_hw_ixgbe, OID_AUTO, rxd, CTLFLAG_RDTUN, &ixgbe_rxd, 0, + "Number of receive descriptors per queue"); +SYSCTL_INT(_hw_ixgbe, OID_AUTO, txd, CTLFLAG_RDTUN, &ixgbe_txd, 0, + "Number of transmit descriptors per queue"); + /* ** Defining this on will allow the use ** of unsupported SFP+ modules, note that adrian@freebsd-10-hack2:~/work/freebsd/head/src/sys/dev/ixgbe %
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmom0K2a4doXRDhBdkeHR3--_Mh2oEkGjbJfKEGH--oeRgw>