Home
last modified time | relevance | path

Searched refs:old_net (Results 1 – 5 of 5) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector_reattach.c72 static int unshare_net(int old_net) in unshare_net() argument
84 setns(old_net, CLONE_NEWNET); in unshare_net()
440 int err, link, old_net; in test_link_update_netns_gone() local
442 old_net = netns; in test_link_update_netns_gone()
443 netns = unshare_net(old_net); in test_link_update_netns_gone()
480 int err, link, old_net; in test_link_get_info() local
482 old_net = netns; in test_link_get_info()
483 netns = unshare_net(old_net); in test_link_get_info()
545 old_net = -1; in test_link_get_info()
566 if (old_net != -1) in test_link_get_info()
[all …]
/openbmc/linux/include/net/
H A Dnet_namespace.h202 struct net *old_net);
214 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() argument
218 return old_net; in copy_net_ns()
/openbmc/linux/net/core/
H A Dnet_namespace.c466 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() argument
473 return get_net(old_net); in copy_net_ns()
/openbmc/linux/net/ipv4/
H A Dtcp_ipv4.c3184 struct net *old_net; in tcp_set_hashinfo() local
3189 old_net = current->nsproxy->net_ns; in tcp_set_hashinfo()
3190 ehash_entries = READ_ONCE(old_net->ipv4.sysctl_tcp_child_ehash_entries); in tcp_set_hashinfo()
H A Dudp.c3508 struct net *old_net; in udp_set_table() local
3513 old_net = current->nsproxy->net_ns; in udp_set_table()
3514 hash_entries = READ_ONCE(old_net->ipv4.sysctl_udp_child_hash_entries); in udp_set_table()