Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci/ixgbe Add missing num_tx_desc sysctl.



details:   https://anonhg.NetBSD.org/src/rev/782822bfd4b5
branches:  trunk
changeset: 365791:782822bfd4b5
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon Apr 25 07:56:47 2022 +0000

description:
Add missing num_tx_desc sysctl.

diffstat:

 sys/dev/pci/ixgbe/ixgbe.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r ba4104815d36 -r 782822bfd4b5 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Mon Apr 25 07:54:42 2022 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Mon Apr 25 07:56:47 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixgbe.c,v 1.313 2022/04/25 07:54:42 msaitoh Exp $ */
+/* $NetBSD: ixgbe.c,v 1.314 2022/04/25 07:56:47 msaitoh Exp $ */
 
 /******************************************************************************
 
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.313 2022/04/25 07:54:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixgbe.c,v 1.314 2022/04/25 07:56:47 msaitoh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -3430,7 +3430,13 @@
 
        if (sysctl_createv(log, 0, &rnode, &cnode,
            CTLFLAG_READONLY, CTLTYPE_INT,
-           "num_rx_desc", SYSCTL_DESCR("Number of rx descriptors"),
+           "num_tx_desc", SYSCTL_DESCR("Number of TX descriptors"),
+           NULL, 0, &adapter->num_tx_desc, 0, CTL_CREATE, CTL_EOL) != 0)
+               aprint_error_dev(dev, "could not create sysctl\n");
+
+       if (sysctl_createv(log, 0, &rnode, &cnode,
+           CTLFLAG_READONLY, CTLTYPE_INT,
+           "num_rx_desc", SYSCTL_DESCR("Number of RX descriptors"),
            NULL, 0, &adapter->num_rx_desc, 0, CTL_CREATE, CTL_EOL) != 0)
                aprint_error_dev(dev, "could not create sysctl\n");
 



Home | Main Index | Thread Index | Old Index