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,rx}_desc sysctl to syn...
details: https://anonhg.NetBSD.org/src/rev/3077b47fc0c7
branches: trunk
changeset: 365792:3077b47fc0c7
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Mon Apr 25 07:57:23 2022 +0000
description:
Add missing num_{tx,rx}_desc sysctl to sync with ixgbe.c.
diffstat:
sys/dev/pci/ixgbe/ixv.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r 782822bfd4b5 -r 3077b47fc0c7 sys/dev/pci/ixgbe/ixv.c
--- a/sys/dev/pci/ixgbe/ixv.c Mon Apr 25 07:56:47 2022 +0000
+++ b/sys/dev/pci/ixgbe/ixv.c Mon Apr 25 07:57:23 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ixv.c,v 1.179 2022/04/25 07:54:42 msaitoh Exp $ */
+/* $NetBSD: ixv.c,v 1.180 2022/04/25 07:57:23 msaitoh Exp $ */
/******************************************************************************
@@ -35,7 +35,7 @@
/*$FreeBSD: head/sys/dev/ixgbe/if_ixv.c 331224 2018-03-19 20:55:05Z erj $*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ixv.c,v 1.179 2022/04/25 07:54:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ixv.c,v 1.180 2022/04/25 07:57:23 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -2563,6 +2563,18 @@
aprint_error_dev(dev, "could not create sysctl\n");
if (sysctl_createv(log, 0, &rnode, &cnode,
+ CTLFLAG_READONLY, CTLTYPE_INT,
+ "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");
+
+ if (sysctl_createv(log, 0, &rnode, &cnode,
CTLFLAG_READWRITE, CTLTYPE_INT, "rx_process_limit",
SYSCTL_DESCR("max number of RX packets to process"),
ixv_sysctl_rx_process_limit, 0, (void *)adapter, 0, CTL_CREATE,
Home |
Main Index |
Thread Index |
Old Index