af_rxrpc: Expose more RxRPC parameters via sysctls
Expose RxRPC parameters via sysctls to control the Rx window size, the Rx MTU maximum size and the number of packets that can be glued into a jumbo packet. More info added to Documentation/networking/rxrpc.txt. Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
@@ -17,6 +17,9 @@
|
||||
static struct ctl_table_header *rxrpc_sysctl_reg_table;
|
||||
static const unsigned zero = 0;
|
||||
static const unsigned one = 1;
|
||||
static const unsigned four = 4;
|
||||
static const unsigned n_65535 = 65535;
|
||||
static const unsigned n_max_acks = RXRPC_MAXACKS;
|
||||
|
||||
/*
|
||||
* RxRPC operating parameters.
|
||||
@@ -94,6 +97,36 @@ static struct ctl_table rxrpc_sysctl_table[] = {
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.extra1 = (void *)&one,
|
||||
},
|
||||
|
||||
/* Non-time values */
|
||||
{
|
||||
.procname = "rx_window_size",
|
||||
.data = &rxrpc_rx_window_size,
|
||||
.maxlen = sizeof(unsigned),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.extra1 = (void *)&one,
|
||||
.extra2 = (void *)&n_max_acks,
|
||||
},
|
||||
{
|
||||
.procname = "rx_mtu",
|
||||
.data = &rxrpc_rx_mtu,
|
||||
.maxlen = sizeof(unsigned),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.extra1 = (void *)&one,
|
||||
.extra1 = (void *)&n_65535,
|
||||
},
|
||||
{
|
||||
.procname = "rx_jumbo_max",
|
||||
.data = &rxrpc_rx_jumbo_max,
|
||||
.maxlen = sizeof(unsigned),
|
||||
.mode = 0644,
|
||||
.proc_handler = proc_dointvec_minmax,
|
||||
.extra1 = (void *)&one,
|
||||
.extra2 = (void *)&four,
|
||||
},
|
||||
|
||||
{ }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user