Lines Matching refs:pernet
61 static void mptcp_pernet_set_defaults(struct mptcp_pernet *pernet) in mptcp_pernet_set_defaults() argument
63 pernet->mptcp_enabled = 1; in mptcp_pernet_set_defaults()
64 pernet->add_addr_timeout = TCP_RTO_MAX; in mptcp_pernet_set_defaults()
65 pernet->checksum_enabled = 0; in mptcp_pernet_set_defaults()
66 pernet->allow_join_initial_addr_port = 1; in mptcp_pernet_set_defaults()
67 pernet->stale_loss_cnt = 4; in mptcp_pernet_set_defaults()
114 static int mptcp_pernet_new_table(struct net *net, struct mptcp_pernet *pernet) in mptcp_pernet_new_table() argument
126 table[0].data = &pernet->mptcp_enabled; in mptcp_pernet_new_table()
127 table[1].data = &pernet->add_addr_timeout; in mptcp_pernet_new_table()
128 table[2].data = &pernet->checksum_enabled; in mptcp_pernet_new_table()
129 table[3].data = &pernet->allow_join_initial_addr_port; in mptcp_pernet_new_table()
130 table[4].data = &pernet->stale_loss_cnt; in mptcp_pernet_new_table()
136 pernet->ctl_table_hdr = hdr; in mptcp_pernet_new_table()
147 static void mptcp_pernet_del_table(struct mptcp_pernet *pernet) in mptcp_pernet_del_table() argument
149 struct ctl_table *table = pernet->ctl_table_hdr->ctl_table_arg; in mptcp_pernet_del_table()
151 unregister_net_sysctl_table(pernet->ctl_table_hdr); in mptcp_pernet_del_table()
158 static int mptcp_pernet_new_table(struct net *net, struct mptcp_pernet *pernet) in mptcp_pernet_new_table() argument
163 static void mptcp_pernet_del_table(struct mptcp_pernet *pernet) {} in mptcp_pernet_del_table() argument
169 struct mptcp_pernet *pernet = mptcp_get_pernet(net); in mptcp_net_init() local
171 mptcp_pernet_set_defaults(pernet); in mptcp_net_init()
173 return mptcp_pernet_new_table(net, pernet); in mptcp_net_init()
179 struct mptcp_pernet *pernet = mptcp_get_pernet(net); in mptcp_net_exit() local
181 mptcp_pernet_del_table(pernet); in mptcp_net_exit()