mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Sysctl names should not contain dots. Convert them to underlines.
This commit is contained in:
parent
869093b15d
commit
7298db81fe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121469
@ -124,75 +124,75 @@ to see if the default queues sizes should be overwritten or not. The
|
||||
following variables are checked and interpreted as unsigned integer
|
||||
values (in either radix):
|
||||
.Bl -tag -width XXX
|
||||
.It Cm hw.hatmN.rbps0.size
|
||||
.It Cm hw.hatmN.rbps0_size
|
||||
Size of the small receive buffer pool 0. This pool is used for all
|
||||
except raw AAL connections. The pool size must be a power of two between
|
||||
4 and 8192 inclusive. When attaching the driver allocates this number
|
||||
of mbufs.
|
||||
.It Cm hw.hatmN.rbps0.thresh
|
||||
.It Cm hw.hatmN.rbps0_thresh
|
||||
Interrupt threshold for small receive buffer pool 0. When the number of free
|
||||
buffers in the pool falls below this threshold it generates an interrupt
|
||||
so that the driver can refill the pool.
|
||||
.It Cm hw.hatmN.rbpl0.thresh
|
||||
.It Cm hw.hatmN.rbpl0_thresh
|
||||
Size of the large receive buffer pool 0. This pool is used for all
|
||||
except raw AAL connections. The pool size must be a power of two between
|
||||
4 and 8192 inclusive. When attaching the driver allocates this number
|
||||
of mbufs with clusters.
|
||||
.It Cm hw.hatmN.rbpl0.thresh
|
||||
.It Cm hw.hatmN.rbpl0_thresh
|
||||
Interrupt threshold for large receive buffer pool 0. When the number of free
|
||||
buffers in the pool falls below this threshold it generates an interrupt
|
||||
so that the driver can refill the pool.
|
||||
.It Cm hw.hatmN.rbrq0.size
|
||||
.It Cm hw.hatmN.rbrq0_size
|
||||
Size of receive buffer return queue 0. This queue is used to return buffers
|
||||
filled with received frames to the driver. The size must be a power of 2
|
||||
between 1 and 16384 inclusive.
|
||||
.It Cm hw.hatmN.rbrq0.thresh
|
||||
.It Cm hw.hatmN.rbrq0_thresh
|
||||
Interrupt threshold for receive buffer return queue 0. This threshold
|
||||
should only be triggered in exceptional cases.
|
||||
.It Cm hw.hatmN.rbrq0.tout
|
||||
.It Cm hw.hatmN.rbrq0_tout
|
||||
Interrupt timeout for receive buffer return queue 0. An interrupt is generated
|
||||
after this time if the queue is not empty. The number is in internal card
|
||||
ticks.
|
||||
.It Cm hw.hatmN.rbrq0.pcnt
|
||||
.It Cm hw.hatmN.rbrq0_pcnt
|
||||
Packet count threshold for receive buffer return queue 0. An interrupt
|
||||
is generated if this number of packets is in the queue.
|
||||
.It Cm hw.hatmN.rbps1.size
|
||||
.It Cm hw.hatmN.rbps1_size
|
||||
Size of the small receive buffer pool 1. This pool is used for all
|
||||
raw AAL connections. The pool size must be a power of two between
|
||||
4 and 8192 inclusive. When attaching the driver allocates this number
|
||||
of mbufs.
|
||||
.It Cm hw.hatmN.rbps1.thresh
|
||||
.It Cm hw.hatmN.rbps1_thresh
|
||||
Interrupt threshold for small receive buffer pool 1. When the number of free
|
||||
buffers in the pool falls below this threshold it generates an interrupt
|
||||
so that the driver can refill the pool.
|
||||
.It Cm hw.hatmN.rbrq1.size
|
||||
.It Cm hw.hatmN.rbrq1_size
|
||||
Size of receive buffer return queue 1. This queue is used to return buffers
|
||||
filled with received cells to the driver. The size must be a power of 2
|
||||
between 1 and 16384 inclusive.
|
||||
.It Cm hw.hatmN.rbrq1.thresh
|
||||
.It Cm hw.hatmN.rbrq1_thresh
|
||||
Interrupt threshold for receive buffer return queue 1. This threshold
|
||||
should only be triggered in exceptional cases.
|
||||
.It Cm hw.hatmN.rbrq1.tout
|
||||
.It Cm hw.hatmN.rbrq1_tout
|
||||
Interrupt timeout for receive buffer return queue 1. An interrupt is generated
|
||||
after this time if the queue is not empty. The number is in internal card
|
||||
ticks.
|
||||
.It Cm hw.hatmN.rbrq1.pcnt
|
||||
.It Cm hw.hatmN.rbrq1_pcnt
|
||||
Packet count threshold for receive buffer return queue 0. An interrupt
|
||||
is generated if this number of cells is in the queue.
|
||||
.It Cm hw.hatmN.irq0.size
|
||||
.It Cm hw.hatmN.irq0_size
|
||||
Size of interrupt queue 0. This must be a number between 1 and 1023 inclusive.
|
||||
.It Cm hw.hatmN.irq0.thresh
|
||||
.It Cm hw.hatmN.irq0_thresh
|
||||
Interrupt retrigger threshold of interrupt queue 0. A new interrupt is trigger
|
||||
if the queue fill state reaches this threshold and the interrupt was no
|
||||
served.
|
||||
.It Cm hw.hatmN.tbrq0.size
|
||||
.It Cm hw.hatmN.tbrq0_size
|
||||
Transmit buffer return queue 0 size. This queue is used to feed back empty
|
||||
buffers of transmitted frames back to the driver. It must be a power of 2
|
||||
between 1 and 4096 inclusive.
|
||||
.It Cm hw.hatmN.tbrq0.thresh
|
||||
.It Cm hw.hatmN.tbrq0_thresh
|
||||
Transmit buffer return queue 0 threshold. An interrupt is generated if the
|
||||
queue fill state reaches this point.
|
||||
.It Cm hw.hatmN.tpdrq.size
|
||||
.It Cm hw.hatmN.tpdrq_size
|
||||
Transmit descriptor ready queue size. This queue is used by the driver
|
||||
to feed transmit descriptors into the card. The size must be a power of 2
|
||||
between 1 and 16384 inclusive.
|
||||
|
@ -1334,61 +1334,61 @@ static int
|
||||
hatm_configure(struct hatm_softc *sc)
|
||||
{
|
||||
/* Receive buffer pool 0 small */
|
||||
kenv_getuint(sc, "rbps0.size", &sc->rbp_s0.size,
|
||||
kenv_getuint(sc, "rbps0_size", &sc->rbp_s0.size,
|
||||
HE_CONFIG_RBPS0_SIZE, 0);
|
||||
kenv_getuint(sc, "rbps0.thresh", &sc->rbp_s0.thresh,
|
||||
kenv_getuint(sc, "rbps0_thresh", &sc->rbp_s0.thresh,
|
||||
HE_CONFIG_RBPS0_THRESH, 0);
|
||||
sc->rbp_s0.bsize = MBUF0_SIZE;
|
||||
|
||||
/* Receive buffer pool 0 large */
|
||||
kenv_getuint(sc, "rbpl0.size", &sc->rbp_l0.size,
|
||||
kenv_getuint(sc, "rbpl0_size", &sc->rbp_l0.size,
|
||||
HE_CONFIG_RBPL0_SIZE, 0);
|
||||
kenv_getuint(sc, "rbpl0.thresh", &sc->rbp_l0.thresh,
|
||||
kenv_getuint(sc, "rbpl0_thresh", &sc->rbp_l0.thresh,
|
||||
HE_CONFIG_RBPL0_THRESH, 0);
|
||||
sc->rbp_l0.bsize = MCLBYTES - MBUFL_OFFSET;
|
||||
|
||||
/* Receive buffer return queue 0 */
|
||||
kenv_getuint(sc, "rbrq0.size", &sc->rbrq_0.size,
|
||||
kenv_getuint(sc, "rbrq0_size", &sc->rbrq_0.size,
|
||||
HE_CONFIG_RBRQ0_SIZE, 0);
|
||||
kenv_getuint(sc, "rbrq0.thresh", &sc->rbrq_0.thresh,
|
||||
kenv_getuint(sc, "rbrq0_thresh", &sc->rbrq_0.thresh,
|
||||
HE_CONFIG_RBRQ0_THRESH, 0);
|
||||
kenv_getuint(sc, "rbrq0.tout", &sc->rbrq_0.tout,
|
||||
kenv_getuint(sc, "rbrq0_tout", &sc->rbrq_0.tout,
|
||||
HE_CONFIG_RBRQ0_TOUT, 0);
|
||||
kenv_getuint(sc, "rbrq0.pcnt", &sc->rbrq_0.pcnt,
|
||||
kenv_getuint(sc, "rbrq0_pcnt", &sc->rbrq_0.pcnt,
|
||||
HE_CONFIG_RBRQ0_PCNT, 0);
|
||||
|
||||
/* Receive buffer pool 1 small */
|
||||
kenv_getuint(sc, "rbps1.size", &sc->rbp_s1.size,
|
||||
kenv_getuint(sc, "rbps1_size", &sc->rbp_s1.size,
|
||||
HE_CONFIG_RBPS1_SIZE, 0);
|
||||
kenv_getuint(sc, "rbps1.thresh", &sc->rbp_s1.thresh,
|
||||
kenv_getuint(sc, "rbps1_thresh", &sc->rbp_s1.thresh,
|
||||
HE_CONFIG_RBPS1_THRESH, 0);
|
||||
sc->rbp_s1.bsize = MBUF1_SIZE;
|
||||
|
||||
/* Receive buffer return queue 1 */
|
||||
kenv_getuint(sc, "rbrq1.size", &sc->rbrq_1.size,
|
||||
kenv_getuint(sc, "rbrq1_size", &sc->rbrq_1.size,
|
||||
HE_CONFIG_RBRQ1_SIZE, 0);
|
||||
kenv_getuint(sc, "rbrq1.thresh", &sc->rbrq_1.thresh,
|
||||
kenv_getuint(sc, "rbrq1_thresh", &sc->rbrq_1.thresh,
|
||||
HE_CONFIG_RBRQ1_THRESH, 0);
|
||||
kenv_getuint(sc, "rbrq1.tout", &sc->rbrq_1.tout,
|
||||
kenv_getuint(sc, "rbrq1_tout", &sc->rbrq_1.tout,
|
||||
HE_CONFIG_RBRQ1_TOUT, 0);
|
||||
kenv_getuint(sc, "rbrq1.pcnt", &sc->rbrq_1.pcnt,
|
||||
kenv_getuint(sc, "rbrq1_pcnt", &sc->rbrq_1.pcnt,
|
||||
HE_CONFIG_RBRQ1_PCNT, 0);
|
||||
|
||||
/* Interrupt queue 0 */
|
||||
kenv_getuint(sc, "irq0.size", &sc->irq_0.size,
|
||||
kenv_getuint(sc, "irq0_size", &sc->irq_0.size,
|
||||
HE_CONFIG_IRQ0_SIZE, 0);
|
||||
kenv_getuint(sc, "irq0.thresh", &sc->irq_0.thresh,
|
||||
kenv_getuint(sc, "irq0_thresh", &sc->irq_0.thresh,
|
||||
HE_CONFIG_IRQ0_THRESH, 0);
|
||||
sc->irq_0.line = HE_CONFIG_IRQ0_LINE;
|
||||
|
||||
/* Transmit buffer return queue 0 */
|
||||
kenv_getuint(sc, "tbrq0.size", &sc->tbrq.size,
|
||||
kenv_getuint(sc, "tbrq0_size", &sc->tbrq.size,
|
||||
HE_CONFIG_TBRQ_SIZE, 0);
|
||||
kenv_getuint(sc, "tbrq0.thresh", &sc->tbrq.thresh,
|
||||
kenv_getuint(sc, "tbrq0_thresh", &sc->tbrq.thresh,
|
||||
HE_CONFIG_TBRQ_THRESH, 0);
|
||||
|
||||
/* Transmit buffer ready queue */
|
||||
kenv_getuint(sc, "tpdrq.size", &sc->tpdrq.size,
|
||||
kenv_getuint(sc, "tpdrq_size", &sc->tpdrq.size,
|
||||
HE_CONFIG_TPDRQ_SIZE, 0);
|
||||
/* Max TPDs per VCC */
|
||||
kenv_getuint(sc, "tpdmax", &sc->max_tpd,
|
||||
|
Loading…
Reference in New Issue
Block a user