move sysctl's under hw.hifn; change max batching default to 1 (no batching)
based on what I learned from the Broadcom h/w
This commit is contained in:
parent
ee94ed449a
commit
70be8cba19
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109596
@ -160,18 +160,20 @@ READ_REG_1(struct hifn_softc *sc, bus_size_t reg)
|
||||
}
|
||||
#define WRITE_REG_1(sc, reg, val) hifn_write_reg_1(sc, reg, val)
|
||||
|
||||
SYSCTL_NODE(_hw, OID_AUTO, hifn, CTLFLAG_RD, 0, "Hifn driver parameters");
|
||||
|
||||
#ifdef HIFN_DEBUG
|
||||
static int hifn_debug = 0;
|
||||
SYSCTL_INT(_debug, OID_AUTO, hifn, CTLFLAG_RW, &hifn_debug,
|
||||
0, "Hifn driver debugging printfs");
|
||||
SYSCTL_INT(_hw_hifn, OID_AUTO, debug, CTLFLAG_RW, &hifn_debug,
|
||||
0, "control debugging msgs");
|
||||
#endif
|
||||
|
||||
static struct hifn_stats hifnstats;
|
||||
SYSCTL_STRUCT(_kern, OID_AUTO, hifn_stats, CTLFLAG_RD, &hifnstats,
|
||||
hifn_stats, "Hifn driver statistics");
|
||||
static int hifn_maxbatch = 2; /* XXX tune based on part+sys speed */
|
||||
SYSCTL_INT(_kern, OID_AUTO, hifn_maxbatch, CTLFLAG_RW, &hifn_maxbatch,
|
||||
0, "Hifn driver: max ops to batch w/o interrupt");
|
||||
SYSCTL_STRUCT(_hw_hifn, OID_AUTO, stats, CTLFLAG_RD, &hifnstats,
|
||||
hifn_stats, "driver statistics");
|
||||
static int hifn_maxbatch = 1;
|
||||
SYSCTL_INT(_hw_hifn, OID_AUTO, maxbatch, CTLFLAG_RW, &hifn_maxbatch,
|
||||
0, "max ops to batch w/o interrupt");
|
||||
|
||||
/*
|
||||
* Probe for a supported device. The PCI vendor and device
|
||||
|
Loading…
Reference in New Issue
Block a user