| /tools/testing/selftests/net/packetdrill/ |
| A D | defaults.sh | 14 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 48 sysctl -q net.ipv4.tcp_ecn=0 54 sysctl -q net.ipv4.tcp_fastopen=0x70403 [all …]
|
| A D | set_sysctls.py | 27 sysctl = a.split('=') variable 31 cur_val = subprocess.check_output(['cat', sysctl[0]], universal_newlines=True) 32 print('echo "%s" > %s' % (cur_val.strip(), sysctl[0]), file=restore_file) 35 cmd = 'echo "%s" > %s' % (sysctl[1], sysctl[0])
|
| /tools/testing/selftests/net/netfilter/packetdrill/ |
| A D | common.sh | 7 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/net/ |
| A D | ip_defrag.sh | 17 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 D | route_localnet.sh | 16 sysctl -w net.ipv4.conf.veth0.route_localnet=1 17 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.route_localnet=1 42 sysctl -w net.ipv4.conf.veth0.arp_announce=2 43 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_announce=2 59 sysctl -w net.ipv4.conf.veth0.arp_ignore=3 60 ip netns exec "${PEER_NS}" sysctl -w net.ipv4.conf.veth1.arp_ignore=3
|
| A D | ndisc_unsolicited_na_test.sh | 85 ${IP_ROUTER_EXEC} sysctl -qw \ 87 ${IP_ROUTER_EXEC} sysctl -qw \ 89 ${IP_ROUTER_EXEC} sysctl -qw \ 91 ${IP_ROUTER_EXEC} sysctl -qw ${ROUTER_CONF}.disable_ipv6=0 97 ${IP_HOST_EXEC} sysctl -qw ${HOST_CONF}.ndisc_notify=1 98 ${IP_HOST_EXEC} sysctl -qw ${HOST_CONF}.disable_ipv6=0
|
| A D | ipv6_route_update_soft_lockup.sh | 142 sysctl -qw kernel.softlockup_panic=${kernel_softlokup_panic_prev_val} 154 ip netns exec ${source_ns} sysctl -qw net.ipv6.fib_multipath_hash_policy=1 159 ip netns exec ${sink_ns} sysctl -qw net.ipv6.conf.${SINK_LOOPBACK_IFACE}.forwarding=1 162 ip netns exec ${sink_ns} sysctl -qw net.ipv6.conf.${SINK_TEST_IFACE}.forwarding=1 240 kernel_softlokup_panic_prev_val=$(sysctl -n kernel.softlockup_panic) 241 sysctl -qw kernel.softlockup_panic=1
|
| A D | ipv6_force_forwarding.sh | 50 ip netns exec $ns2 sysctl -qw net.ipv6.conf.all.forwarding=0 65 ip netns exec $ns2 sysctl -qw net.ipv6.conf.veth21.force_forwarding=0 66 ip netns exec $ns2 sysctl -qw net.ipv6.conf.veth23.force_forwarding=0 76 ip netns exec $ns2 sysctl -qw net.ipv6.conf.veth21.force_forwarding=1 77 ip netns exec $ns2 sysctl -qw net.ipv6.conf.veth23.force_forwarding=1
|
| A D | srv6_end_dx6_netfilter_test.sh | 184 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.all.accept_dad=0 185 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.default.accept_dad=0 194 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.all.forwarding=1 202 ip netns exec ${nsname} sysctl -wq net.netfilter.nf_hooks_lwtunnel=1 227 ip netns exec ${rtname} sysctl -wq net.ipv6.conf.all.accept_dad=0 228 ip netns exec ${rtname} sysctl -wq net.ipv6.conf.default.accept_dad=0 230 ip netns exec ${rtname} sysctl -wq net.ipv6.conf.${rtveth}.proxy_ndp=1
|
| A D | arp_ndisc_evict_nocarrier.sh | 28 sysctl -w net.ipv6.conf.veth1.ndisc_evict_nocarrier=1 >/dev/null 2>&1 29 sysctl -w net.ipv6.conf.all.ndisc_evict_nocarrier=1 >/dev/null 2>&1 43 ip netns exec ${me} sysctl -w $1 >/dev/null 2>&1 70 sysctl -w "$1" >/dev/null 2>&1 91 sysctl -w net.ipv4.conf.veth0.arp_evict_nocarrier=1 >/dev/null 2>&1 92 sysctl -w net.ipv4.conf.all.arp_evict_nocarrier=1 >/dev/null 2>&1
|
| A D | reuseaddr_ports_exhausted.sh | 17 sysctl -w net.ipv4.ip_local_port_range="32768 32768" \ 20 sysctl -w net.ipv4.ip_autobind_reuse=1 > /dev/null 2>&1
|
| A D | srv6_end_dt46_l3vpn_test.sh | 264 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.all.accept_dad=0 265 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.default.accept_dad=0 271 ip netns exec ${nsname} sysctl -wq net.ipv4.ip_forward=1 272 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.all.forwarding=1 285 ip netns exec ${hsname} sysctl -wq net.ipv6.conf.all.accept_dad=0 286 ip netns exec ${hsname} sysctl -wq net.ipv6.conf.default.accept_dad=0 300 ip netns exec ${rtname} sysctl -wq net.ipv6.conf.all.accept_dad=0 301 ip netns exec ${rtname} sysctl -wq net.ipv6.conf.default.accept_dad=0 309 ip netns exec ${rtname} sysctl -wq net.ipv6.conf.${rtveth}.proxy_ndp=1 310 ip netns exec ${rtname} sysctl -wq net.ipv4.conf.${rtveth}.proxy_arp=1
|
| A D | srv6_end_dt6_l3vpn_test.sh | 234 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.all.accept_dad=0 235 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.default.accept_dad=0 241 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.all.forwarding=1 254 ip netns exec ${hsname} sysctl -wq net.ipv6.conf.all.accept_dad=0 255 ip netns exec ${hsname} sysctl -wq net.ipv6.conf.default.accept_dad=0 268 ip netns exec ${rtname} sysctl -wq net.ipv6.conf.all.accept_dad=0 269 ip netns exec ${rtname} sysctl -wq net.ipv6.conf.default.accept_dad=0 276 ip netns exec ${rtname} sysctl -wq net.ipv6.conf.${rtveth}.proxy_ndp=1
|
| A D | srv6_end_dx4_netfilter_test.sh | 184 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.all.accept_dad=0 185 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.default.accept_dad=0 194 ip netns exec ${nsname} sysctl -wq net.ipv4.ip_forward=1 195 ip netns exec ${nsname} sysctl -wq net.ipv6.conf.all.forwarding=1 203 ip netns exec ${nsname} sysctl -wq net.netfilter.nf_hooks_lwtunnel=1 228 ip netns exec ${rtname} sysctl -wq net.ipv4.conf.${rtveth}.proxy_arp=1
|
| A D | arp_ndisc_untracked_subnets.sh | 60 ip netns exec ${ROUTER_NS} sysctl -w \ 86 ip netns exec ${HOST_NS_V6} sysctl -qw ${HOST_CONF}.ndisc_notify=1 87 ip netns exec ${HOST_NS_V6} sysctl -qw ${HOST_CONF}.disable_ipv6=0 89 ip netns exec ${ROUTER_NS_V6} sysctl -w \ 91 ip netns exec ${ROUTER_NS_V6} sysctl -w \ 93 ip netns exec ${ROUTER_NS_V6} sysctl -w \
|
| A D | gre_ipv6_lladdr.sh | 102 ip netns exec "${NS0}" sysctl -qw net.ipv6.conf.gretest.stable_secret="2001:db8::abcd" 113 ip netns exec "${NS0}" sysctl -qw net.ipv6.conf.gretest.addr_gen_mode="${ADDR_GEN_MODE}" 119 ip netns exec "${NS0}" sysctl -qw net.ipv6.conf.gretest.addr_gen_mode=1 124 ip netns exec "${NS0}" sysctl -qw net.ipv6.conf.gretest.addr_gen_mode="${ADDR_GEN_MODE}"
|
| A D | traceroute.sh | 83 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=1 84 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1 85 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.forwarding=1 86 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.forwarding=1 87 ip netns exec ${ns} sysctl -qw net.ipv6.conf.default.accept_dad=0 256 ip netns exec $router sysctl -qw \
|
| A D | msg_zerocopy.sh | 98 ip netns exec "${NS1}" sysctl -w -q "${path_sysctl_mem}=1000000" 99 ip netns exec "${NS2}" sysctl -w -q "${path_sysctl_mem}=1000000" 123 ip netns exec "${NS2}" sysctl -wq net.ipv4.ip_forward=1 124 ip netns exec "${NS2}" sysctl -wq net.ipv6.conf.all.forwarding=1
|
| A D | srv6_hencap_red_l3vpn_test.sh | 353 ip netns exec "${nsname}" sysctl -wq net.ipv6.conf.all.accept_dad=0 354 ip netns exec "${nsname}" sysctl -wq net.ipv6.conf.default.accept_dad=0 355 ip netns exec "${nsname}" sysctl -wq net.ipv6.conf.all.forwarding=1 356 ip netns exec "${nsname}" sysctl -wq net.ipv4.ip_forward=1 485 ip netns exec "${hsname}" sysctl -wq net.ipv6.conf.all.accept_dad=0 486 ip netns exec "${hsname}" sysctl -wq net.ipv6.conf.default.accept_dad=0 517 sysctl -wq net.ipv6.conf."${RT2HS_DEVNAME}".proxy_ndp=1 519 sysctl -wq net.ipv4.conf."${RT2HS_DEVNAME}".proxy_arp=1 820 test_command_or_ksft_skip sysctl
|
| /tools/testing/selftests/bpf/ |
| A D | test_kmod.sh | 28 sysctl -w net.core.bpf_jit_enable=$1 2>&1 > /dev/null 29 sysctl -w net.core.bpf_jit_harden=$2 2>&1 > /dev/null 56 JE=`sysctl -n net.core.bpf_jit_enable` 57 JH=`sysctl -n net.core.bpf_jit_harden` 62 sysctl -w net.core.bpf_jit_enable=$JE 2>&1 > /dev/null 63 sysctl -w net.core.bpf_jit_harden=$JH 2>&1 > /dev/null
|
| /tools/testing/selftests/net/netfilter/ |
| A D | conntrack_resize.sh | 23 if ! sysctl -q net.netfilter.nf_conntrack_max >/dev/null;then 37 sysctl -q net.netfilter.nf_conntrack_max=$init_net_max 38 sysctl -q net.netfilter.nf_conntrack_buckets=$ct_buckets 47 local lv=$(sysctl -n net.nf_conntrack_max) 95 sysctl -q net.netfilter.nf_conntrack_buckets=$RANDOM 415 o=$(ip netns exec "$ns" sysctl -n "$name" 2>/dev/null) 421 n=$(ip netns exec "$ns" sysctl -n "$name" 2>/dev/null) 438 sysctl -q net.netfilter.nf_conntrack_max=100 445 sysctl -q net.netfilter.nf_conntrack_max=$init_net_max 468 init_net_max=$(sysctl -n net.netfilter.nf_conntrack_max) [all …]
|
| A D | nft_nat_zones.sh | 34 v4gc1=$(sysctl -n net.ipv4.neigh.default.gc_thresh1 2>/dev/null) 35 v4gc2=$(sysctl -n net.ipv4.neigh.default.gc_thresh2 2>/dev/null) 36 v4gc3=$(sysctl -n net.ipv4.neigh.default.gc_thresh3 2>/dev/null) 37 v6gc1=$(sysctl -n net.ipv6.neigh.default.gc_thresh1 2>/dev/null) 68 sysctl -q net.ipv6.neigh.default.gc_thresh1=512 2>/dev/null 69 sysctl -q net.ipv6.neigh.default.gc_thresh2=1024 2>/dev/null 70 sysctl -q net.ipv6.neigh.default.gc_thresh3=4096 2>/dev/null 71 sysctl -q net.ipv4.neigh.default.gc_thresh1=512 2>/dev/null 72 sysctl -q net.ipv4.neigh.default.gc_thresh2=1024 2>/dev/null 73 sysctl -q net.ipv4.neigh.default.gc_thresh3=4096 2>/dev/null [all …]
|
| A D | ipvs.sh | 124 ip netns exec "${ns1}" sysctl -qw net.ipv4.ip_forward=1 130 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.all.arp_ignore=1 131 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.all.arp_announce=2 140 ip netns exec "${ns1}" sysctl -qw net.ipv4.ip_forward=1 156 ip netns exec "${ns1}" sysctl -qw net.ipv4.ip_forward=0 157 ip netns exec "${ns1}" sysctl -qw net.ipv4.conf.all.send_redirects=0 158 ip netns exec "${ns1}" sysctl -qw net.ipv4.conf.default.send_redirects=0 164 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.all.arp_ignore=1 165 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.all.arp_announce=2 166 ip netns exec "${ns2}" sysctl -qw net.ipv4.conf.tunl0.rp_filter=0
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | test_sysctl.c | 19 const char *sysctl; member 40 .sysctl = "kernel/ostype", 51 .sysctl = "kernel/ostype", 62 .sysctl = "kernel/ostype", 83 .sysctl = "kernel/ostype", 143 .sysctl = "kernel/ostype", 164 .sysctl = "kernel/ostype", 191 .sysctl = "kernel/ostype", 207 .sysctl = "kernel/ostype", 473 .sysctl = "kernel/ostype", [all …]
|
| /tools/testing/selftests/livepatch/ |
| A D | functions.sh | 64 FTRACE_ENABLED=$(sysctl --values kernel.ftrace_enabled) 76 sysctl kernel.ftrace_enabled="$FTRACE_ENABLED" &> /dev/null 108 local err=$(sysctl -q kernel.ftrace_enabled="$1" 2>&1) 109 local result=$(sysctl --values kernel.ftrace_enabled)
|