Fix sysctl stuff. Make the top sysctl node and keep the pointer.

This commit is contained in:
msaitoh 2017-01-18 10:18:40 +00:00
parent 54d6c9b3dd
commit 2762144f22
2 changed files with 6 additions and 2 deletions

View File

@ -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 @@ ixgbe_sysctl_instance(struct adapter *adapter)
int rc;
const struct sysctlnode *rnode;
if (adapter->sysctltop != NULL)
return adapter->sysctltop;
log = &adapter->sysctllog;
dvname = device_xname(adapter->dev);

View File

@ -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 @@ struct adapter {
u64 noproto;
#endif
struct sysctllog *sysctllog;
const struct sysctlnode *sysctltop;
ixgbe_extmem_head_t jcl_head;
};