Lines Matching full:smc
3 * Shared Memory Communications over RDMA (SMC-R) and RoCE
5 * smc_sysctl.c: sysctl interface to SMC subsystem.
17 #include "smc.h"
36 .data = &init_net.smc.sysctl_autocorking_size,
43 .data = &init_net.smc.sysctl_smcr_buf_type,
52 .data = &init_net.smc.sysctl_smcr_testlink_time,
59 .data = &init_net.smc.sysctl_wmem,
68 .data = &init_net.smc.sysctl_rmem,
77 .data = &init_net.smc.sysctl_max_links_per_lgr,
86 .data = &init_net.smc.sysctl_max_conns_per_lgr,
95 .data = &init_net.smc.limit_smc_hs,
121 net->smc.smc_hdr = register_net_sysctl_sz(net, "net/smc", table, in smc_sysctl_net_init()
123 if (!net->smc.smc_hdr) in smc_sysctl_net_init()
126 net->smc.sysctl_autocorking_size = SMC_AUTOCORKING_DEFAULT_SIZE; in smc_sysctl_net_init()
127 net->smc.sysctl_smcr_buf_type = SMCR_PHYS_CONT_BUFS; in smc_sysctl_net_init()
128 net->smc.sysctl_smcr_testlink_time = SMC_LLC_TESTLINK_DEFAULT_TIME; in smc_sysctl_net_init()
129 WRITE_ONCE(net->smc.sysctl_wmem, net_smc_wmem_init); in smc_sysctl_net_init()
130 WRITE_ONCE(net->smc.sysctl_rmem, net_smc_rmem_init); in smc_sysctl_net_init()
131 net->smc.sysctl_max_links_per_lgr = SMC_LINKS_PER_LGR_MAX_PREFER; in smc_sysctl_net_init()
132 net->smc.sysctl_max_conns_per_lgr = SMC_CONN_PER_LGR_PREFER; in smc_sysctl_net_init()
134 net->smc.limit_smc_hs = 0; in smc_sysctl_net_init()
149 table = net->smc.smc_hdr->ctl_table_arg; in smc_sysctl_net_exit()
150 unregister_net_sysctl_table(net->smc.smc_hdr); in smc_sysctl_net_exit()