| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | fib_offload_lib.sh | 7 local ns=$1; shift 13 ip -n $ns -j -p -$family route show $route \ 29 local ns=$1; shift 34 busywait 5000 __fib_trap_check $ns $family "$route" $should_fail 39 local ns=$1; shift 43 fib_trap_check $ns 4 "$route" $should_fail 48 local ns=$1; shift 52 fib_trap_check $ns 6 "$route" $should_fail 57 local ns=$1; shift 63 ip -n $ns link add name dummy$i type dummy [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | xfrm_policy.sh | 31 local ns=$1 32 local me=$2 38 …ip -net $ns xfrm policy add src $lnet dst $rnet dir out tmpl src $me dst $remote proto esp mode tu… 40 …ip -net $ns xfrm policy add src $rnet dst $lnet dir fwd tmpl src $remote dst $me proto esp mode tu… 44 local ns=$1 45 local me=$2 52 …ip -net $ns xfrm state add src $remote dst $me proto esp spi $spi_in enc aes $KEY_AES auth sha1 … 53 …ip -net $ns xfrm state add src $me dst $remote proto esp spi $spi_out enc aes $KEY_AES auth sha1 … 55 do_esp_policy $ns $me $remote $lnet $rnet 72 local ns=$1 [all …]
|
| H A D | netdev-l2addr.sh | 14 cleanup_ns "$NS" 20 echo "ERROR: ${1:-unexpected return code} (ret: $_)" >&2 27 local dev="$2" 28 local ns="$3" 30 ip -j -n "$ns" link show dev "$dev" | jq -er ".[0].$type" 33 setup_ns NS 35 nsim=$(create_netdevsim $NSIM_ADDR "$NS") 37 get_addr address "$nsim" "$NS" >/dev/null || fail "Couldn't get ether addr" 38 get_addr broadcast "$nsim" "$NS" >/dev/null || fail "Couldn't get brd addr" 39 get_addr permaddr "$nsim" "$NS" >/dev/null && fail "Found perm_addr without setting it" [all …]
|
| H A D | test_bridge_neigh_suppress.sh | 7 # ARP/NS messages from the first host are suppressed on the VXLAN port when 15 # | | 2001:db8:1::1/64 | | | 2001:db8:1::2/64 | 19 # | \ | 2001:db8:2::1/64 | | \ | 2001:db8:2::2/64 | 70 local expected=$2 106 local stderr="2>/dev/null" 124 local ns=$1; shift 131 pkts=$(tc -n $ns -j -s filter show $id \ 142 local ns [all...] |
| H A D | netns-name.sh | 16 cleanup_ns $NS $test_ns 22 echo "ERROR: ${1:-unexpected return code} (ret: $_)" >&2 26 setup_ns NS test_ns 33 nsim=$(create_netdevsim $NSIM_ADDR $NS) 34 ip -netns $NS link set dev $nsim netns $test_ns || 44 ip -netns $NS link add name $DEV type dummy || fail 45 ip -netns $NS link set dev $DEV netns $test_ns 2> /dev/null && 48 ip -netns $NS link del $DEV || fail 55 ip -netns $NS link add name $DEV type dummy || fail 56 ip -netns $NS link set dev $DEV netns $test_ns name $DEV2 || [all …]
|
| H A D | lib.sh | 20 ksft_xfail=2 145 if ! which $prog_name >/dev/null 2>/dev/null; then 157 local ns 161 for ns in "${ns_list[@]}"; do 162 if [ "${ns}" != "${item}" ]; then 163 NS_LIST+=("${ns}") 170 local ns="" 173 for ns in "$@"; do 174 [ -z "${ns}" ] && continue 175 ip netns pids "${ns}" [all...] |
| H A D | cmsg_so_mark.sh | 9 TGT6=2001:db8:1::2 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 [all …]
|
| /linux/tools/testing/selftests/net/netfilter/ |
| H A D | conntrack_resize.sh | 56 local ns="$1" 57 local count="$2" 62 ip netns exec "$ns" bash -c "for i in \$(seq 1 $bulk); do \ 68 done ; wait" 2>/dev/null 75 local ns="$1" 76 local count="$2" 79 local now=$(ip netns exec "$ns" conntrack -C) 82 echo "expected $count entries in $ns, not $now: $msg" 109 local ns="$1" 111 ip netns exec "$ns" conntrack -F 2>/dev/null [all …]
|
| H A D | conntrack_clash.sh | 27 …meta l4proto udp dnat to numgen random mod 3 map { 0 : 10.0.2.1 . 9000, 1 : 10.0.2.1 . 9001, 2 : 1… 59 local ns="$1" 63 ip netns exec "$ns" socat UDP-RECVFROM:$port,fork PIPE 2>/dev/null & 67 wait_local_port_listen "$ns" $port udp 73 local ns="$1" 74 local dev="$2" 78 ip -net "$ns" link set "$dev" up 79 ip -net "$ns" addr add "10.0.$i.$j/24" dev "$dev" 84 local ns="$1" 85 local daddr="$2" [all …]
|
| /linux/tools/testing/selftests/net/mptcp/ |
| H A D | diag.sh | 11 ns="" 13 timeout_test=$((timeout_poll * 2 + 1)) 22 ip netns pids "${ns}" | xargs --no-run-if-empty kill -SIGUSR1 &>/dev/null 25 [ -z "$(ip netns pids "${ns}")" ] && break 34 ip netns pids "${ns}" | xargs --no-run-if-empty kill -SIGKILL &>/dev/null 36 mptcp_lib_ns_exit "${ns}" 44 ip netns exec $ns cat /proc/net/protocols | awk '$1~/^MPTCP$/{print $3}' 50 local expected=$2 78 __chk_nr "ss -inmHMN $ns | $condition" "$@" 89 local msg="$2" [all …]
|
| H A D | mptcp_lib.sh | 15 declare -rx MPTCP_LIB_EVENT_ESTABLISHED=2 # MPTCP_EVENT_ESTABLISHED 25 declare -rx MPTCP_LIB_AF_INET=2 62 # $1: color, $2: text 109 # $1-2: listener/connector ns ; $3 port ; $4-5 listener/connector stat file 112 local cns="${2}" 126 } 1>&2 217 v=$(uname -r | cut -d'.' -f1,2) 287 # $1: result code ; $2: test name 290 local name="${2}" 331 # get the value of keyword $1 in the line marked by keyword $2 [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_xdp_redirect_multi.sh | |
| H A D | test_xdp_features.sh | 4 readonly NS="ns1-$(mktemp -u XXXXXX)" 14 ip netns add ${NS} 16 ip link add v1 type veth peer name v0 netns ${NS} 21 ip -n ${NS} link set dev v0 up 22 ip -n ${NS} addr add $V0_IP4/24 dev v0 23 ip -n ${NS} addr add $V0_IP6/64 nodad dev v0 28 ip netns exec ${NS} ethtool -K v0 gro on 29 ip netns exec ${NS} ethtool -K v0 tx-checksumming off 30 } > /dev/null 2>&1 34 ip link del v1 2> /dev/null [all …]
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | fib.sh | 96 local ns="testns1" 100 ip -n $ns link add name dummy1 type dummy 101 ip -n $ns link set dev dummy1 up 103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1 104 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false 107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1 108 fib4_trap_check $ns "table main 192.0.2.1/32 dev dummy1" true 111 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false 115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1 116 fib4_trap_check $ns "table main 192.0.2.2/32 dev dummy1" false [all …]
|
| /linux/arch/arm/boot/dts/ti/omap/ |
| H A D | omap-zoom-common.dtsi | 20 bank-width = <2>; 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 | omap2420-n8x0-common.dtsi | 17 gpios = <&gpio3 2 GPIO_ACTIVE_HIGH /* gpio66 clk */ 62 gpmc,device-width = <2>; 63 gpmc,mux-add-data = <2>; 64 gpmc,cs-on-ns = <0>; 65 gpmc,cs-rd-off-ns = <127>; 66 gpmc,cs-wr-off-ns = <109>; 67 gpmc,adv-on-ns = <0>; 68 gpmc,adv-rd-off-ns = <18>; 69 gpmc,adv-wr-off-ns = <18>; 70 gpmc,oe-on-ns = <27>; [all …]
|
| H A D | am335x-nano.dts | 225 #gpio-cells = <2>; 257 gpmc,num-waitpins = <2>; 261 #address-cells = <2>; 270 bank-width = <2>; 272 gpmc,mux-add-data = <2>; 275 gpmc,cs-on-ns = <0>; 276 gpmc,cs-rd-off-ns = <160>; 277 gpmc,cs-wr-off-ns = <160>; 278 gpmc,adv-on-ns = <10>; 279 gpmc,adv-rd-off-ns = <30>; [all …]
|
| H A D | omap2430-sdp.dts | 42 bank-width = <2>; 44 gpmc,mux-add-data = <2>; 48 gpmc,cs-on-ns = <6>; 49 gpmc,cs-rd-off-ns = <187>; 50 gpmc,cs-wr-off-ns = <187>; 51 gpmc,adv-on-ns = <18>; 52 gpmc,adv-rd-off-ns = <48>; 53 gpmc,adv-wr-off-ns = <48>; 54 gpmc,oe-on-ns = <60>; 55 gpmc,oe-off-ns = <169>; [all …]
|
| /linux/security/apparmor/ |
| H A D | policy_ns.c | 57 * aa_ns_name - Find the ns name to display for @view from @curr 71 /* at this point if a ns is visible it is in a view ns in aa_ns_name() 72 * thus the curr ns.hname is a prefix of its name. in aa_ns_name() 74 * Add + 2 to skip over // separating curr hname prefix in aa_ns_name() 77 return view->base.hname + strlen(curr->base.hname) + 2; in aa_ns_name() 107 struct aa_ns *ns; in alloc_ns() local 109 ns = kzalloc(sizeof(*ns), GFP_KERNEL); in alloc_ns() 110 AA_DEBUG(DEBUG_POLICY, "%s(%p)\n", __func__, ns); in alloc_ns() 111 if (!ns) in alloc_ns() 113 if (!aa_policy_init(&ns->base, prefix, name, GFP_KERNEL)) in alloc_ns() [all …]
|
| /linux/Documentation/devicetree/bindings/memory-controllers/ |
| H A D | ti-aemif.txt | 24 - #address-cells: Must be 2. The partition number has to be encoded in the 62 - #address-cells: Must be 2. 77 "ti,da850-aemif" range is [2-5]. 95 - ti,cs-min-turnaround-ns: minimum turn around time, ns 102 - ti,cs-read-setup-ns: read setup width, ns 107 - ti,cs-read-strobe-ns: read strobe width, ns 112 - ti,cs-read-hold-ns: read hold width, ns 119 - ti,cs-write-setup-ns: write setup width, ns 124 - ti,cs-write-strobe-ns: write strobe width, ns 129 - ti,cs-write-hold-ns: write hold width, ns [all …]
|
| H A D | ti,gpmc-child.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 29 gpmc,cs-on-ns: 33 gpmc,cs-rd-off-ns: 37 gpmc,cs-wr-off-ns: 42 gpmc,adv-on-ns: 46 gpmc,adv-rd-off-ns: 50 gpmc,adv-wr-off-ns: 54 gpmc,adv-aad-mux-on-ns: 58 gpmc,adv-aad-mux-rd-off-ns: 62 gpmc,adv-aad-mux-wr-off-ns: [all …]
|
| H A D | atmel,ebi.txt | 24 - #address-cells: Must be 2. 83 - atmel,smc-ncs-rd-setup-ns 84 - atmel,smc-nrd-setup-ns 85 - atmel,smc-ncs-wr-setup-ns 86 - atmel,smc-nwe-setup-ns 87 - atmel,smc-ncs-rd-pulse-ns 88 - atmel,smc-nrd-pulse-ns 89 - atmel,smc-ncs-wr-pulse-ns 90 - atmel,smc-nwe-pulse-ns 91 - atmel,smc-nwe-cycle-ns [all …]
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos4412.dtsi | 50 #cooling-cells = <2>; /* min followed by max */ 60 #cooling-cells = <2>; /* min followed by max */ 70 #cooling-cells = <2>; /* min followed by max */ 80 #cooling-cells = <2>; /* min followed by max */ 91 clock-latency-ns = <200000>; 96 clock-latency-ns = <200000>; 101 clock-latency-ns = <200000>; 106 clock-latency-ns = <200000>; 111 clock-latency-ns = <200000>; 116 clock-latency-ns = <200000>; [all …]
|
| /linux/arch/arm64/boot/dts/ti/ |
| H A D | k3-am62-lp-sk-nand.dtso | 46 #address-cells = <2>; 62 gpmc,cs-on-ns = <0>; 63 gpmc,cs-rd-off-ns = <40>; 64 gpmc,cs-wr-off-ns = <40>; 65 gpmc,adv-on-ns = <0>; 66 gpmc,adv-rd-off-ns = <25>; 67 gpmc,adv-wr-off-ns = <25>; 68 gpmc,we-on-ns = <0>; 69 gpmc,we-off-ns = <20>; 70 gpmc,oe-on-ns = <3>; [all …]
|
| /linux/drivers/net/netdevsim/ |
| H A D | netdev.c | 4 * This software is licensed under the GNU General License Version 2, 42 struct netdevsim *ns = netdev_priv(dev); in nsim_start_peer_tx_queue() local 50 peer_ns = rcu_dereference(ns->peer); in nsim_start_peer_tx_queue() 82 NSIM_RING_SIZE / 2); in nsim_stop_tx_queue() 122 struct netdevsim *ns = netdev_priv(dev); in nsim_start_xmit() local 133 if (!nsim_ipsec_tx(ns, skb)) in nsim_start_xmit() 136 peer_ns = rcu_dereference(ns->peer); in nsim_start_xmit() 140 dr = nsim_do_psp(skb, ns, peer_ns, &psp_ext); in nsim_start_xmit() 185 struct netdevsim *ns = netdev_priv(dev); in nsim_change_mtu() local 187 if (ns->xdp.prog && !ns->xdp.prog->aux->xdp_has_frags && in nsim_change_mtu() [all …]
|