/Linux-v5.4/tools/testing/selftests/net/forwarding/ |
D | loopback.sh | 11 simple_if_init $h1 192.0.2.1/24 12 tc qdisc add dev $h1 clsact 17 tc qdisc del dev $h1 clsact 18 simple_if_fini $h1 192.0.2.1/24 35 tc filter add dev $h1 ingress protocol arp pref 1 handle 101 flower \ 38 $MZ $h1 -c 1 -t arp -q 40 tc_check_packets "dev $h1 ingress" 101 1 43 ethtool -K $h1 loopback on 46 setup_wait_dev $h1 48 $MZ $h1 -c 1 -t arp -q [all …]
|
D | router.sh | 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 28 ip address del 2001:db8:1::2/64 dev $h1 [all …]
|
D | router_broadcast.sh | 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 29 ip link set dev $h1 down [all …]
|
D | router_vid_1.sh | 11 ip link set dev vrf-h1 up 13 ip link set dev $h1 up 14 vlan_create $h1 1 vrf-h1 192.0.2.2/24 2001:db8:1::2/64 16 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 17 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 22 ip route del 2001:db8:2::/64 vrf vrf-h1 23 ip route del 198.51.100.0/24 vrf vrf-h1 25 vlan_destroy $h1 1 26 ip link set dev $h1 down 28 ip link set dev vrf-h1 down [all …]
|
D | router_bridge_vlan.sh | 14 simple_if_init $h1 15 vlan_create $h1 555 v$h1 192.0.2.1/28 2001:db8:1::1/64 16 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2 17 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 22 ip -6 route del 2001:db8:2::/64 vrf v$h1 23 ip -4 route del 192.0.2.128/28 vrf v$h1 24 vlan_destroy $h1 555 25 simple_if_fini $h1 73 h1=${NETIFS[p1]} 117 ping_test $h1 192.0.2.130 [all …]
|
D | tc_vlan_modify.sh | 15 simple_if_init $h1 192.0.2.1/28 2001:db8:1::1/64 16 vlan_create $h1 85 v$h1 192.0.2.17/28 2001:db8:2::1/64 21 vlan_destroy $h1 85 22 simple_if_fini $h1 192.0.2.1/28 2001:db8:1::1/64 77 h1=${NETIFS[p1]} 107 ping_do $h1.85 192.0.2.18 110 ping6_do $h1.85 2001:db8:2::2 118 ping_do $h1.85 192.0.2.18 121 ping6_do $h1.85 2001:db8:2::2 134 ping_do $h1.85 192.0.2.18 [all …]
|
D | mirror_gre_lag_lacp.sh | 82 vlan_host_create $h1 333 vrf-h1 192.0.2.1/28 83 ip -4 route add 192.0.2.16/28 vrf vrf-h1 nexthop via 192.0.2.2 88 ip -4 route del 192.0.2.16/28 vrf vrf-h1 89 vlan_host_destroy $h1 333 vrf-h1 94 vlan_host_create $h1 555 vrf-h2 192.0.2.18/28 101 vlan_host_destroy $h1 555 vrf-h2 175 h1=${NETIFS[p1]} 186 ip link set dev $h1 up 207 ip link set dev $h1 down 229 mirror_test vrf-h1 192.0.2.1 192.0.2.18 $up_dev 1 10 [all …]
|
D | router_bridge.sh | 13 simple_if_init $h1 192.0.2.1/28 2001:db8:1::1/64 14 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2 15 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 20 ip -6 route del 2001:db8:2::/64 vrf v$h1 21 ip -4 route del 192.0.2.128/28 vrf v$h1 22 simple_if_fini $h1 192.0.2.1/28 2001:db8:1::1/64 66 h1=${NETIFS[p1]} 98 ping_test $h1 192.0.2.130 103 ping6_test $h1 2001:db8:2::2
|
D | mirror_gre_bridge_1q_lag.sh | 84 vlan_host_create $h1 333 vrf-h1 192.0.2.1/28 85 ip -4 route add 192.0.2.16/28 vrf vrf-h1 nexthop via 192.0.2.2 90 ip -4 route del 192.0.2.16/28 vrf vrf-h1 91 vlan_host_destroy $h1 333 vrf-h1 96 vlan_host_create $h1 555 vrf-h2 192.0.2.18/28 103 vlan_host_destroy $h1 555 vrf-h2 175 h1=${NETIFS[p1]} 186 ip link set dev $h1 up 213 ip link set dev $h1 down 240 mirror_test vrf-h1 192.0.2.1 192.0.2.18 $host_dev 1 10 [all …]
|
D | router_multicast.sh | 42 simple_if_init $h1 198.51.100.2/28 2001:db8:1::2/64 44 ip route add 198.51.100.16/28 vrf v$h1 nexthop via 198.51.100.1 45 ip route add 198.51.100.32/28 vrf v$h1 nexthop via 198.51.100.1 47 ip route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::1 48 ip route add 2001:db8:3::/64 vrf v$h1 nexthop via 2001:db8:1::1 50 tc qdisc add dev $h1 ingress 55 tc qdisc del dev $h1 ingress 57 ip route del 2001:db8:3::/64 vrf v$h1 58 ip route del 2001:db8:2::/64 vrf v$h1 60 ip route del 198.51.100.32/28 vrf v$h1 [all …]
|
D | bridge_vlan_unaware.sh | 10 simple_if_init $h1 192.0.2.1/24 2001:db8:1::1/64 15 simple_if_fini $h1 192.0.2.1/24 2001:db8:1::1/64 51 h1=${NETIFS[p1]} 79 ping_test $h1 192.0.2.2 84 ping6_test $h1 2001:db8:1::2 89 learning_test "br0" $swp1 $h1 $h2 94 flood_test $swp2 $h1 $h2
|
D | tc_flower.sh | 15 simple_if_init $h1 192.0.2.1/24 198.51.100.1/24 20 simple_if_fini $h1 192.0.2.1/24 198.51.100.1/24 46 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 72 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 98 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 109 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 132 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 143 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 168 $MZ $h1 -c 1 -p 1000 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 183 $MZ $h1 -c 1 -p 1000 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ [all …]
|
D | router_mpath_nh.sh | 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 28 ip address del 2001:db8:1::2/64 dev $h1 [all …]
|
D | router_multipath.sh | 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 28 ip address del 2001:db8:1::2/64 dev $h1 [all …]
|
/Linux-v5.4/lib/ |
D | test_hash.c | 72 u32 h0 = (u32)h64, h1, h2; in test_int_hash() local 75 hash_or[0][0] |= h1 = __hash_32(h0); in test_int_hash() 79 if (h1 != h2) { in test_int_hash() 81 h0, h1, h2); in test_int_hash() 92 hash_or[0][k] |= h1 = hash_32(h0, k); in test_int_hash() 93 if (h1 > m) { in test_int_hash() 94 pr_err("hash_32(%#x, %d) = %#x > %#x", h0, k, h1, m); in test_int_hash() 100 if (h1 != h2) { in test_int_hash() 102 " = %#x", h0, k, h1, h2); in test_int_hash() 108 h0, k, h1, m); in test_int_hash() [all …]
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | icmp_redirect.sh | 141 for ns in h1 h2 r1 r2; do 171 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 217 ip -netns h1 li add br0 type bridge 219 ip -netns h1 li set br0 vrf ${VRF} up 221 ip -netns h1 li set br0 up 223 ip -netns h1 addr add dev br0 ${H1_N1_IP}/24 [all …]
|
/Linux-v5.4/crypto/ |
D | poly1305_generic.c | 97 u32 h0, h1, h2, h3, h4; in poly1305_blocks_internal() local 115 h1 = state->h[1]; in poly1305_blocks_internal() 123 h1 += (get_unaligned_le32(src + 3) >> 2) & 0x3ffffff; in poly1305_blocks_internal() 129 d0 = mlt(h0, r0) + mlt(h1, s4) + mlt(h2, s3) + in poly1305_blocks_internal() 131 d1 = mlt(h0, r1) + mlt(h1, r0) + mlt(h2, s4) + in poly1305_blocks_internal() 133 d2 = mlt(h0, r2) + mlt(h1, r1) + mlt(h2, r0) + in poly1305_blocks_internal() 135 d3 = mlt(h0, r3) + mlt(h1, r2) + mlt(h2, r1) + in poly1305_blocks_internal() 137 d4 = mlt(h0, r4) + mlt(h1, r3) + mlt(h2, r2) + in poly1305_blocks_internal() 142 d2 += sr(d1, 26); h1 = and(d1, 0x3ffffff); in poly1305_blocks_internal() 146 h1 += h0 >> 26; h0 = h0 & 0x3ffffff; in poly1305_blocks_internal() [all …]
|
/Linux-v5.4/tools/testing/selftests/drivers/net/mlxsw/ |
D | qos_dscp_router.sh | 61 simple_if_init $h1 192.0.2.1/28 62 tc qdisc add dev $h1 clsact 63 dscp_capture_install $h1 0 64 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 69 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 70 dscp_capture_uninstall $h1 0 71 tc qdisc del dev $h1 clsact 72 simple_if_fini $h1 192.0.2.1/28 124 h1=${NETIFS[p1]} 152 ping_test $h1 192.0.2.18 [all …]
|
D | qos_dscp_bridge.sh | 39 simple_if_init $h1 192.0.2.1/28 40 tc qdisc add dev $h1 clsact 41 dscp_capture_install $h1 10 46 dscp_capture_uninstall $h1 10 47 tc qdisc del dev $h1 clsact 48 simple_if_fini $h1 192.0.2.1/28 103 h1=${NETIFS[p1]} 129 ping_test $h1 192.0.2.2 181 dscp_ping_test v$h1 192.0.2.1 192.0.2.2 $prio $h1 $h2
|
D | blackhole_routes.sh | 53 simple_if_init $h1 192.0.2.1/24 2001:db8:1::1/64 55 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2 56 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2 61 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2 62 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2 64 simple_if_fini $h1 192.0.2.1/24 2001:db8:1::1/64 107 ping_test $h1 198.51.100.1 ": h1->h2" 112 ping6_test $h1 2001:db8:2::1 ": h1->h2" 129 ping_do $h1 198.51.100.1 153 ping6_do $h1 2001:db8:2::1 [all …]
|
D | one_armed_router.sh | 54 simple_if_init $h1 192.0.2.1/24 2001:db8:1::1/64 56 ip -4 route add default vrf v$h1 nexthop via 192.0.2.2 57 ip -6 route add default vrf v$h1 nexthop via 2001:db8:1::2 62 ip -6 route del default vrf v$h1 nexthop via 2001:db8:1::2 63 ip -4 route del default vrf v$h1 nexthop via 192.0.2.2 65 simple_if_fini $h1 192.0.2.1/24 2001:db8:1::1/64 120 ping_test $h1 198.51.100.1 ": h1->h2" 125 ping6_test $h1 2001:db8:2::1 ": h1->h2" 146 ip vrf exec v$h1 $MZ $h1 -c 10 -d 100msec -p 64 -A 192.0.2.1 \ 189 ip vrf exec v$h1 $MZ $h1 -6 -c 10 -d 100msec -p 64 -A 2001:db8:1::1 \ [all …]
|
D | qos_ets_strict.sh | 60 simple_if_init $h1 61 mtu_set $h1 10000 63 vlan_create $h1 111 v$h1 192.0.2.33/28 64 ip link set dev $h1.111 type vlan egress-qos-map 0:1 69 vlan_destroy $h1 111 71 mtu_restore $h1 72 simple_if_fini $h1 201 h1=${NETIFS[p1]} 234 ping_test $h1 192.0.2.34 " from H1" 264 start_traffic $h1.111 192.0.2.33 192.0.2.34 $h3mac
|
/Linux-v5.4/net/sched/ |
D | cls_rsvp.h | 133 unsigned int h1, h2; in rsvp_classify() local 167 h1 = hash_dst(dst, protocol, tunnelid); in rsvp_classify() 170 for (s = rcu_dereference_bh(head->ht[h1]); s; in rsvp_classify() 226 unsigned int h1 = h & 0xFF; in rsvp_replace() local 229 for (s = rtnl_dereference(head->ht[h1]); s; in rsvp_replace() 252 unsigned int h1 = handle & 0xFF; in rsvp_get() local 258 for (s = rtnl_dereference(head->ht[h1]); s; in rsvp_get() 315 int h1, h2; in rsvp_destroy() local 320 for (h1 = 0; h1 < 256; h1++) { in rsvp_destroy() 323 while ((s = rtnl_dereference(data->ht[h1])) != NULL) { in rsvp_destroy() [all …]
|
D | cls_route.c | 220 unsigned int h1, h2; in route4_get() local 222 h1 = to_hash(handle); in route4_get() 223 if (h1 > 256) in route4_get() 230 b = rtnl_dereference(head->table[h1]); in route4_get() 279 int h1, h2; in route4_destroy() local 284 for (h1 = 0; h1 <= 256; h1++) { in route4_destroy() 287 b = rtnl_dereference(head->table[h1]); in route4_destroy() 304 RCU_INIT_POINTER(head->table[h1], NULL); in route4_destroy() 320 int i, h1; in route4_delete() local 364 for (h1 = 0; h1 <= 256; h1++) { in route4_delete() [all …]
|
/Linux-v5.4/tools/testing/selftests/drivers/net/mlxsw/spectrum-2/ |
D | tc_flower.sh | 23 simple_if_init $h1 192.0.2.1/24 198.51.100.1/24 28 simple_if_fini $h1 192.0.2.1/24 198.51.100.1/24 103 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 112 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 118 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 198.51.100.1 -B 198.51.100.2 \ 126 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 198.51.100.1 -B 198.51.100.2 \ 151 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 159 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 168 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ 176 $MZ $h1 -c 1 -p 64 -a $h1mac -b $h2mac -A 192.0.2.1 -B 192.0.2.2 \ [all …]
|