Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/cxgbe/t4_main.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 6,223 Lines • ▼ Show 20 Lines | if (is_offload(sc)) { | ||||
children = SYSCTL_CHILDREN(oid); | children = SYSCTL_CHILDREN(oid); | ||||
sc->tt.cong_algorithm = -1; | sc->tt.cong_algorithm = -1; | ||||
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "cong_algorithm", | SYSCTL_ADD_INT(ctx, children, OID_AUTO, "cong_algorithm", | ||||
CTLFLAG_RW, &sc->tt.cong_algorithm, 0, "congestion control " | CTLFLAG_RW, &sc->tt.cong_algorithm, 0, "congestion control " | ||||
"(-1 = default, 0 = reno, 1 = tahoe, 2 = newreno, " | "(-1 = default, 0 = reno, 1 = tahoe, 2 = newreno, " | ||||
"3 = highspeed)"); | "3 = highspeed)"); | ||||
sc->tt.sndbuf = 256 * 1024; | sc->tt.sndbuf = -1; | ||||
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "sndbuf", CTLFLAG_RW, | SYSCTL_ADD_INT(ctx, children, OID_AUTO, "sndbuf", CTLFLAG_RW, | ||||
&sc->tt.sndbuf, 0, "max hardware send buffer size"); | &sc->tt.sndbuf, 0, "hardware send buffer"); | ||||
sc->tt.ddp = 0; | sc->tt.ddp = 0; | ||||
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "ddp", | SYSCTL_ADD_INT(ctx, children, OID_AUTO, "ddp", | ||||
CTLFLAG_RW | CTLFLAG_SKIP, &sc->tt.ddp, 0, ""); | CTLFLAG_RW | CTLFLAG_SKIP, &sc->tt.ddp, 0, ""); | ||||
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "rx_zcopy", CTLFLAG_RW, | SYSCTL_ADD_INT(ctx, children, OID_AUTO, "rx_zcopy", CTLFLAG_RW, | ||||
&sc->tt.ddp, 0, "Enable zero-copy aio_read(2)"); | &sc->tt.ddp, 0, "Enable zero-copy aio_read(2)"); | ||||
sc->tt.rx_coalesce = 1; | sc->tt.rx_coalesce = -1; | ||||
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "rx_coalesce", | SYSCTL_ADD_INT(ctx, children, OID_AUTO, "rx_coalesce", | ||||
CTLFLAG_RW, &sc->tt.rx_coalesce, 0, "receive coalescing"); | CTLFLAG_RW, &sc->tt.rx_coalesce, 0, "receive coalescing"); | ||||
sc->tt.tls = 0; | sc->tt.tls = 0; | ||||
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "tls", CTLFLAG_RW, | SYSCTL_ADD_INT(ctx, children, OID_AUTO, "tls", CTLFLAG_RW, | ||||
&sc->tt.tls, 0, "Inline TLS allowed"); | &sc->tt.tls, 0, "Inline TLS allowed"); | ||||
SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "tls_rx_ports", | SYSCTL_ADD_PROC(ctx, children, OID_AUTO, "tls_rx_ports", | ||||
CTLTYPE_INT | CTLFLAG_RW, sc, 0, sysctl_tls_rx_ports, | CTLTYPE_INT | CTLFLAG_RW, sc, 0, sysctl_tls_rx_ports, | ||||
"I", "TCP ports that use inline TLS+TOE RX"); | "I", "TCP ports that use inline TLS+TOE RX"); | ||||
sc->tt.tx_align = 1; | sc->tt.tx_align = -1; | ||||
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "tx_align", | SYSCTL_ADD_INT(ctx, children, OID_AUTO, "tx_align", | ||||
CTLFLAG_RW, &sc->tt.tx_align, 0, "chop and align payload"); | CTLFLAG_RW, &sc->tt.tx_align, 0, "chop and align payload"); | ||||
sc->tt.tx_zcopy = 0; | sc->tt.tx_zcopy = 0; | ||||
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "tx_zcopy", | SYSCTL_ADD_INT(ctx, children, OID_AUTO, "tx_zcopy", | ||||
CTLFLAG_RW, &sc->tt.tx_zcopy, 0, | CTLFLAG_RW, &sc->tt.tx_zcopy, 0, | ||||
"Enable zero-copy aio_write(2)"); | "Enable zero-copy aio_write(2)"); | ||||
▲ Show 20 Lines • Show All 4,609 Lines • Show Last 20 Lines |