Lines Matching defs:net
15 #include <net/net_namespace.h>
74 int __net_init smc_sysctl_net_init(struct net *net)
79 if (!net_eq(net, &init_net)) {
87 table[i].data += (void *)net - (void *)&init_net;
90 net->smc.smc_hdr = register_net_sysctl_sz(net, "net/smc", table,
92 if (!net->smc.smc_hdr)
95 net->smc.sysctl_autocorking_size = SMC_AUTOCORKING_DEFAULT_SIZE;
96 net->smc.sysctl_smcr_buf_type = SMCR_PHYS_CONT_BUFS;
97 net->smc.sysctl_smcr_testlink_time = SMC_LLC_TESTLINK_DEFAULT_TIME;
98 WRITE_ONCE(net->smc.sysctl_wmem, net_smc_wmem_init);
99 WRITE_ONCE(net->smc.sysctl_rmem, net_smc_rmem_init);
104 if (!net_eq(net, &init_net))
110 void __net_exit smc_sysctl_net_exit(struct net *net)
114 table = net->smc.smc_hdr->ctl_table_arg;
115 unregister_net_sysctl_table(net->smc.smc_hdr);
116 if (!net_eq(net, &init_net))