Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/ena/ena_sysctl.c
Show All 12 Lines | |||||
dev = adapter->pdev; | dev = adapter->pdev; | ||||
ctx = device_get_sysctl_ctx(dev); | ctx = device_get_sysctl_ctx(dev); | ||||
tree = device_get_sysctl_tree(dev); | tree = device_get_sysctl_tree(dev); | ||||
child = SYSCTL_CHILDREN(tree); | child = SYSCTL_CHILDREN(tree); | ||||
/* Tuneable number of buffers in the buf-ring (drbr) */ | /* Tuneable number of buffers in the buf-ring (drbr) */ | ||||
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "buf_ring_size", CTLTYPE_INT | | SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "buf_ring_size", | ||||
CTLFLAG_RW, adapter, 0, ena_sysctl_buf_ring_size, "I", | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, adapter, 0, | ||||
ena_sysctl_buf_ring_size, "I", | |||||
"Size of the bufring"); | "Size of the bufring"); | ||||
/* Tuneable number of Rx ring size */ | /* Tuneable number of Rx ring size */ | ||||
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_queue_size", CTLTYPE_INT | | SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "rx_queue_size", | ||||
CTLFLAG_RW, adapter, 0, ena_sysctl_rx_queue_size, "I", | CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, adapter, 0, | ||||
ena_sysctl_rx_queue_size, "I", | |||||
"Size of the Rx ring. The size should be a power of 2. " | "Size of the Rx ring. The size should be a power of 2. " | ||||
"Max value is 8K"); | "Max value is 8K"); | ||||
} | } | ||||
static int | static int | ||||
ena_sysctl_buf_ring_size(SYSCTL_HANDLER_ARGS) | ena_sysctl_buf_ring_size(SYSCTL_HANDLER_ARGS) | ||||
{ | { | ||||
Show All 12 Lines |