Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/cxgbe/crypto/t4_crypto.c
Show All 12 Lines | |||||
* dev.ccr.X. | * dev.ccr.X. | ||||
*/ | */ | ||||
oid = device_get_sysctl_tree(sc->dev); | oid = device_get_sysctl_tree(sc->dev); | ||||
children = SYSCTL_CHILDREN(oid); | children = SYSCTL_CHILDREN(oid); | ||||
/* | /* | ||||
* dev.ccr.X.stats. | * dev.ccr.X.stats. | ||||
*/ | */ | ||||
oid = SYSCTL_ADD_NODE(ctx, children, OID_AUTO, "stats", CTLFLAG_RD, | oid = SYSCTL_ADD_NODE(ctx, children, OID_AUTO, "stats", | ||||
NULL, "statistics"); | CTLFLAG_RD | CTLFLAG_MPSAFE, NULL, "statistics"); | ||||
children = SYSCTL_CHILDREN(oid); | children = SYSCTL_CHILDREN(oid); | ||||
SYSCTL_ADD_U64(ctx, children, OID_AUTO, "hash", CTLFLAG_RD, | SYSCTL_ADD_U64(ctx, children, OID_AUTO, "hash", CTLFLAG_RD, | ||||
&sc->stats_hash, 0, "Hash requests submitted"); | &sc->stats_hash, 0, "Hash requests submitted"); | ||||
SYSCTL_ADD_U64(ctx, children, OID_AUTO, "hmac", CTLFLAG_RD, | SYSCTL_ADD_U64(ctx, children, OID_AUTO, "hmac", CTLFLAG_RD, | ||||
&sc->stats_hmac, 0, "HMAC requests submitted"); | &sc->stats_hmac, 0, "HMAC requests submitted"); | ||||
SYSCTL_ADD_U64(ctx, children, OID_AUTO, "cipher_encrypt", CTLFLAG_RD, | SYSCTL_ADD_U64(ctx, children, OID_AUTO, "cipher_encrypt", CTLFLAG_RD, | ||||
&sc->stats_blkcipher_encrypt, 0, | &sc->stats_blkcipher_encrypt, 0, | ||||
Show All 12 Lines |