/linux/tools/testing/selftests/drivers/net/hw/ |
H A D | ethtool.sh | 19 simple_if_init $h1 192.0.2.1/24 24 simple_if_fini $h1 192.0.2.1/24 39 h1=${NETIFS[p1]} 58 local -a speeds_arr=($(common_speeds_get $h1 $h2 0 0)) 62 ethtool_set $h1 speed $speed autoneg off 65 setup_wait_dev_with_timeout $h1 67 ping_do $h1 192.0.2.2 73 ethtool -s $h1 autoneg on 82 local -a speeds_arr=($(different_speeds_get $h1 $h2 0 0)) 86 ethtool_set $h1 speed $speed1 autoneg off [all …]
|
H A D | loopback.sh | 15 simple_if_init $h1 192.0.2.1/24 16 tc qdisc add dev $h1 clsact 21 tc qdisc del dev $h1 clsact 22 simple_if_fini $h1 192.0.2.1/24 39 tc filter add dev $h1 ingress protocol arp pref 1 handle 101 flower \ 42 $MZ $h1 -c 1 -t arp -q 44 tc_check_packets "dev $h1 ingress" 101 1 47 ethtool -K $h1 loopback on 50 setup_wait_dev $h1 52 $MZ $h1 -c 1 -t arp -q [all …]
|
/linux/tools/testing/selftests/net/forwarding/ |
H A D | router_broadcast.sh | 10 vrf_create "vrf-h1" 11 ip link set dev $h1 master vrf-h1 13 ip link set dev vrf-h1 up 14 ip link set dev $h1 up 16 ip address add 192.0.2.2/24 dev $h1 18 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 19 ip route add 198.51.200.0/24 vrf vrf-h1 nexthop via 192.0.2.1 24 ip route del 198.51.200.0/24 vrf vrf-h1 25 ip route del 198.51.100.0/24 vrf vrf-h1 27 ip address del 192.0.2.2/24 dev $h1 [all …]
|
H A D | bridge_locked_port.sh | 21 simple_if_init $h1 192.0.2.1/24 2001:db8:1::1/64 22 vlan_create $h1 100 v$h1 198.51.100.1/24 27 vlan_destroy $h1 100 28 simple_if_fini $h1 192.0.2.1/24 2001:db8:1::1/64 67 h1=${NETIFS[p1]} 99 ping_do $h1 192.0.2.2 104 ping_do $h1 192.0.2.2 107 bridge fdb add `mac_get $h1` dev $swp1 master static 109 ping_do $h1 192.0.2.2 113 bridge fdb del `mac_get $h1` dev $swp1 master static [all …]
|
H A D | tc_actions.sh | 19 simple_if_init $h1 192.0.2.1/24 20 tc qdisc add dev $h1 clsact 25 tc qdisc del dev $h1 clsact 26 simple_if_fini $h1 192.0.2.1/24 69 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 79 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 99 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 108 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 137 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 146 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ [all …]
|
H A D | tc_tunnel_key.sh | 14 simple_if_init $h1 192.0.2.1/24 16 mtu_set $h1 1500 17 tunnel_create h1-et vxlan 192.0.2.1 192.0.2.2 dev $h1 dstport 0 external 18 tc qdisc add dev h1-et clsact 19 mtu_set h1-et 1230 20 mtu_restore $h1 21 mtu_set $h1 1000 26 tc qdisc del dev h1-et clsact 27 tunnel_destroy h1-et 29 mtu_restore $h1 [all …]
|
H A D | router_bridge_vlan.sh | 5 # | H1 (vrf) | | H2 (vrf) | 6 # | + $h1.555 + $h1.777 | | + $h2 | 11 # | + $h1 | | | | 47 simple_if_init $h1 49 vlan_create $h1 555 v$h1 192.0.2.1/28 2001:db8:1::1/64 50 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2 51 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 53 vlan_create $h1 777 v$h1 192.0.2.17/28 2001:db8:3::1/64 54 ip -4 route add 192.0.2.144/28 vrf v$h1 nexthop via 192.0.2.18 55 ip -6 route add 2001:db8:4::/64 vrf v$h1 nexthop via 2001:db8:3::2 [all …]
|
H A D | no_forwarding.sh | 9 h1=${NETIFS[p1]} 93 local smac=$(mac_get $h1) 95 local h1_ipv6_lladdr=$(ipv6_lladdr_get $h1) 102 send_non_ip $h1 $smac $dmac 103 send_non_ip $h1 $smac $NON_IP_MC 104 send_non_ip $h1 $smac $BC 105 send_uc_ipv4 $h1 $dmac 106 send_mc_ipv4 $h1 107 send_uc_ipv6 $h1 $dmac 108 send_mc_ipv6 $h1 [all …]
|
H A D | router_nh.sh | 5 # | H1 | | H2 | 6 # | $h1 + | | $h2 + | 29 vrf_create "vrf-h1" 30 ip link set dev $h1 master vrf-h1 32 ip link set dev vrf-h1 up 33 ip link set dev $h1 up 35 ip address add 192.0.2.2/24 dev $h1 36 ip address add 2001:db8:1::2/64 dev $h1 38 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 39 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 [all …]
|
H A D | router_bridge_1d.sh | 5 # | H1 (vrf) | | H2 (vrf) | 6 # | + $h1.100 + $h1.200 | | + $h2 | 11 # | + $h1 | | | | 41 simple_if_init $h1 42 vlan_create $h1 100 v$h1 192.0.2.1/28 2001:db8:1::1/64 43 vlan_create $h1 200 v$h1 192.0.2.17/28 2001:db8:3::1/64 44 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2 45 ip -4 route add 192.0.2.144/28 vrf v$h1 nexthop via 192.0.2.18 46 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 47 ip -6 route add 2001:db8:4::/64 vrf v$h1 nexthop via 2001:db8:3::2 [all …]
|
H A D | router_vid_1.sh | 5 # | H1 | | H2 | 7 # | $h1.1 + | | + $h2.1 | 11 # | $h1 + | | + $h2 | 35 vrf_create "vrf-h1" 36 ip link set dev vrf-h1 up 38 ip link set dev $h1 up 39 vlan_create $h1 1 vrf-h1 192.0.2.2/24 2001:db8:1::2/64 41 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 42 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 47 ip route del 2001:db8:2::/64 vrf vrf-h1 [all …]
|
H A D | router_multipath.sh | 10 vrf_create "vrf-h1" 11 ip link set dev $h1 master vrf-h1 13 ip link set dev vrf-h1 up 14 ip link set dev $h1 up 16 ip address add 192.0.2.2/24 dev $h1 17 ip address add 2001:db8:1::2/64 dev $h1 19 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 20 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 25 ip route del 2001:db8:2::/64 vrf vrf-h1 26 ip route del 198.51.100.0/24 vrf vrf-h1 [all …]
|
H A D | router.sh | 5 # | H1 | | H2 | 7 # | $h1 + | | + $h2 | 42 vrf_create "vrf-h1" 43 ip link set dev $h1 master vrf-h1 45 ip link set dev vrf-h1 up 46 ip link set dev $h1 up 48 ip address add 192.0.2.2/24 dev $h1 49 ip address add 2001:db8:1::2/64 dev $h1 51 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 52 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 [all …]
|
/linux/tools/testing/selftests/drivers/net/virtio_net/ |
H A D | basic_features.sh | 16 h1=${NETIFS[p1]} 21 simple_if_init $h1 $H1_IPV4/24 $H1_IPV6/64 26 simple_if_fini $h1 $H1_IPV4/24 $H1_IPV6/64 43 ping_test $h1 $H2_IPV4 " simple" 51 virtio_feature_present $h1 $VIRTIO_NET_F_MAC 53 log_test_skip "$test_name" "Device $h1 is missing feature $VIRTIO_NET_F_MAC." 56 virtio_feature_present $h1 $VIRTIO_NET_F_MAC 65 grep -q 0 /sys/class/net/$h1/addr_assign_type 66 check_err $? "Permanent address assign type for $h1 is not set" 71 virtio_filter_feature_add $h1 $VIRTIO_NET_F_MAC [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | rif_mac_profiles_occ.sh | 15 h1=${NETIFS[p1]} 20 sysctl_set net.ipv6.conf.$h1.disable_ipv6 1 23 ip link set $h1 up 32 ip link set $h1 down 35 sysctl_restore net.ipv6.conf.$h1.disable_ipv6 51 link add link $h1 name $h1.$vlan \ 53 address add 192.0.$m.1/24 dev $h1.$vlan 63 local h1_10_mac=$(mac_get $h1.10) 67 ip link set $h1.10 address 00:12:34:56:78:99 72 ip link set $h1.10 address $h1_10_mac [all …]
|
H A D | devlink_trap_control.sh | 9 # | H1 (vrf) | 10 # | + $h1 | 95 simple_if_init $h1 192.0.2.1/24 2001:db8:1::1/64 97 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2 98 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2 103 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2 104 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2 106 simple_if_fini $h1 192.0.2.1/24 2001:db8:1::1/64 145 h1=${NETIFS[p1]} 173 devlink_trap_stats_test "STP" "stp" $MZ $h1 -c 1 -t bpdu -q [all …]
|
H A D | sch_offload.sh | 23 h=$(qdisc_stats_get $h1 "$handle" .handle) 27 offloaded=$(qdisc_stats_get $h1 "$handle" .offloaded) 37 local offloaded=$(qdisc_stats_get $h1 "$handle" .offloaded) 42 local unoffloaded=$(tc q sh dev $h1 invisible | 57 tc qdisc add dev $h1 $locus handle $handle \ 60 tc qdisc del dev $h1 $locus 68 tc qdisc add dev $h1 $locus handle $handle \ 71 tc qdisc del dev $h1 $locus 79 tc qdisc add dev $h1 $locus handle $handle \ 82 tc qdisc del dev $h1 $locus [all …]
|
/linux/lib/crypto/ |
H A D | poly1305-donna64.c | 40 u64 h0, h1, h2; in poly1305_core_blocks() local 54 h1 = state->h64[1]; in poly1305_core_blocks() 68 h1 += ((t0 >> 44) | (t1 << 20)) & 0xfffffffffffULL; in poly1305_core_blocks() 73 d = (u128)h1 * s2; in poly1305_core_blocks() 78 d = (u128)h1 * r0; in poly1305_core_blocks() 83 d = (u128)h1 * r1; in poly1305_core_blocks() 93 h1 = (u64)d1 & 0xfffffffffffULL; in poly1305_core_blocks() 100 h1 += c; in poly1305_core_blocks() 106 state->h64[1] = h1; in poly1305_core_blocks() 115 u64 h0, h1, h2, c; in poly1305_core_emit() local [all …]
|
H A D | poly1305-donna32.c | 38 u32 h0, h1, h2, h3, h4; in poly1305_core_blocks() local 59 h1 = state->h[1]; in poly1305_core_blocks() 67 h1 += (get_unaligned_le32(&input[3]) >> 2) & 0x3ffffff; in poly1305_core_blocks() 73 d0 = ((u64)h0 * r0) + ((u64)h1 * s4) + in poly1305_core_blocks() 76 d1 = ((u64)h0 * r1) + ((u64)h1 * r0) + in poly1305_core_blocks() 79 d2 = ((u64)h0 * r2) + ((u64)h1 * r1) + in poly1305_core_blocks() 82 d3 = ((u64)h0 * r3) + ((u64)h1 * r2) + in poly1305_core_blocks() 85 d4 = ((u64)h0 * r4) + ((u64)h1 * r3) + in poly1305_core_blocks() 94 h1 = (u32)d1 & 0x3ffffff; in poly1305_core_blocks() 107 h1 += c; in poly1305_core_blocks() [all …]
|
/linux/arch/x86/crypto/ |
H A D | poly1305-x86_64-cryptogams.pl | 180 my ($h0,$h1,$h2)=("%r14","%rbx","%r10"); 196 mulq $h1 # h1*r0 201 mulq $h1 # h1*s1 202 mov $h2,$h1 # borrow $h1 206 imulq $s1,$h1 # h2*s1 207 add $h1,$d2 208 mov $d1,$h1 212 add $d2,$h1 222 adc \$0,$h1 330 mov 8($ctx),$h1 [all …]
|
/linux/drivers/md/dm-vdo/ |
H A D | murmurhash3.c | 38 u64 h1 = seed; in murmurhash3_128() local 59 h1 ^= k1; in murmurhash3_128() 61 h1 = ROTL64(h1, 27); in murmurhash3_128() 62 h1 += h2; in murmurhash3_128() 63 h1 = h1 * 5 + 0x52dce729; in murmurhash3_128() 71 h2 += h1; in murmurhash3_128() 136 h1 ^= k1; in murmurhash3_128() 144 h1 ^= len; in murmurhash3_128() 147 h1 += h2; in murmurhash3_128() 148 h2 += h1; in murmurhash3_128() [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | vrf_route_leaking.sh | 14 # | h1 |-------------------| r1 |-------------------| h2 | 20 # Route from h1 to h2 and back goes through r1, incoming vrf blue has a route 24 # The first test sends a ping with a ttl of 1 from h1 to h2 and parses the 27 # The second test runs traceroute from h1 to h2 and parses the output to check 30 # The third test sends a ping with a packet size of 1450 from h1 to h2 and 46 # | h1 |--------------+ +--------------| h2 | 53 # Route from h1 to h2 goes through r1, incoming vrf blue has a route to the 55 # Route from h2 to h1 goes through r2. 175 cleanup_ns $h1 $h2 $r1 $r2 212 setup_ns h1 h2 r1 [all …]
|
H A D | icmp_redirect.sh | 10 # | h1 |--------------+ | 10.1.1.0/30 2001:db8:1::0/126 18 # Route from h1 to h2 goes through r1, eth1 - connection between r1 and r2. 20 # from r1 to h1 telling h1 to use r2 when talking to h2. 144 cleanup_ns $h1 $h2 $r1 $r2 171 setup_ns h1 h2 r1 r2 172 for ns in $h1 $h2 $r1 $r2; do 192 ip -netns $h1 li add eth0 type veth peer name r1h1 193 ip -netns $h1 li set r1h1 netns $r1 name eth0 up 195 ip -netns $h1 li add eth1 type veth peer name r2h1 196 ip -netns $h1 li set r2h1 netns $r2 name eth0 up [all …]
|
/linux/arch/arm64/crypto/ |
H A D | poly1305-armv8.pl | 47 my ($h0,$h1,$h2,$r0,$r1,$s1,$t0,$t1,$d0,$d1,$d2) = map("x$_",(4..14)); 118 ldp $h0,$h1,[$ctx] // load hash value 125 lsr $d2,$h1,#32 126 mov w15,w#$h1 131 mov w#$d2,w#$h1 132 lsr x15,$h1,#32 148 csel $h1,$h1,$d1,eq 159 adcs $h1,$h1,$t1 165 mul $t0,$h1,$s1 // h1*5*r1 166 umulh $t1,$h1,$s1 [all …]
|
/linux/tools/testing/selftests/drivers/net/ocelot/ |
H A D | basic_qos.sh | 18 h1=${NETIFS[p1]} 30 simple_if_init $h1 $H1_IPV4/24 $H1_IPV6/64 35 simple_if_fini $h1 $H1_IPV4/24 $H1_IPV6/64 52 vlan_create $h1 $vid 53 simple_if_init $h1.$vid $H1_IPV4/24 $H1_IPV6/64 54 ip link set $h1.$vid type vlan \ 63 simple_if_fini $h1.$vid $H1_IPV4/24 $H1_IPV6/64 64 vlan_destroy $h1 $vid 91 tc qdisc add dev ${h1}.100 clsact 92 tc filter add dev ${h1}.100 egress protocol ipv4 \ [all …]
|