Home
last modified time | relevance | path

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

/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()
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/include/net/
H A Dnet_namespace.h216 struct net *old_net);
230 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() argument
234 return old_net; in copy_net_ns()
/linux/net/core/
H A Dnet_namespace.c551 struct user_namespace *user_ns, struct net *old_net) in copy_net_ns() argument
558 return get_net(old_net); in copy_net_ns()
/linux/net/wireless/
H A Dcore.c174 struct net *old_net = wiphy_net(&rdev->wiphy); in __cfg80211_switch_netns() local
207 wiphy_net_set(&rdev->wiphy, old_net); in __cfg80211_switch_netns()
231 WARN_ON(cfg80211_switch_wdev_netns(wdev, old_net)); in __cfg80211_switch_netns()
/linux/net/ipv4/
H A Dtcp_ipv4.c3412 struct net *old_net; local
3417 old_net = current->nsproxy->net_ns;
3418 ehash_entries = READ_ONCE(old_net->ipv4.sysctl_tcp_child_ehash_entries);
H A Dudp.c3807 struct net *old_net; in udp_set_table() local
3812 old_net = current->nsproxy->net_ns; in udp_set_table()
3813 hash_entries = READ_ONCE(old_net->ipv4.sysctl_udp_child_hash_entries); in udp_set_table()