Home
last modified time | relevance | path

Searched full:route (Results 1 – 25 of 925) sorted by relevance

12345678910>>...37

/linux-5.10/tools/testing/selftests/net/forwarding/
Dfib_offload_lib.sh9 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 …]
Dgre_inner_v4_multipath.sh8 # 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 …]
Dgre_inner_v6_multipath.sh8 # 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 …]
Drouter_multipath.sh19 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 …]
Dtc_flower_router.sh13 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 …]
Dgre_multipath.sh4 # 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 …]
Dip6gre_inner_v6_multipath.sh8 # route would be used.
84 ip -6 route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1
89 ip -6 route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::1
100 ip -6 route add vrf v$ol1 2001:db8:40::2/128 via 2001:db8:80::2
102 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1
107 ip -6 route del vrf v$ol1 2001:db8:2::/64
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 …]
Dip6gre_inner_v4_multipath.sh8 # 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 …]
Drouter_multicast.sh44 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
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
61 ip route del 198.51.100.16/28 vrf v$h1
70 ip route add 198.51.100.0/28 vrf v$h2 nexthop via 198.51.100.17
71 ip route add 198.51.100.32/28 vrf v$h2 nexthop via 198.51.100.17
[all …]
/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
Dfib_offload.sh62 # 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 …]
Dfib.sh103 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 …]
Dblackhole_routes.sh56 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-5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_mr_tcam.c284 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-5.10/tools/testing/selftests/bpf/
Dtest_lwt_ip_encap.sh7 # 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
135 ip -netns ${NS1} route add table 1001 unreachable default metric 8192
136 ip -netns ${NS1} -6 route add table 1001 unreachable default metric 8192
142 ip -netns ${NS2} route add table 1001 unreachable default metric 8192
[all …]
Dtest_lwt_seg6local.sh95 ip netns exec ns1 ip -6 route add fb00::21 dev veth1 scope link
98 ip netns exec ns2 ip -6 route add fb00::43 dev veth3 scope link
99 ip netns exec ns3 ip -6 route add fb00::65 dev veth5 scope link
104 ip netns exec ns4 ip -6 route add fb00::87 dev veth7 scope link
107 ip netns exec ns5 ip -6 route add fb00::109 dev veth9 scope link
108 ip netns exec ns5 ip -6 route add fb00::109 table 117 dev veth9 scope link
112 ip netns exec ns1 ip -6 route add fb00::6 dev veth1 via fb00::21
114 ip netns exec ns2 ip -6 route add fb00::6 encap bpf in obj test_lwt_seg6local.o sec encap_srh dev v…
115 ip netns exec ns2 ip -6 route add fd00::1 dev veth3 via fb00::43 scope link
117 ip netns exec ns3 ip -6 route add fc42::1 dev veth5 via fb00::65
[all …]
/linux-5.10/tools/testing/selftests/net/
Dfib_tests.sh100 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 …]
Dvrf_route_leaking.sh20 # 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 …]
Dfib_nexthops.sh217 echo " WARNING: Unexpected route entry"
241 out=$($IP route ls match ${pfx} 2>/dev/null)
252 out=$($IP -6 route ls match ${pfx} 2>/dev/null | sed -e 's/pref medium//')
409 log_test $? 2 "Route add with fdb nexthop"
412 log_test $? 2 "Route add with fdb nexthop group"
489 log_test $? 2 "Route add with fdb nexthop"
492 log_test $? 2 "Route add with fdb nexthop group"
682 log_test $? 0 "Route add"
685 log_test $? 0 "Route delete"
732 log_test $? 0 "IPv6 route with device only nexthop"
[all …]
/linux-5.10/drivers/staging/comedi/drivers/
Dni_routes.h5 * Route information for NI boards.
35 * @dest: Destination of all sources in this route set.
36 * @n_src: Number of sources for this route set.
48 * @n_route_sets: Number of route sets that are valid for this device.
49 * @routes: List of route sets that are valid for this device.
59 * @valid_routes: Pointer to a all valid route sets for a single device.
83 * ni_find_route_set() - Finds the proper route set with the specified
85 * @destination: Destination of which to search for the route set.
104 * ni_route_to_register() - Validates and converts the specified signal route
107 * @src: global-identifier for route source
[all …]
Dni_routes.c5 * Route information for NI boards.
53 * Find the route values for a device family.
124 * @device_family: Device family name (determines route values).
129 * Finds the route values for the device family and the set of valid routes
134 * (for example, with the route values but not the set of valid routes).
192 * destination of a route pair respectively.
373 * ni_find_route_set() - Finds the proper route set with the specified
375 * @destination: Destination of which to search for the route set.
408 * ni_lookup_route_register() - Look up a register value for a particular route
409 * without checking whether the route is valid for
[all …]
/linux-5.10/samples/bpf/
Dxdp_router_ipv4_user.c119 /* Function to parse the route entry returned by netlink
120 * Updates the route entry related map entries
136 } route; in read_route() local
149 printf("DELETING Route entry\n"); in read_route()
151 printf("READING Route entry\n"); in read_route()
153 printf("NEW Route entry\n"); in read_route()
157 memset(&route, 0, sizeof(route)); in read_route()
190 route.dst = atoi(dsts); in read_route()
191 route.dst_len = atoi(dsts_len); in read_route()
192 route.gw = atoi(gws); in read_route()
[all …]
/linux-5.10/drivers/net/ipa/
Dipa_table.c28 * DOC: IPA Filter and Route Tables
36 * filter or route table rules. Separate tables (both filter and route)
38 * route tables, which are used when a hash of message metadata matches.
73 * The set of available route rules is divided about equally between the AP
74 * and modem. The AP initializes all entries in a route table to refer to
76 * updating their own entries. All entries in a route table are usable,
79 * IPA Route Table
81 * 1st modem route | 0x0001234500001100 | DMA address for first route rule
83 * 2nd modem route | 0x0001234500001140 | DMA address for second route rule
87 * Last modem route| 0x0001234500002280 | DMA address for Nth route rule
[all …]
/linux-5.10/drivers/thunderbolt/
Dtest.c36 static struct tb_switch *alloc_switch(struct kunit *test, u64 route, in alloc_switch() argument
48 sw->config.depth = tb_route_length(route); in alloc_switch()
49 sw->config.route_hi = upper_32_bits(route); in alloc_switch()
50 sw->config.route_lo = lower_32_bits(route); in alloc_switch()
147 u64 route, bool bonded) in alloc_dev_default() argument
152 sw = alloc_switch(test, route, 1, 19); in alloc_dev_default()
256 port = tb_port_at(route, parent); in alloc_dev_default()
277 u64 route, bool bonded) in alloc_dev_with_dpin() argument
281 sw = alloc_dev_default(test, parent, route, bonded); in alloc_dev_with_dpin()
347 u64 route; member
[all …]
/linux-5.10/net/ax25/
Dax25_route.c72 static int __must_check ax25_rt_add(struct ax25_routes_struct *route) in ax25_rt_add() argument
78 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL) in ax25_rt_add()
80 if (route->digi_count > AX25_MAX_DIGIS) in ax25_rt_add()
87 if (ax25cmp(&ax25_rt->callsign, &route->dest_addr) == 0 && in ax25_rt_add()
91 if (route->digi_count != 0) { in ax25_rt_add()
97 ax25_rt->digipeat->ndigi = route->digi_count; in ax25_rt_add()
98 for (i = 0; i < route->digi_count; i++) { in ax25_rt_add()
100 ax25_rt->digipeat->calls[i] = route->digi_addr[i]; in ax25_rt_add()
115 ax25_rt->callsign = route->dest_addr; in ax25_rt_add()
119 if (route->digi_count != 0) { in ax25_rt_add()
[all …]
/linux-5.10/sound/soc/codecs/
Dcpcap.c690 /* Capture Route */
691 SND_SOC_DAPM_MUX("Right Capture Route",
693 SND_SOC_DAPM_MUX("Left Capture Route",
755 SND_SOC_DAPM_MUX("Earpiece Playback Route", SND_SOC_NOPM, 0, 0,
757 SND_SOC_DAPM_MUX("Speaker Right Playback Route", SND_SOC_NOPM, 0, 0,
759 SND_SOC_DAPM_MUX("Speaker Left Playback Route", SND_SOC_NOPM, 0, 0,
761 SND_SOC_DAPM_MUX("Lineout Right Playback Route", SND_SOC_NOPM, 0, 0,
763 SND_SOC_DAPM_MUX("Lineout Left Playback Route", SND_SOC_NOPM, 0, 0,
765 SND_SOC_DAPM_MUX("Headset Right Playback Route", SND_SOC_NOPM, 0, 0,
767 SND_SOC_DAPM_MUX("Headset Left Playback Route", SND_SOC_NOPM, 0, 0,
[all …]

12345678910>>...37