Changeset View
Changeset View
Standalone View
Standalone View
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 7,212 Lines • ▼ Show 20 Lines | #define T4_PORTSTAT(name, desc) \ | ||||
T4_PORTSTAT(rx_ovflow3, "# drops due to buffer-group 3 overflows"); | T4_PORTSTAT(rx_ovflow3, "# drops due to buffer-group 3 overflows"); | ||||
T4_PORTSTAT(rx_trunc0, "# of buffer-group 0 truncated packets"); | T4_PORTSTAT(rx_trunc0, "# of buffer-group 0 truncated packets"); | ||||
T4_PORTSTAT(rx_trunc1, "# of buffer-group 1 truncated packets"); | T4_PORTSTAT(rx_trunc1, "# of buffer-group 1 truncated packets"); | ||||
T4_PORTSTAT(rx_trunc2, "# of buffer-group 2 truncated packets"); | T4_PORTSTAT(rx_trunc2, "# of buffer-group 2 truncated packets"); | ||||
T4_PORTSTAT(rx_trunc3, "# of buffer-group 3 truncated packets"); | T4_PORTSTAT(rx_trunc3, "# of buffer-group 3 truncated packets"); | ||||
#undef T4_REGSTAT | #undef T4_REGSTAT | ||||
#undef T4_PORTSTAT | #undef T4_PORTSTAT | ||||
SYSCTL_ADD_ULONG(ctx, children, OID_AUTO, "tx_toe_tls_records", | |||||
CTLFLAG_RD, &pi->tx_toe_tls_records, | |||||
"# of TOE TLS records transmitted"); | |||||
SYSCTL_ADD_ULONG(ctx, children, OID_AUTO, "tx_toe_tls_octets", | |||||
CTLFLAG_RD, &pi->tx_toe_tls_octets, | |||||
"# of payload octets in transmitted TOE TLS records"); | |||||
SYSCTL_ADD_ULONG(ctx, children, OID_AUTO, "rx_toe_tls_records", | |||||
CTLFLAG_RD, &pi->rx_toe_tls_records, | |||||
"# of TOE TLS records received"); | |||||
SYSCTL_ADD_ULONG(ctx, children, OID_AUTO, "rx_toe_tls_octets", | |||||
CTLFLAG_RD, &pi->rx_toe_tls_octets, | |||||
"# of payload octets in received TOE TLS records"); | |||||
} | } | ||||
static int | static int | ||||
sysctl_int_array(SYSCTL_HANDLER_ARGS) | sysctl_int_array(SYSCTL_HANDLER_ARGS) | ||||
{ | { | ||||
int rc, *i, space = 0; | int rc, *i, space = 0; | ||||
struct sbuf sb; | struct sbuf sb; | ||||
▲ Show 20 Lines • Show All 3,518 Lines • ▼ Show 20 Lines | #endif | ||||
txq->kern_tls_gcm = 0; | txq->kern_tls_gcm = 0; | ||||
mp_ring_reset_stats(txq->r); | mp_ring_reset_stats(txq->r); | ||||
} | } | ||||
#if defined(TCP_OFFLOAD) || defined(RATELIMIT) | #if defined(TCP_OFFLOAD) || defined(RATELIMIT) | ||||
for_each_ofld_txq(vi, i, ofld_txq) { | for_each_ofld_txq(vi, i, ofld_txq) { | ||||
ofld_txq->wrq.tx_wrs_direct = 0; | ofld_txq->wrq.tx_wrs_direct = 0; | ||||
ofld_txq->wrq.tx_wrs_copied = 0; | ofld_txq->wrq.tx_wrs_copied = 0; | ||||
counter_u64_zero(ofld_txq->tx_toe_tls_records); | |||||
counter_u64_zero(ofld_txq->tx_toe_tls_octets); | |||||
} | } | ||||
#endif | #endif | ||||
#ifdef TCP_OFFLOAD | #ifdef TCP_OFFLOAD | ||||
for_each_ofld_rxq(vi, i, ofld_rxq) { | for_each_ofld_rxq(vi, i, ofld_rxq) { | ||||
ofld_rxq->fl.cl_allocated = 0; | ofld_rxq->fl.cl_allocated = 0; | ||||
ofld_rxq->fl.cl_recycled = 0; | ofld_rxq->fl.cl_recycled = 0; | ||||
ofld_rxq->fl.cl_fast_recycled = 0; | ofld_rxq->fl.cl_fast_recycled = 0; | ||||
ofld_rxq->rx_toe_tls_records = 0; | |||||
ofld_rxq->rx_toe_tls_octets = 0; | |||||
} | } | ||||
#endif | #endif | ||||
if (IS_MAIN_VI(vi)) { | if (IS_MAIN_VI(vi)) { | ||||
wrq = &sc->sge.ctrlq[pi->port_id]; | wrq = &sc->sge.ctrlq[pi->port_id]; | ||||
wrq->tx_wrs_direct = 0; | wrq->tx_wrs_direct = 0; | ||||
wrq->tx_wrs_copied = 0; | wrq->tx_wrs_copied = 0; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,133 Lines • Show Last 20 Lines |