Home
last modified time | relevance | path

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

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
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()
455 err = setns(old_net, CLONE_NEWNET); 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()
539 err = setns(old_net, CLONE_NEWNET); in test_link_get_info()
[all …]
/linux-6.1.9/include/net/
Dnet_namespace.h198 struct net *old_net);
210 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() argument
214 return old_net; in copy_net_ns()
/linux-6.1.9/net/core/
Dnet_namespace.c452 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() argument
459 return get_net(old_net); in copy_net_ns()
/linux-6.1.9/net/ipv4/
Dtcp_ipv4.c3108 struct net *old_net; in tcp_set_hashinfo() local
3113 old_net = current->nsproxy->net_ns; in tcp_set_hashinfo()
3114 ehash_entries = READ_ONCE(old_net->ipv4.sysctl_tcp_child_ehash_entries); in tcp_set_hashinfo()