/linux/tools/testing/selftests/net/ |
H A D | udpgro_fwd.sh | 7 readonly BASE="ns-$(mktemp -u XXXXXX)" 24 local ns 28 for ns in $NS_SRC $NS_DST; do 29 ip netns del $ns 2>/dev/null 37 local ns 39 for ns in $NS_SRC $NS_DST; do 40 ip netns add $ns 41 ip -n $ns link set dev lo up 44 ip netns exec $ns sysctl -qw net.ipv6.conf.default.router_solicitations=0 45 ip netns exec $ns sysctl -qw net.ipv6.conf.all.router_solicitations=0 [all …]
|
H A D | vrf-xfrm-tests.sh | 86 local ns=$1 90 if [ -n "${ns}" ]; then 91 ns="-netns ${ns}" 94 ip ${ns} link add ${vrf} type vrf table ${table} 95 ip ${ns} link set ${vrf} up 96 ip ${ns} route add vrf ${vrf} unreachable default metric 8192 97 ip ${ns} -6 route add vrf ${vrf} unreachable default metric 8192 99 ip ${ns} addr add 127.0.0.1/8 dev ${vrf} 100 ip ${ns} -6 addr add ::1 dev ${vrf} nodad 102 ip ${ns} ru del pref 0 [all …]
|
H A D | icmp_redirect.sh | 118 local ns=$1 122 addr=$(ip -netns $ns -6 -br addr show dev ${dev} | \ 149 local ns=$1 151 ip -netns ${ns} link add ${VRF} type vrf table ${VRF_TABLE} 152 ip -netns ${ns} link set ${VRF} up 153 ip -netns ${ns} route add vrf ${VRF} unreachable default metric 8192 154 ip -netns ${ns} -6 route add vrf ${VRF} unreachable default metric 8192 156 ip -netns ${ns} addr add 127.0.0.1/8 dev ${VRF} 157 ip -netns ${ns} -6 addr add ::1 dev ${VRF} nodad 159 ip -netns ${ns} ru del pref 0 [all …]
|
H A D | vrf_route_leaking.sh | 180 local ns=$1 182 ip -netns "${ns}" rule del pref 0 183 ip -netns "${ns}" rule add pref 32765 from all lookup local 184 ip -netns "${ns}" -6 rule del pref 0 185 ip -netns "${ns}" -6 rule add pref 32765 from all lookup local 190 local ns=$1 194 ip -netns "${ns}" link add "${vrf}" type vrf table "${table}" 195 ip -netns "${ns}" link set "${vrf}" up 196 ip -netns "${ns}" route add vrf "${vrf}" unreachable default metric 8192 197 ip -netns "${ns}" -6 route add vrf "${vrf}" unreachable default metric 8192 [all …]
|
H A D | cmsg_so_mark.sh | 14 cleanup_ns $NS 20 setup_ns NS 22 ip netns exec $NS sysctl -w net.ipv4.ping_group_range='0 2147483647' > /dev/null 25 ip -netns $NS link add type dummy 26 ip -netns $NS link set dev dummy0 up 27 ip -netns $NS addr add $IP4 dev dummy0 28 ip -netns $NS addr add $IP6 dev dummy0 30 ip -netns $NS rule add fwmark $MARK lookup 300 31 ip -6 -netns $NS rule add fwmark $MARK lookup 300 32 ip -netns $NS route add prohibit any table 300 [all …]
|
H A D | cmsg_ipv6.sh | 13 cleanup_ns $NS 25 setup_ns NS 26 NSEXE="ip netns exec $NS" 31 ip -netns $NS link add type dummy 32 ip -netns $NS link set dev dummy0 up 33 ip -netns $NS addr add $IP6 dev dummy0 60 $NSEXE ./cmsg_sender -s -S 2000 -6 -p $p $m $TGT6 1234 70 ip -6 -netns $NS rule add tos $TOS lookup 300 71 ip -6 -netns $NS route add table 300 prohibit any 88 $NSEXE ./cmsg_sender -6 -p $p $m $((TOS2)) $TGT6 1234 [all …]
|
H A D | l2tp.sh | 48 local ns 53 ns="$1" 61 out=$(eval ip netns exec ${ns} ${cmd} 2>&1) 77 local ns=$1 85 ip -netns ${ns} addr add dev lo ${addr} 88 ip -netns ${ns} -6 addr add dev lo ${addr6} 91 ip -netns ${ns} ro add unreachable default metric 8192 92 ip -netns ${ns} -6 ro add unreachable default metric 8192 94 ip netns exec ${ns} sysctl -qw net.ipv4.ip_forward=1 95 ip netns exec ${ns} sysctl -qw net.ipv6.conf.all.keep_addr_on_down=1 [all …]
|
H A D | fib_nexthop_multiprefix.sh | 4 # Validate cached routes in fib{6}_nh that is used by multiple prefixes. 74 local ns=${1} 76 ip netns exec ${ns} sysctl -q -w net.ipv6.conf.all.keep_addr_on_down=1 77 case ${ns} in 79 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=0 82 ip netns exec $ns sysctl -q -w net.ipv4.ip_forward=1 83 ip netns exec $ns sysctl -q -w net.ipv6.conf.all.forwarding=1 90 local ns 101 for ns in ${h[0]} ${r[1]} ${h[1]} ${h[2]} ${h[3]} 103 create_ns ${ns} [all …]
|
H A D | fcnal-test.sh | 13 # 6. VRF and non-VRF permutations 16 # ns-A | ns-B 23 # ns-A: 30 # ns-B: 35 # ns-A to ns-C connection - only for VRF and same config 36 # as ns-A to ns-B 38 # server / client nomenclature relative to ns-A 303 # set sysctl values in NS-A 311 # get sysctl values in NS-A 329 ${NSA_IP}) echo "ns-A IP";; [all …]
|
/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap-zoom-common.dtsi | 24 interrupts = <6 IRQ_TYPE_EDGE_RISING>; /* gpio102 */ 32 gpmc,cs-on-ns = <5>; 33 gpmc,cs-rd-off-ns = <155>; 34 gpmc,cs-wr-off-ns = <155>; 35 gpmc,adv-on-ns = <15>; 36 gpmc,adv-rd-off-ns = <40>; 37 gpmc,adv-wr-off-ns = <40>; 38 gpmc,oe-on-ns = <45>; 39 gpmc,oe-off-ns = <145>; 40 gpmc,we-on-ns = <45>; [all …]
|
H A D | omap3430-sdp.dts | 63 gpmc,cs-on-ns = <0>; 64 gpmc,cs-rd-off-ns = <186>; 65 gpmc,cs-wr-off-ns = <186>; 66 gpmc,adv-on-ns = <12>; 67 gpmc,adv-rd-off-ns = <48>; 68 gpmc,adv-wr-off-ns = <48>; 69 gpmc,oe-on-ns = <54>; 70 gpmc,oe-off-ns = <168>; 71 gpmc,we-on-ns = <54>; 72 gpmc,we-off-ns = <168>; [all …]
|
H A D | omap3-devkit8000-common.dtsi | 183 * BIT(1), BIT(2), BIT(6), BIT(7), BIT(8), BIT(13) 220 6 0 0x2c000000 0x1000000>; /* CS6: 16MB for DM9000 */ 233 gpmc,cs-on-ns = <0>; 234 gpmc,cs-rd-off-ns = <44>; 235 gpmc,cs-wr-off-ns = <44>; 236 gpmc,adv-on-ns = <6>; 237 gpmc,adv-rd-off-ns = <34>; 238 gpmc,adv-wr-off-ns = <44>; 239 gpmc,we-off-ns = <40>; 240 gpmc,oe-off-ns = <54>; [all …]
|
H A D | dra62x-j5eco-evm.dts | 61 gpmc,cs-on-ns = <0>; 62 gpmc,cs-rd-off-ns = <44>; 63 gpmc,cs-wr-off-ns = <44>; 64 gpmc,adv-on-ns = <6>; 65 gpmc,adv-rd-off-ns = <34>; 66 gpmc,adv-wr-off-ns = <44>; 67 gpmc,we-on-ns = <0>; 68 gpmc,we-off-ns = <40>; 69 gpmc,oe-on-ns = <0>; 70 gpmc,oe-off-ns = <54>; [all …]
|
H A D | dm8148-evm.dts | 61 gpmc,cs-on-ns = <0>; 62 gpmc,cs-rd-off-ns = <44>; 63 gpmc,cs-wr-off-ns = <44>; 64 gpmc,adv-on-ns = <6>; 65 gpmc,adv-rd-off-ns = <34>; 66 gpmc,adv-wr-off-ns = <44>; 67 gpmc,we-on-ns = <0>; 68 gpmc,we-off-ns = <40>; 69 gpmc,oe-on-ns = <0>; 70 gpmc,oe-off-ns = <54>; [all …]
|
H A D | am335x-chilisom.dtsi | 114 ldo4_reg: regulator@6 { 156 gpmc,cs-on-ns = <0>; 157 gpmc,cs-rd-off-ns = <44>; 158 gpmc,cs-wr-off-ns = <44>; 159 gpmc,adv-on-ns = <6>; 160 gpmc,adv-rd-off-ns = <34>; 161 gpmc,adv-wr-off-ns = <44>; 162 gpmc,we-on-ns = <0>; 163 gpmc,we-off-ns = <40>; 164 gpmc,oe-on-ns = <0>; [all …]
|
H A D | omap3-cm-t3x.dtsi | 279 gpmc,cs-on-ns = <0>; 280 gpmc,cs-rd-off-ns = <120>; 281 gpmc,cs-wr-off-ns = <120>; 283 gpmc,adv-on-ns = <0>; 284 gpmc,adv-rd-off-ns = <120>; 285 gpmc,adv-wr-off-ns = <120>; 287 gpmc,we-on-ns = <6>; 288 gpmc,we-off-ns = <90>; 290 gpmc,oe-on-ns = <6>; 291 gpmc,oe-off-ns = <90>; [all …]
|
H A D | am335x-myirtech-myc.dtsi | 114 gpmc,cs-on-ns = <0>; 115 gpmc,cs-rd-off-ns = <44>; 116 gpmc,cs-wr-off-ns = <44>; 117 gpmc,adv-on-ns = <6>; 118 gpmc,adv-rd-off-ns = <34>; 119 gpmc,adv-wr-off-ns = <44>; 120 gpmc,we-on-ns = <0>; 121 gpmc,we-off-ns = <40>; 122 gpmc,oe-on-ns = <0>; 123 gpmc,oe-off-ns = <54>; [all …]
|
H A D | omap3-igep.dtsi | 120 gpmc,cs-on-ns = <0>; 121 gpmc,cs-rd-off-ns = <44>; 122 gpmc,cs-wr-off-ns = <44>; 123 gpmc,adv-on-ns = <6>; 124 gpmc,adv-rd-off-ns = <34>; 125 gpmc,adv-wr-off-ns = <44>; 126 gpmc,we-off-ns = <40>; 127 gpmc,oe-off-ns = <54>; 128 gpmc,access-ns = <64>; 129 gpmc,rd-cycle-ns = <82>; [all …]
|
H A D | omap3-tao3530.dtsi | 247 * BIT(2), BIT(6), BIT(7), BIT(8), BIT(13) 277 gpmc,cs-on-ns = <0>; 278 gpmc,cs-rd-off-ns = <36>; 279 gpmc,cs-wr-off-ns = <36>; 280 gpmc,adv-on-ns = <6>; 281 gpmc,adv-rd-off-ns = <24>; 282 gpmc,adv-wr-off-ns = <36>; 283 gpmc,oe-on-ns = <6>; 284 gpmc,oe-off-ns = <48>; 285 gpmc,we-on-ns = <6>; [all …]
|
/linux/ipc/ |
H A D | mq_sysctl.c | 82 struct ipc_namespace *ns = in mq_set_ownership() 85 kuid_t ns_root_uid = make_kuid(ns->user_ns, 0); in mq_set_ownership() 86 kgid_t ns_root_gid = make_kgid(ns->user_ns, 0); in mq_set_ownership() 101 mode >>= 6; in mq_permissions() 108 return (mode << 6) | (mode << 3) | mode; in mq_permissions() 117 bool setup_mq_sysctls(struct ipc_namespace *ns) 121 setup_sysctl_set(&ns->mq_set, &set_root, set_is_seen); in setup_mq_sysctls() 129 tbl[i].data = &ns->mq_queues_max; in setup_mq_sysctls() 132 tbl[i].data = &ns->mq_msg_max; in setup_mq_sysctls() 135 tbl[i].data = &ns in setup_mq_sysctls() 83 struct ipc_namespace *ns = mq_set_ownership() local 118 setup_mq_sysctls(struct ipc_namespace * ns) setup_mq_sysctls() argument 160 retire_mq_sysctls(struct ipc_namespace * ns) retire_mq_sysctls() argument [all...] |
/linux/samples/bpf/ |
H A D | test_cgrp2_tc.sh | 16 NS='ns' 79 $IP netns add $NS || return $? 80 $IP link set dev $NS_IFC netns $NS || return $? 81 $IP -n $NS link set dev $NS_IFC up || return $? 82 $IP netns exec $NS sysctl -q net.ipv6.conf.$NS_IFC.disable_ipv6=0 83 $IP netns exec $NS sysctl -q net.ipv6.conf.$NS_IFC.accept_dad=0 88 $IP netns del $NS 103 run_in_cgrp $CGRP2_TC_LEAF "ping -6 -c3 ff02::1%$HOST_IFC >& /dev/null" 129 $IP -6 a show dev $HOST_IFC 132 echo "$NS net:" [all …]
|
/linux/lib/ |
H A D | find_bit_benchmark.c | 47 pr_err("find_first_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_bit() 66 pr_err("find_first_and_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_and_bit() 80 pr_err("find_next_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_next_bit() 94 pr_err("find_next_zero_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_next_zero_bit() 113 pr_err("find_last_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_last_bit() 129 pr_err("find_nth_bit: %18llu ns, %6ld iterations\n", time, w); in test_find_nth_bit() 144 pr_err("find_next_and_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_next_and_bit()
|
/linux/arch/arm/boot/dts/st/ |
H A D | stm32mp15x-mecio1-io.dtsi | 108 st,min-sample-time-ns = <5000>; 114 st,min-sample-time-ns = <5000>; 120 st,min-sample-time-ns = <5000>; 126 st,min-sample-time-ns = <5000>; 132 st,min-sample-time-ns = <5000>; 136 channel@6 { 137 reg = <6>; 138 st,min-sample-time-ns = <5000>; 144 st,min-sample-time-ns = <5000>; 150 st,min-sample-time-ns = <5000>; [all …]
|
/linux/Documentation/devicetree/bindings/mips/cavium/ |
H A D | bootbus.txt | 32 - cavium,t-adr: A cell specifying the ADR timing (in nS). 34 - cavium,t-ce: A cell specifying the CE timing (in nS). 36 - cavium,t-oe: A cell specifying the OE timing (in nS). 38 - cavium,t-we: A cell specifying the WE timing (in nS). 40 - cavium,t-rd-hld: A cell specifying the RD_HLD timing (in nS). 42 - cavium,t-wr-hld: A cell specifying the WR_HLD timing (in nS). 44 - cavium,t-pause: A cell specifying the PAUSE timing (in nS). 46 - cavium,t-wait: A cell specifying the WAIT timing (in nS). 48 - cavium,t-page: A cell specifying the PAGE timing (in nS). 50 - cavium,t-rd-dly: A cell specifying the RD_DLY timing (in nS). [all …]
|
/linux/tools/testing/selftests/net/mptcp/ |
H A D | mptcp_sockopt.sh | 49 local ns=$1 55 ip netns exec $ns $t -A OUTPUT -p tcp --syn -m mark --mark $m -j ACCEPT 58 ip netns exec $ns $t -A OUTPUT -p tcp --tcp-flags RST RST -m mark --mark 0 -j ACCEPT 60 ip netns exec $ns $t -A OUTPUT -p tcp -m mark --mark $m -j ACCEPT 61 ip netns exec $ns $t -A OUTPUT -p tcp -m mark --mark 0 -j DROP 112 local ns=$1 117 if [ $af -eq 6 ];then 122 counters=$(ip netns exec $ns $tables -v -L OUTPUT | grep DROP) 128 mptcp_lib_pr_fail "got $tables $values in ns $ns," \ 215 check_mark $listener_ns 6 || retc=1 [all …]
|