Home
last modified time | relevance | path

Searched refs:net (Results 1 – 25 of 294) sorted by relevance

12345678910>>...12

/tools/testing/selftests/net/packetdrill/
A Ddefaults.sh14 sysctl -q net.ipv4.tcp_timestamps=1
17 sysctl -q net.ipv4.tcp_syn_retries=5
18 sysctl -q net.ipv4.tcp_synack_retries=5
21 sysctl -q net.ipv4.tcp_frto=2
24 sysctl -q net.ipv4.tcp_sack=1
27 sysctl -q net.ipv4.tcp_dsack=1
30 sysctl -q net.ipv4.tcp_fack=0
33 sysctl -q net.ipv4.tcp_reordering=3
42 sysctl -q net.ipv4.tcp_early_retrans=4 net.ipv4.tcp_recovery=1
48 sysctl -q net.ipv4.tcp_ecn=0
[all …]
/tools/testing/selftests/net/hsr/
A Dhsr_ping.sh94 ip -net "$ns3" link set ns3eth1 down
97 ip -net "$ns3" link set ns3eth1 up
165 ip -net "$ns1" link set ns1eth1 up
166 ip -net "$ns1" link set ns1eth2 up
167 ip -net "$ns1" link set hsr1 up
169 ip -net "$ns2" link set ns2eth1 up
170 ip -net "$ns2" link set ns2eth2 up
171 ip -net "$ns2" link set hsr2 up
173 ip -net "$ns3" link set ns3eth1 up
174 ip -net "$ns3" link set ns3eth2 up
[all …]
/tools/testing/selftests/net/
A Dbig_tcp.sh34 ip -net $CLIENT_NS link set link0 up
40 ip -net $CLIENT_NS link set dev link0 \
44 ip net exec $CLIENT_NS sysctl -wq net.ipv4.tcp_window_scaling=10
46 ip -net $ROUTER_NS link set link1 up
47 ip -net $ROUTER_NS link set link2 up
66 ip net exec $ROUTER_NS sysctl -wq net.ipv4.ip_forward=1
67 ip net exec $ROUTER_NS sysctl -wq net.ipv6.conf.all.forwarding=1
69 ip -net $SERVER_NS link set link3 up
78 ip net exec $SERVER_NS sysctl -wq net.ipv4.tcp_window_scaling=10
84 ip -net $ROUTER_NS link del link1
[all …]
A Dbroadcast_pmtu.sh17 ip -net "${SERVER_NS}" link add link1 type veth peer name link0 netns "${CLIENT_NS}"
19 ip -net "${CLIENT_NS}" link set link0 up
20 ip -net "${CLIENT_NS}" link set link0 mtu 9000
21 ip -net "${CLIENT_NS}" addr add "${CLIENT_IP4}" dev link0
23 ip -net "${SERVER_NS}" link set link1 up
24 ip -net "${SERVER_NS}" link set link1 mtu 1500
25 ip -net "${SERVER_NS}" addr add "${SERVER_IP4}" dev link1
28 ip -net "${CLIENT_NS}" route del "${CLIENT_BROADCAST_ENTRY[@]}"
29 ip -net "${CLIENT_NS}" route add "${CLIENT_BROADCAST_ENTRY[@]}" mtu 1500
31 ip net exec "${SERVER_NS}" sysctl -wq net.ipv4.icmp_echo_ignore_broadcasts=0
[all …]
A Dxfrm_policy.sh297 ip -net $ns xfrm policy flush
310 ip -net $ns xfrm policy flush
324 ip -net $ns xfrm policy flush
363 ip -net ${ns[$i]} link set $DEV up
374 ip -net ${ns[$i]} link set eth1 up
375 ip -net ${ns[$i]} link set veth0 up
378 ip -net ${ns[1]} route add default via 10.0.1.1
379 ip -net ${ns[2]} route add default via 10.0.2.1
381 ip -net ${ns[3]} addr add 10.0.1.1/24 dev eth1
388 ip -net ${ns[4]} addr add 10.0.2.1/24 dev eth1
[all …]
A Dip_defrag.sh17 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_high_thresh=9000000 >/dev/null 2>&1
18 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_low_thresh=7000000 >/dev/null 2>&1
19 ip netns exec "${NETNS}" sysctl -w net.ipv4.ipfrag_time=1 >/dev/null 2>&1
21 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_high_thresh=9000000 >/dev/null 2>&1
22 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_low_thresh=7000000 >/dev/null 2>&1
23 ip netns exec "${NETNS}" sysctl -w net.ipv6.ip6frag_time=1 >/dev/null 2>&1
25 …ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_high_thresh=9000000 >/dev/null…
26 …ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_low_thresh=7000000 >/dev/null…
27 ip netns exec "${NETNS}" sysctl -w net.netfilter.nf_conntrack_frag6_timeout=1 >/dev/null 2>&1
30 ip netns exec "${NETNS}" sysctl -w net.ipv6.route.max_size=65536 >/dev/null 2>&1
A Dynl.mk18 -I$(top_srcdir)/tools/net/ynl/lib/ \
19 -I$(top_srcdir)/tools/net/ynl/generated/
29 $(Q)rm -f $(top_srcdir)/tools/net/ynl/libynl.a
30 $(Q)$(MAKE) -C $(top_srcdir)/tools/net/ynl \
32 $(Q)cp $(top_srcdir)/tools/net/ynl/libynl.a $(OUTPUT)/libynl.a
35 $(top_srcdir)/tools/net/ynl/pyynl/__pycache__ \
36 $(top_srcdir)/tools/net/ynl/pyynl/lib/__pycache__ \
37 $(top_srcdir)/tools/net/ynl/lib/*.[ado] \
/tools/testing/selftests/drivers/net/dsa/
A DMakefile19 ../../../net/forwarding/bridge_locked_port.sh \
20 ../../../net/forwarding/bridge_mdb.sh \
21 ../../../net/forwarding/bridge_mld.sh \
22 ../../../net/forwarding/bridge_vlan_aware.sh \
23 ../../../net/forwarding/bridge_vlan_mcast.sh \
25 ../../../net/forwarding/lib.sh \
26 ../../../net/forwarding/local_termination.sh \
27 ../../../net/forwarding/no_forwarding.sh \
28 ../../../net/forwarding/tc_actions.sh \
29 ../../../net/forwarding/tc_common.sh \
[all …]
/tools/testing/selftests/drivers/net/hw/lib/py/
A D__init__.py11 from net.lib.py import *
12 from drivers.net.lib.py import *
15 from net.lib.py import EthtoolFamily, NetdevFamily, NetshaperFamily, \
17 from net.lib.py import CmdExitFailure
18 from net.lib.py import bkg, cmd, defer, ethtool, fd_read_timeout, ip, \
20 from net.lib.py import fd_read_timeout
21 from net.lib.py import KsftSkipEx, KsftFailEx, KsftXfailEx
24 from net.lib.py import ksft_eq, ksft_ge, ksft_in, ksft_is, ksft_lt, \
26 from net.lib.py import NetNSEnter
27 from drivers.net.lib.py import GenerateTraffic
[all …]
/tools/testing/selftests/net/netfilter/
A Dconntrack_ipip_mtu.sh89 ip -net "$r_a" link set "$dev" up
92 ip -net "$r_a" addr add 10.2.2.1/24 dev veth0
120 ip -net "$r_b" link set $dev up
123 ip -net "$r_b" addr add 10.4.4.1/24 dev veth0
132 ip -net "$c_a" link set dev veth0 up
137 ip -net "$c_b" link set dev veth0 up
141 ip -net "$r_w" addr add 10.2.2.254/24 dev veth0
144 ip -net "$r_w" link set dev veth0 up mtu 1400
145 ip -net "$r_w" link set dev veth1 up mtu 1400
147 ip -net "$r_a" link set dev veth0 mtu 1400
[all …]
A Dnft_flowtable.sh54 ip -net "$nsr1" link set "$dev" up
55 ip -net "$nsr2" link set "$dev" up
131 ip -net "$ns" link set eth0 up
530 ip -net "$nsr1" addr flush dev veth0
535 ip -net "$nsr1" link set up dev br0
571 ip -net "$ns1" addr flush dev eth0
573 ip -net "$ns1" link set eth0 up
574 ip -net "$ns1" link set eth0.10 up
587 ip -net "$nsr1" link set veth0 down
593 ip -net "$ns1" link set eth0 down
[all …]
A Dnft_interface_stress.sh25 ip -net $nsc addr add 10.0.0.1/24 dev cr0
26 ip -net $nsc link set cr0 up
30 ip -net $nss addr add 10.1.0.1/24 dev sr0
31 ip -net $nss link set sr0 up
34 ip -net $nsr addr add 10.0.0.2/24 dev rc0
35 ip -net $nsr link set rc0 up
37 ip -net $nsr link set rs0 up
80 ip -net $nsr link set rc$o name rc$n
81 ip -net $nsr link set rs$o name rs$n
121 ip -net $nsr link del wild$i &
[all …]
A Drpath.sh42 ip -net "$ns1" link set v0 up; ip -net "$ns2" link set v0 up
43 ip -net "$ns1" a a 192.168.23.2/24 dev v0
44 ip -net "$ns2" a a 192.168.23.1/24 dev v0
45 ip -net "$ns1" a a fec0:23::2/64 dev v0 nodad
46 ip -net "$ns2" a a fec0:23::1/64 dev v0 nodad
49 ip -net "$ns2" link add d0 type dummy
50 ip -net "$ns2" link set d0 up
51 ip -net "$ns1" a a 192.168.42.2/24 dev v0
52 ip -net "$ns2" a a 192.168.42.1/24 dev d0
175 ip -net "$ns2" link set vrf0 up
[all …]
A Dbr_netfilter.sh73 ip -net "$ns0" link set "veth$i" up
83 ip -net "$ns0" link set "veth$i" master br0
90 ip -net "$ns0" link set macvlan0 up
91 ip -net "$ns0" addr add 10.23.0.1/24 dev macvlan0
97 ip -net "$ns0" link set macvlan4 up
101 ip -net "$ns0" link set macvlan4 master br0
103 ip -net "$ns0" link set br0 up
104 ip -net "$ns0" addr add 10.0.0.1/24 dev br0
144 eval ip -net \$ns"$i" link set eth0 up
150 ip -net "$ns3" addr add 10.23.0.13/24 dev eth0
[all …]
A Dbridge_brouter.sh31 if ! ip -net "$nsbr" link add br0 type bridge; then
36 ip -net "$nsbr" link set veth0 up
37 ip -net "$nsbr" link set veth1 up
39 ip -net "$nsbr" link set veth0 master br0
40 ip -net "$nsbr" link set veth1 master br0
41 ip -net "$nsbr" link set br0 up
42 ip -net "$nsbr" addr add 10.0.0.1/24 dev br0
45 ip -net "$ns1" link set eth0 up
46 ip -net "$ns2" link set eth0 up
47 ip -net "$ns1" addr add 10.0.0.11/24 dev eth0
[all …]
A Dnft_tproxy_tcp.sh55 ip -net "$nsrouter" link set veth0 up
59 ip -net "$nsrouter" link set veth1 up
63 ip -net "$nsrouter" link set veth2 up
67 ip -net "$ns1" link set eth0 up
68 ip -net "$ns2" link set eth0 up
69 ip -net "$ns3" link set eth0 up
71 ip -net "$ns1" addr add 10.0.1.99/24 dev eth0
73 ip -net "$ns1" route add default via 10.0.1.1
76 ip -net "$ns2" addr add 10.0.2.99/24 dev eth0
78 ip -net "$ns2" route add default via 10.0.2.1
[all …]
A Dnft_tproxy_udp.sh55 ip -net "$nsrouter" link set veth0 up
59 ip -net "$nsrouter" link set veth1 up
63 ip -net "$nsrouter" link set veth2 up
67 ip -net "$ns1" link set eth0 up
68 ip -net "$ns2" link set eth0 up
69 ip -net "$ns3" link set eth0 up
71 ip -net "$ns1" addr add 10.0.1.99/24 dev eth0
73 ip -net "$ns1" route add default via 10.0.1.1
76 ip -net "$ns2" addr add 10.0.2.99/24 dev eth0
78 ip -net "$ns2" route add default via 10.0.2.1
[all …]
A Dconntrack_icmp_related.sh40 ip -net "$ns" link set "$dev" up
41 ip -net "$ns" addr add "192.168.$i.2/24" dev "$dev"
81 ip -net "$nsrouter1" link set eth1 up
82 ip -net "$nsrouter1" link set $DEV up
84 ip -net "$nsrouter2" link set eth1 mtu 1280 up
85 ip -net "$nsrouter2" link set eth2 up
91 ip -net "$nsclient2" route add default via dead:2::1
92 ip -net "$nsclient2" link set veth0 mtu 1280
94 ip -net "$nsrouter1" addr add 192.168.1.1/24 dev eth1
101 ip -net "$nsrouter2" addr add 192.168.2.1/24 dev eth1
[all …]
A Dnft_fib.sh37 sysctl -q net.netfilter.nf_log_all_netns=1
215 ip -net "$nsrouter" link set veth0 up
219 ip -net "$nsrouter" link set veth1 up
223 ip -net "$ns1" link set eth0 up
224 ip -net "$ns2" link set eth0 up
328 ip -net "$nsrouter" link set dummy0 up
329 ip -net "$nsrouter" link set tvrf up
758 ip -net "$ns1" route del default
759 ip -net "$ns1" -6 route del default
833 ip -net "$ns1" -4 route del default
[all …]
/tools/testing/selftests/net/netfilter/packetdrill/
A Dcommon.sh7 sysctl -q net.netfilter.nf_conntrack_log_invalid=6
13 sysctl -q net.ipv4.tcp_rmem="4096 540000 $((15*1024*1024))"
14 sysctl -q net.ipv4.tcp_wmem="4096 $((256*1024)) 4194304"
17 sysctl -q net.ipv4.tcp_congestion_control=cubic
20 sysctl -q net.ipv4.tcp_slow_start_after_idle=0
23 sysctl -q net.ipv4.tcp_ecn=0
25 sysctl -q net.ipv4.tcp_notsent_lowat=4294967295 > /dev/null 2>&1
/tools/testing/selftests/drivers/net/lib/py/
A D__init__.py11 from net.lib.py import *
14 from net.lib.py import EthtoolFamily, NetdevFamily, NetshaperFamily, \
16 from net.lib.py import CmdExitFailure
17 from net.lib.py import bkg, cmd, bpftool, bpftrace, defer, ethtool, \
19 from net.lib.py import fd_read_timeout
20 from net.lib.py import KsftSkipEx, KsftFailEx, KsftXfailEx
21 from net.lib.py import ksft_disruptive, ksft_exit, ksft_pr, ksft_run, \
23 from net.lib.py import ksft_eq, ksft_ge, ksft_in, ksft_is, ksft_lt, \
/tools/testing/selftests/net/forwarding/
A Dcustom_multipath_hash.sh284 sysctl_set net.ipv4.fib_multipath_hash_policy 3
288 sysctl_set net.ipv4.neigh.default.gc_thresh1 1024
289 sysctl_set net.ipv4.neigh.default.gc_thresh2 1024
290 sysctl_set net.ipv4.neigh.default.gc_thresh3 1024
308 sysctl_restore net.ipv4.neigh.default.gc_thresh3
309 sysctl_restore net.ipv4.neigh.default.gc_thresh2
310 sysctl_restore net.ipv4.neigh.default.gc_thresh1
319 sysctl_set net.ipv6.fib_multipath_hash_policy 3
347 sysctl_restore net.ipv6.neigh.default.gc_thresh3
348 sysctl_restore net.ipv6.neigh.default.gc_thresh2
[all …]
/tools/bpf/bpftool/Documentation/
A Dbpftool-net.rst4 bpftool-net
17 **bpftool** [*OPTIONS*] **net** *COMMAND*
29 | **bpftool** **net help**
81 bpftool net help
91 | **# bpftool net**
106 | **# bpftool -jp net**
158 | **# bpftool net**
168 | **# bpftool net**
178 | **# bpftool net**
186 | **# bpftool net**
[all …]
/tools/testing/selftests/net/mptcp/
A Dsimult_flows.sh77 ip -net "$ns1" addr add 10.0.1.1/24 dev ns1eth1
79 ip -net "$ns1" link set ns1eth1 up mtu 1500
80 ip -net "$ns1" route add default via 10.0.1.2
83 ip -net "$ns1" addr add 10.0.2.1/24 dev ns1eth2
85 ip -net "$ns1" link set ns1eth2 up mtu 1500
92 ip -net "$ns2" addr add 10.0.1.2/24 dev ns2eth1
94 ip -net "$ns2" link set ns2eth1 up mtu 1500
98 ip -net "$ns2" link set ns2eth2 up mtu 1500
102 ip -net "$ns2" link set ns2eth3 up mtu 1500
108 ip -net "$ns3" link set ns3eth1 up mtu 1500
[all …]
/tools/testing/selftests/drivers/net/
A DREADME.rst34 drivers/net/netdevsim, HW-only tests in drivers/net/hw.
46 $ cat tools/testing/selftests/drivers/net/net.config
94 # make -C tools/testing/selftests/ TARGETS="drivers/net drivers/net/hw"
98 # make -C tools/testing/selftests/ TARGETS="drivers/net drivers/net/hw" \
99 install INSTALL_PATH=/tmp/ksft-net-drv
101 # rsync -ra --delete /tmp/ksft-net-drv root@192.168.1.1:/root/
105 [/root] # ./ksft-net-drv/run_kselftest.sh -t drivers/net:ping.py
109 # selftests: drivers/net: ping.py
116 ok 1 selftests: drivers/net: ping.py
120 [/root] # cat > ./ksft-net-drv/drivers/net/net.config <<EOF
[all …]

Completed in 33 milliseconds

12345678910>>...12