Searched refs:netns (Results 126 - 150 of 278) sorted by relevance

1234567891011>>

/linux-master/fs/nfs/
H A Dnetns.h11 #include <net/netns/generic.h>
H A Dsysfs.c18 #include "netns.h"
195 void nfs_netns_sysfs_setup(struct nfs_net *netns, struct net *net) argument
201 netns->nfs_client = clp;
206 void nfs_netns_sysfs_destroy(struct nfs_net *netns) argument
208 struct nfs_netns_client *clp = netns->nfs_client;
216 netns->nfs_client = NULL;
/linux-master/tools/testing/selftests/drivers/net/netdevsim/
H A Dfib_notifications.sh89 ip netns exec testns1 sysctl -qw net.$ip.fib_notify_on_flag_change=$notify
141 ip netns exec testns1 sysctl -qw net.$ip.fib_notify_on_flag_change=$notify
184 ip netns exec testns1 sysctl -qw net.$ip.fib_notify_on_flag_change=$notify
394 ip netns add testns1
397 echo "Failed to add netns \"testns1\""
401 devlink dev reload $DEVLINK_DEV netns testns1
404 echo "Failed to reload into netns \"testns1\""
419 ip netns del testns1
H A Ddevlink.sh264 ip netns add testns1
265 check_err $? "Failed add netns \"testns1\""
266 ip netns add testns2
267 check_err $? "Failed add netns \"testns2\""
269 devlink dev reload $DL_HANDLE netns testns1
270 check_err $? "Failed to reload into netns \"testns1\""
272 devlink -N testns1 dev reload $DL_HANDLE netns testns2
273 check_err $? "Failed to reload from netns \"testns1\" into netns \"testns2\""
275 ip netns de
[all...]
H A Dfib.sh356 ip netns exec testns1 sysctl -qw net.ipv4.fib_notify_on_flag_change=$notify
357 ip netns exec testns1 sysctl -qw net.ipv6.fib_notify_on_flag_change=$notify
371 ip netns add testns1
373 echo "Failed to add netns \"testns1\""
377 devlink dev reload $DEVLINK_DEV netns testns1
379 echo "Failed to reload into netns \"testns1\""
387 ip netns del testns1
/linux-master/tools/testing/selftests/net/
H A Dfib_nexthops.sh130 [ -n "$2" ] && ns="-netns $2"
154 ip netns exec ${n} sysctl -qw net.ipv4.ip_forward=1
155 ip netns exec ${n} sysctl -qw net.ipv4.fib_multipath_use_neigh=1
156 ip netns exec ${n} sysctl -qw net.ipv4.conf.default.ignore_routes_with_linkdown=1
157 ip netns exec ${n} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
158 ip netns exec ${n} sysctl -qw net.ipv6.conf.all.forwarding=1
159 ip netns exec ${n} sysctl -qw net.ipv6.conf.default.forwarding=1
160 ip netns exec ${n} sysctl -qw net.ipv6.conf.default.ignore_routes_with_linkdown=1
161 ip netns exec ${n} sysctl -qw net.ipv6.conf.all.accept_dad=0
162 ip netns exe
[all...]
H A Dndisc_unsolicited_na_test.sh71 IP_HOST="ip -6 -netns ${HOST_NS}"
72 IP_HOST_EXEC="ip netns exec ${HOST_NS}"
73 IP_ROUTER="ip -6 -netns ${ROUTER_NS}"
74 IP_ROUTER_EXEC="ip netns exec ${ROUTER_NS}"
77 peer name ${HOST_INTF} netns ${HOST_NS}
128 ip netns del ${HOST_NS}
129 ip netns del ${ROUTER_NS}
H A Dfib_rule_tests.sh83 IP="ip -netns $testns"
104 IP_PEER="ip -netns $peerns"
107 ip link add name veth0 netns $testns type veth \
108 peer name veth1 netns $peerns
130 ip netns del $peerns
336 ip netns exec $testns sysctl -qw net.ipv4.ip_forward=1
337 ip netns exec $testns sysctl -qw net.ipv4.conf.$DEV.rp_filter=0
340 ip netns exec $testns sysctl -qw net.ipv4.ip_forward=0
H A Dfib_tests.sh55 IP="$(which ip) -netns $ns1"
56 NS_EXEC="$(which ip) netns exec $ns1"
57 ip netns exec $ns1 sysctl -qw net.ipv4.ip_forward=1
58 ip netns exec $ns1 sysctl -qw net.ipv6.conf.all.forwarding=1
449 $IP link set dev veth2 netns $ns2
451 ip -netns $ns2 address add 192.0.2.1/24 dev veth2
453 ip -netns $ns2 link set dev veth2 up
457 ip -netns $ns2 link set dev lo address 52:54:00:6a:c7:5e
458 ip -netns $ns2 link set dev veth2 address 52:54:00:6a:c7:5e
461 ip netns exe
[all...]
H A Dfcnal-test.sh359 addr=$(ip -netns ${ns} -6 -br addr show dev ${dev} | \
387 ip -netns ${ns} link add ${vrf} type vrf table ${table}
388 ip -netns ${ns} link set ${vrf} up
389 ip -netns ${ns} route add vrf ${vrf} unreachable default metric 8192
390 ip -netns ${ns} -6 route add vrf ${vrf} unreachable default metric 8192
392 ip -netns ${ns} addr add 127.0.0.1/8 dev ${vrf}
393 ip -netns ${ns} -6 addr add ::1 dev ${vrf} nodad
395 ip -netns ${ns} addr add dev ${vrf} ${addr}
398 ip -netns ${ns} -6 addr add dev ${vrf} ${addr6}
401 ip -netns
[all...]
H A Dtest_bridge_backup_port.sh144 ip netns exec $ns sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1
145 ip netns exec $ns sysctl -qw net.ipv6.conf.default.ignore_routes_with_linkdown=1
146 ip netns exec $ns sysctl -qw net.ipv6.conf.all.accept_dad=0
147 ip netns exec $ns sysctl -qw net.ipv6.conf.default.accept_dad=0
160 ip link set dev veth0 netns $sw1 name veth0
161 ip link set dev veth1 netns $sw2 name veth0
265 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1"
275 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1"
292 run_cmd "ip netns exec $sw1 mausezahn br0.10 -a $smac -b $dmac -A 198.51.100.1 -B 198.51.100.2 -t ip -p 100 -q -c 1"
302 run_cmd "ip netns exe
[all...]
/linux-master/tools/testing/selftests/wireguard/
H A Dnetns.sh22 # interfaces in $ns1 and $ns2. See https://www.wireguard.com/netns/ for further
37 n0() { pretty 0 "$*"; maybe_exec ip netns exec $netns0 "$@"; }
38 n1() { pretty 1 "$*"; maybe_exec ip netns exec $netns1 "$@"; }
39 n2() { pretty 2 "$*"; maybe_exec ip netns exec $netns2 "$@"; }
46 waitiface() { pretty "${1//*-}" "wait for $2 to come up"; ip netns exec "$1" bash -c "while [[ \$(< \"/sys/class/net/$2/operstate\") != up ]]; do read -t .1 -N 0 || true; done;"; }
58 local to_kill="$(ip netns pids $netns0) $(ip netns pids $netns1) $(ip netns pids $netns2)"
60 pp ip netns del $netns1
61 pp ip netns de
[all...]
/linux-master/tools/testing/selftests/net/forwarding/
H A Ddual_vxlan_bridge.sh46 # | + v2 (veth) NS1 (netns) | | + v4 (veth) NS2 (netns) |
268 ip netns add ns1
269 ip link set dev v2 netns ns1
279 ip netns exec ns1 ip link set dev v2 netns 1
280 ip netns del ns1
285 ip netns add ns2
286 ip link set dev v4 netns ns2
298 ip netns exe
[all...]
/linux-master/tools/testing/selftests/tc-testing/plugin-lib/
H A DnsPlugin.py13 from pyroute2 import netns namespace
40 # Make sure the netns is visible in the fs
48 f = open('/run/netns/{}'.format(ns))
79 cmd = self._replace_keywords("$IP -a netns del")
101 print('adjust_command: stage is {}; inserting netns stuff in command [{}] list [{}]'.format(stage, command, cmdlist))
104 cmdlist.insert(0, 'netns')
127 netns.create(ns)
128 netns.pushns(newns=ns)
146 netns.popns()
167 cmds.append(self._replace_keywords('netns ad
[all...]
/linux-master/fs/nfsd/
H A Dnfsctl.c25 #include "netns.h"
194 static inline struct net *netns(struct file *file) function
219 struct net *net = netns(file);
269 trace_nfsd_ctl_unlock_fs(netns(file), fo_path);
284 nfsd4_revoke_states(netns(file), path.dentry->d_sb);
348 trace_nfsd_ctl_filehandle(netns(file), dname, path, maxsize);
355 len = exp_rootfh(netns(file), dom, path, &fh, maxsize);
399 struct net *net = netns(file);
451 struct net *net = netns(file);
535 struct nfsd_net *nn = net_generic(netns(fil
[all...]
/linux-master/net/openvswitch/
H A Ddp_notify.c8 #include <net/netns/generic.h>
/linux-master/net/ipv6/
H A Dfib6_notifier.c7 #include <net/netns/ipv6.h>
/linux-master/tools/testing/selftests/net/mptcp/
H A Dmptcp_join.sh90 local netns
91 for netns in "$ns1" "$ns2"; do
92 ip netns exec $netns sysctl -q net.mptcp.pm_type=0 2>/dev/null || true
94 ip netns exec $netns sysctl -q net.mptcp.checksum_enabled=1
109 ip link add ns1eth$i netns "$ns1" type veth peer name ns2eth$i netns "$ns2"
302 local netns
303 for netns i
[all...]
/linux-master/net/tipc/
H A Dcore.h60 #include <net/netns/generic.h>
63 #include <net/netns/hash.h>
H A Daddr.h44 #include <net/netns/generic.h>
/linux-master/tools/testing/selftests/netfilter/
H A Dconntrack_sctp_collision.sh32 ip -n $SERVER_NS link add link0 type veth peer name link1 netns $ROUTER_NS
33 ip -n $CLIENT_NS link add link3 type veth peer name link2 netns $ROUTER_NS
/linux-master/fs/nfs_common/
H A Dgrace.c10 #include <net/netns/generic.h>
/linux-master/include/net/
H A Draw.h18 #include <net/netns/hash.h>
/linux-master/net/ipv6/ila/
H A Dila_main.c3 #include <net/netns/generic.h>
/linux-master/kernel/bpf/
H A Dnet_namespace.c4 #include <linux/bpf-netns.h>
9 * Functions to manage BPF programs attached to netns
18 * when netns is going away. Instead we rely on pernet
184 /* Link auto-detached or netns dying */
218 info->netns.netns_ino = inum;
219 info->netns.attach_type = net_link->type;
232 info.netns.netns_ino,
233 info.netns.attach_type);

Completed in 327 milliseconds

1234567891011>>