/Linux-v6.1/tools/testing/selftests/drivers/net/netdevsim/ |
D | fib_notifications.sh | 85 local route=$1; shift 93 $IP monitor route &> $outfile & 95 $IP route add $route dev dummy1 102 $IP route del $route dev dummy1 110 local route=192.0.2.0/24 113 # route. 117 route_addition_check $ip $notify $route $expected_num_notifications 119 # Make sure two notifications will be emitted for the programmed route. 122 route_addition_check $ip $notify $route $expected_num_notifications 124 # notify=2 means emit notifications only for failed route installation, [all …]
|
/Linux-v6.1/tools/testing/selftests/net/forwarding/ |
D | fib_offload_lib.sh | 9 local route=$1; shift 13 ip -n $ns -j -p -$family route show $route \ 31 local route=$1; shift 34 busywait 5000 __fib_trap_check $ns $family "$route" $should_fail 40 local route=$1; shift 43 fib_trap_check $ns 4 "$route" $should_fail 49 local route=$1; shift 52 fib_trap_check $ns 6 "$route" $should_fail 67 ip -n $ns route add 192.0.2.0/24 dev dummy1 tos 0 metric 1024 69 check_err $? "Route not in hardware when should" [all …]
|
D | gre_inner_v4_multipath.sh | 8 # route would be used. 85 ip route add vrf v$h1 192.0.4.0/24 via 192.0.3.1 90 ip route del vrf v$h1 192.0.4.0/24 via 192.0.3.1 101 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 103 ip route add vrf v$ol1 192.0.4.0/24 nexthop dev g1 108 ip route del vrf v$ol1 192.0.4.0/24 110 ip route del vrf v$ol1 192.0.2.66/32 125 ip route add vrf v$ul21 192.0.2.65/32 via 192.0.2.129 126 ip route add vrf v$ul21 192.0.2.66/32 \ 133 ip route del vrf v$ul21 192.0.2.66/32 [all …]
|
D | gre_multipath_nh.sh | 4 # Test traffic distribution when a wECMP route forwards traffic to two GRE 76 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 77 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 82 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 83 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 96 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 100 ip route add vrf v$ol1 192.0.2.82/32 via 192.0.2.146 106 ip route add vrf v$ol1 192.0.2.16/28 nhid 103 107 ip route add vrf v$ol1 2001:db8:2::/64 nhid 103 112 ip route del vrf v$ol1 2001:db8:2::/64 [all …]
|
D | gre_multipath_nh_res.sh | 4 # Test traffic distribution when a wECMP route forwards traffic to two GRE 76 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 77 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 82 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 83 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 96 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 100 ip route add vrf v$ol1 192.0.2.82/32 via 192.0.2.146 107 ip route add vrf v$ol1 192.0.2.16/28 nhid 103 108 ip route add vrf v$ol1 2001:db8:2::/64 nhid 103 113 ip route del vrf v$ol1 2001:db8:2::/64 [all …]
|
D | gre_inner_v6_multipath.sh | 8 # route would be used. 85 ip -6 route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1 90 ip -6 route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1 101 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 103 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1 108 ip -6 route del vrf v$ol1 2001:db8:2::/64 110 ip route del vrf v$ol1 192.0.2.66/32 125 ip route add vrf v$ul21 192.0.2.65/32 via 192.0.2.129 126 ip route add vrf v$ul21 192.0.2.66/32 \ 133 ip route del vrf v$ul21 192.0.2.66/32 [all …]
|
D | router_multipath.sh | 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 46 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1 47 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1 52 ip route del 2001:db8:1::/64 vrf vrf-h2 53 ip route del 192.0.2.0/24 vrf vrf-h2 83 ip route add 198.51.100.0/24 vrf vrf-r1 \ 86 ip route add 2001:db8:2::/64 vrf vrf-r1 \ [all …]
|
D | gre_multipath.sh | 4 # Test traffic distribution when a wECMP route forwards traffic to two GRE 69 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 74 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 87 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 91 ip route add vrf v$ol1 192.0.2.82/32 via 192.0.2.146 93 ip route add vrf v$ol1 192.0.2.16/28 \ 100 ip route del vrf v$ol1 192.0.2.16/28 102 ip route del vrf v$ol1 192.0.2.82/32 via 192.0.2.146 106 ip route del vrf v$ol1 192.0.2.66/32 via 192.0.2.130 125 ip route add vrf v$ol2 192.0.2.65/32 via 192.0.2.129 [all …]
|
D | router_nh.sh | 24 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 25 ip route add 2001:db8:2::/64 vrf vrf-h1 nexthop via 2001:db8:1::1 30 ip route del 2001:db8:2::/64 vrf vrf-h1 31 ip route del 198.51.100.0/24 vrf vrf-h1 51 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1 52 ip route add 2001:db8:1::/64 vrf vrf-h2 nexthop via 2001:db8:2::1 57 ip route del 2001:db8:1::/64 vrf vrf-h2 58 ip route del 192.0.2.0/24 vrf vrf-h2 102 ip route replace 192.0.2.0/24 nhid 101 103 ip route replace 2001:db8:1::/64 nhid 101 [all …]
|
D | tc_flower_router.sh | 13 ip route add 192.0.2.0/24 vrf v$h1 nexthop via 192.0.1.2 14 ip route add 192.0.3.0/24 vrf v$h1 nexthop via 192.0.1.2 19 ip route del 192.0.3.0/24 vrf v$h1 20 ip route del 192.0.2.0/24 vrf v$h1 29 ip route add 192.0.1.0/24 vrf v$h2 nexthop via 192.0.2.2 30 ip route add 192.0.3.0/24 vrf v$h2 nexthop via 192.0.2.2 35 ip route del 192.0.3.0/24 vrf v$h2 36 ip route del 192.0.1.0/24 vrf v$h2 45 ip route add 192.0.1.0/24 vrf v$h3 nexthop via 192.0.3.2 46 ip route add 192.0.2.0/24 vrf v$h3 nexthop via 192.0.3.2 [all …]
|
D | gre_custom_multipath_hash.sh | 8 # route would be used. 90 ip route add vrf v$h1 default via 198.51.100.1 dev $h1 91 ip -6 route add vrf v$h1 default via 2001:db8:1::1 dev $h1 96 ip -6 route del vrf v$h1 default 97 ip route del vrf v$h1 default 108 ip route add vrf v$ol1 192.0.2.2/32 via 192.0.2.18 110 ip route add vrf v$ol1 203.0.113.0/24 dev g1 111 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1 116 ip -6 route del vrf v$ol1 2001:db8:2::/64 117 ip route del vrf v$ol1 203.0.113.0/24 [all …]
|
D | ip6gre_inner_v4_multipath.sh | 8 # route would be used. 84 ip route add vrf v$h1 192.0.4.0/24 via 192.0.3.1 89 ip route del vrf v$h1 192.0.4.0/24 via 192.0.3.1 100 ip -6 route add vrf v$ol1 2001:db8:40::2/128 via 2001:db8:80::2 102 ip route add vrf v$ol1 192.0.4.0/24 nexthop dev g1 107 ip route del vrf v$ol1 192.0.4.0/24 109 ip -6 route del vrf v$ol1 2001:db8:40::2/128 124 ip -6 route add vrf v$ul21 2001:db8:40::1/128 via 2001:db8:80::1 125 ip -6 route add vrf v$ul21 2001:db8:40::2/128 \ 132 ip -6 route del vrf v$ul21 2001:db8:40::2/128 [all …]
|
/Linux-v6.1/tools/testing/selftests/drivers/net/mlxsw/ |
D | fib_offload.sh | 62 # Try to avoid races with route offload 65 num=$(ip -6 route show match ${pfx} | grep "offload" | wc -l) 78 # Add a prefix route and check that it is offloaded. 79 ip -6 route add 2001:db8:3::/64 dev $spine_p1 metric 100 81 check_err $? "prefix route not offloaded" 83 # Append an identical prefix route with an higher metric and check that 85 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 200 91 # Prepend an identical prefix route with lower metric and check that 93 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 10 101 # Delete the routes and add the same route with a different nexthop [all …]
|
D | fib.sh | 103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1 105 check_err $? "Local table route not in hardware when should" 107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1 109 check_err $? "Main table route in hardware when should not" 112 check_err $? "Local table route was replaced when should not" 115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1 117 check_err $? "Main table route not in hardware when should" 119 ip -n $ns route add table local 192.0.2.2/32 dev dummy1 121 check_err $? "Local table route did not replace route in main table when should" 124 check_err $? "Main table route was not replaced when should" [all …]
|
D | blackhole_routes.sh | 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 72 ip -4 route add default vrf v$h2 nexthop via 198.51.100.2 73 ip -6 route add default vrf v$h2 nexthop via 2001:db8:2::2 78 ip -6 route del default vrf v$h2 nexthop via 2001:db8:2::2 79 ip -4 route del default vrf v$h2 nexthop via 198.51.100.2 122 ip -4 route add blackhole 198.51.100.0/30 127 busywait "$TIMEOUT" wait_for_offload ip -4 route show 198.51.100.0/30 [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_mr_tcam.c | 284 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_create() local 288 route->key = route_params->key; in mlxsw_sp_mr_tcam_route_create() 289 route->irif_index = route_params->value.irif_index; in mlxsw_sp_mr_tcam_route_create() 290 route->min_mtu = route_params->value.min_mtu; in mlxsw_sp_mr_tcam_route_create() 291 route->action = route_params->value.route_action; in mlxsw_sp_mr_tcam_route_create() 294 mlxsw_sp_mr_erif_list_init(&route->erif_list); in mlxsw_sp_mr_tcam_route_create() 295 err = mlxsw_sp_mr_tcam_erif_populate(mlxsw_sp, &route->erif_list, in mlxsw_sp_mr_tcam_route_create() 301 err = mlxsw_sp_flow_counter_alloc(mlxsw_sp, &route->counter_index); in mlxsw_sp_mr_tcam_route_create() 306 route->afa_block = mlxsw_sp_mr_tcam_afa_block_create(mlxsw_sp, in mlxsw_sp_mr_tcam_route_create() 307 route->action, in mlxsw_sp_mr_tcam_route_create() [all …]
|
/Linux-v6.1/tools/testing/selftests/net/ |
D | fib_tests.sh | 100 echo "Single path route test" 105 $IP route get fibmatch 198.51.100.2 &> /dev/null 107 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null 115 $IP route get fibmatch 198.51.100.2 &> /dev/null 116 log_test $? 2 "IPv4 fibmatch - no route" 117 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null 118 log_test $? 2 "IPv6 fibmatch - no route" 127 echo "Multipath route test" 137 $IP route add 203.0.113.0/24 \ 140 $IP -6 route add 2001:db8:3::/64 \ [all …]
|
D | vrf_route_leaking.sh | 20 # Route from h1 to h2 and back goes through r1, incoming vrf blue has a route 21 # to the outgoing vrf red for the n2 network and red has a route back to n1. 38 # and VRF route leaking was initialy reported. The MTU test isn't done here 39 # because of the lack of a return route in the red VRF. 53 # Route from h1 to h2 goes through r1, incoming vrf blue has a route to the 54 # outgoing vrf red for the n2 network but red doesn't have a route back to n1. 55 # Route from h2 to h1 goes through r2. 199 ip -netns "${ns}" route add vrf "${vrf}" unreachable default metric 8192 200 ip -netns "${ns}" -6 route add vrf "${vrf}" unreachable default metric 8192 246 ip -netns h1 route add ${H2_N2} via ${R1_N1_IP} dev eth0 [all …]
|
/Linux-v6.1/tools/testing/selftests/tc-testing/tc-tests/filters/ |
D | route.json | 4 "name": "Add route filter with from and to tag", 7 "route" 15 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 100 route from 1 to 10 cla… 26 "name": "Add route filter with fromif and to tag", 29 "route" 37 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 100 route fromif $DEV1 to … 48 "name": "Add route filter with to flag and reclassify action", 51 "route" 59 …"cmdUnderTest": "$TC filter add dev $DEV1 parent ffff: protocol ip prio 2 route to 10 classid 1:20… 62 …"matchPattern": "filter protocol ip pref.*route chain [0-9]+.*flowid 1:20 to 10.*action order [0-9… [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_lwt_ip_encap.sh | 7 # veth1 <---> veth2 veth3 <---> veth4 (the top route) 8 # veth5 <---> veth6 veth7 <---> veth8 (the bottom route) 18 # IP*_1 <=> IP*_2 <=> IP*_3 <=> IP*_4 (the top route) 21 # NS1/NS2 are configured to route packets to IPv*_GRE via IP*_8 22 # (the bottom route) 30 # that encaps the packets with an IP/GRE header to route to IPv*_GRE 36 # that encaps the packets with an IP/GRE header to route to IPv*_GRE 151 ip -netns ${NS1} route add table 1001 unreachable default metric 8192 152 ip -netns ${NS1} -6 route add table 1001 unreachable default metric 8192 158 ip -netns ${NS2} route add table 1001 unreachable default metric 8192 [all …]
|
/Linux-v6.1/drivers/comedi/drivers/ |
D | ni_routes.h | 4 * Route information for NI boards. 34 * @dest: Destination of all sources in this route set. 35 * @n_src: Number of sources for this route set. 47 * @n_route_sets: Number of route sets that are valid for this device. 48 * @routes: List of route sets that are valid for this device. 58 * @valid_routes: Pointer to a all valid route sets for a single device. 82 * ni_find_route_set() - Finds the proper route set with the specified 84 * @destination: Destination of which to search for the route set. 103 * ni_route_to_register() - Validates and converts the specified signal route 106 * @src: global-identifier for route source [all …]
|
/Linux-v6.1/drivers/net/ipa/ |
D | ipa_table.c | 28 * DOC: IPA Filter and Route Tables 35 * Separate tables (both filter and route) used for IPv4 and IPv6. There 36 * are normally another set of "hashed" filter and route tables, which are 41 * an object (such as a route or filter table) in IPA-resident memory must 42 * 128-byte aligned. An object in system memory (such as a route or filter 44 * route or filter rules in system memory. 49 * filter or route table rules. 83 * The set of available route rules is divided about equally between the AP 84 * and modem. The AP initializes all entries in a route table to refer to 86 * updating their own entries. All entries in a route table are usable, [all …]
|
/Linux-v6.1/samples/bpf/ |
D | xdp_router_ipv4_user.c | 88 /* Function to parse the route entry returned by netlink 89 * Updates the route entry related map entries 104 } route; in read_route() local 116 memset(&route, 0, sizeof(route)); in read_route() 148 route.dst = atoi(dsts); in read_route() 149 route.dst_len = atoi(dsts_len); in read_route() 150 route.gw = atoi(gws); in read_route() 151 route.iface = atoi(ifs); in read_route() 152 route.metric = atoi(metrics); in read_route() 153 assert(get_mac_addr(route.iface, &route.mac) == 0); in read_route() [all …]
|
/Linux-v6.1/net/ax25/ |
D | ax25_route.c | 72 static int __must_check ax25_rt_add(struct ax25_routes_struct *route) in ax25_rt_add() argument 78 if (route->digi_count > AX25_MAX_DIGIS) in ax25_rt_add() 81 ax25_dev = ax25_addr_ax25dev(&route->port_addr); in ax25_rt_add() 89 if (ax25cmp(&ax25_rt->callsign, &route->dest_addr) == 0 && in ax25_rt_add() 93 if (route->digi_count != 0) { in ax25_rt_add() 100 ax25_rt->digipeat->ndigi = route->digi_count; in ax25_rt_add() 101 for (i = 0; i < route->digi_count; i++) { in ax25_rt_add() 103 ax25_rt->digipeat->calls[i] = route->digi_addr[i]; in ax25_rt_add() 119 ax25_rt->callsign = route->dest_addr; in ax25_rt_add() 123 if (route->digi_count != 0) { in ax25_rt_add() [all …]
|
/Linux-v6.1/net/netfilter/ |
D | nft_flow_offload.c | 30 static void nft_default_forward_path(struct nf_flow_route *route, in nft_default_forward_path() argument 34 route->tuple[!dir].in.ifindex = dst_cache->dev->ifindex; in nft_default_forward_path() 35 route->tuple[dir].dst = dst_cache; in nft_default_forward_path() 36 route->tuple[dir].xmit_type = nft_xmit_type(dst_cache); in nft_default_forward_path() 48 static int nft_dev_fill_forward_path(const struct nf_flow_route *route, in nft_dev_fill_forward_path() argument 187 static void nft_dev_forward_path(struct nf_flow_route *route, in nft_dev_forward_path() argument 192 const struct dst_entry *dst = route->tuple[dir].dst; in nft_dev_forward_path() 198 if (nft_dev_fill_forward_path(route, dst, ct, dir, ha, &stack) >= 0) in nft_dev_forward_path() 204 route->tuple[!dir].in.ifindex = info.indev->ifindex; in nft_dev_forward_path() 206 route->tuple[!dir].in.encap[i].id = info.encap[i].id; in nft_dev_forward_path() [all …]
|