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 Fix sysctl stuff. Make the top sysctl node...
details: https://anonhg.NetBSD.org/src/rev/fa630fa7e975
branches: trunk
changeset: 350736:fa630fa7e975
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Wed Jan 18 10:18:40 2017 +0000
description:
Fix sysctl stuff. Make the top sysctl node and keep the pointer.
diffstat:
sys/dev/pci/ixgbe/ixgbe.c | 5 ++++-
sys/dev/pci/ixgbe/ixgbe.h | 3 ++-
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (42 lines):
diff -r cf980db77158 -r fa630fa7e975 sys/dev/pci/ixgbe/ixgbe.c
--- a/sys/dev/pci/ixgbe/ixgbe.c Wed Jan 18 08:23:03 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.c Wed Jan 18 10:18:40 2017 +0000
@@ -59,7 +59,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
/*$FreeBSD: head/sys/dev/ixgbe/if_ix.c 302384 2016-07-07 03:39:18Z sbruno $*/
-/*$NetBSD: ixgbe.c,v 1.60 2017/01/18 08:23:03 msaitoh Exp $*/
+/*$NetBSD: ixgbe.c,v 1.61 2017/01/18 10:18:40 msaitoh Exp $*/
#include "opt_inet.h"
#include "opt_inet6.h"
@@ -4437,6 +4437,9 @@
int rc;
const struct sysctlnode *rnode;
+ if (adapter->sysctltop != NULL)
+ return adapter->sysctltop;
+
log = &adapter->sysctllog;
dvname = device_xname(adapter->dev);
diff -r cf980db77158 -r fa630fa7e975 sys/dev/pci/ixgbe/ixgbe.h
--- a/sys/dev/pci/ixgbe/ixgbe.h Wed Jan 18 08:23:03 2017 +0000
+++ b/sys/dev/pci/ixgbe/ixgbe.h Wed Jan 18 10:18:40 2017 +0000
@@ -59,7 +59,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
/*$FreeBSD: head/sys/dev/ixgbe/ixgbe.h 303890 2016-08-09 19:32:06Z dumbbell $*/
-/*$NetBSD: ixgbe.h,v 1.18 2016/12/05 08:50:29 msaitoh Exp $*/
+/*$NetBSD: ixgbe.h,v 1.19 2017/01/18 10:18:40 msaitoh Exp $*/
#ifndef _IXGBE_H_
@@ -617,6 +617,7 @@
u64 noproto;
#endif
struct sysctllog *sysctllog;
+ const struct sysctlnode *sysctltop;
ixgbe_extmem_head_t jcl_head;
};
Home |
Main Index |
Thread Index |
Old Index