Home
last modified time | relevance | path

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

12345678910>>...81

/kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/netdevsim/
Dfib_notifications.sh85 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 …]
/kernel/linux/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
Dfib_tests.sh104 echo "Single path route test"
109 $IP route get fibmatch 198.51.100.2 &> /dev/null
111 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
119 $IP route get fibmatch 198.51.100.2 &> /dev/null
120 log_test $? 2 "IPv4 fibmatch - no route"
121 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
122 log_test $? 2 "IPv6 fibmatch - no route"
131 echo "Multipath route test"
141 $IP route add 203.0.113.0/24 \
144 $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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/tc-tests/filters/
Droute.json4 "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 …]
/kernel/linux/linux-6.6/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
152 ip -netns ${NS1} route add table 1001 unreachable default metric 8192
153 ip -netns ${NS1} -6 route add table 1001 unreachable default metric 8192
159 ip -netns ${NS2} route add table 1001 unreachable default metric 8192
[all …]
/kernel/linux/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
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 …]
/kernel/linux/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 …]
/kernel/linux/linux-6.6/drivers/comedi/drivers/
Dni_routes.h4 * 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 …]
/kernel/linux/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 …]
/kernel/linux/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 …]
/kernel/linux/linux-5.10/drivers/net/ipa/
Dipa_table.c28 * 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 …]
/kernel/linux/linux-6.6/samples/bpf/
Dxdp_router_ipv4_user.c88 /* 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 …]

12345678910>>...81