Home
last modified time | relevance | path

Searched refs:route (Results 1 – 25 of 406) sorted by relevance

12345678910>>...17

/linux-6.6.21/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
117 route_addition_check $ip $notify $route $expected_num_notifications
122 route_addition_check $ip $notify $route $expected_num_notifications
129 route_addition_check $ip $notify $route $expected_num_notifications
138 local route=$1; shift
142 $IP route add $route dev dummy1
[all …]
/linux-6.6.21/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-6.6.21/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
71 ip -n $ns route append 192.0.2.0/24 dev dummy2 tos 0 metric 1024
[all …]
Dgre_inner_v4_multipath.sh85 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
134 ip route del vrf v$ul21 192.0.2.65/32
[all …]
Dip6gre_lib.sh158 ip route add vrf v$h1 203.0.113.0/24 via 198.51.100.2
159 ip -6 route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
164 ip -6 route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2
165 ip route del vrf v$h1 203.0.113.0/24 via 198.51.100.2
172 ip route add vrf v$h2 198.51.100.0/24 via 203.0.113.2
173 ip -6 route add vrf v$h2 2001:db8:1::/64 via 2001:db8:2::2
178 ip -6 route del vrf v$h2 2001:db8:1::/64 via 2001:db8:2::2
179 ip route del vrf v$h2 198.51.100.0/24 via 203.0.113.2
199 ip -6 route add 2001:db8:3::2/128 via 2001:db8:10::2
200 ip route add 203.0.113.0/24 dev g1a
[all …]
Dipip_lib.sh149 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2
154 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2
161 ip route add vrf v$h2 192.0.2.0/28 via 192.0.2.17
166 ip route del vrf v$h2 192.0.2.0/28 via 192.0.2.17
186 ip route add 192.0.2.66/32 via 192.0.2.130
188 ip route add 192.0.2.16/28 nexthop dev g1a
196 ip route del 192.0.2.16/28
198 ip route del 192.0.2.66/32 via 192.0.2.130
221 ip route add vrf v$ol2 192.0.2.65/32 via 192.0.2.129
222 ip route add vrf v$ol2 192.0.2.0/28 nexthop dev g2a
[all …]
Dgre_inner_v6_multipath.sh85 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
134 ip route del vrf v$ul21 192.0.2.65/32
[all …]
Dip6gre_inner_v4_multipath.sh84 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
133 ip -6 route del vrf v$ul21 2001:db8:40::1/128
[all …]
Dip6gre_inner_v6_multipath.sh84 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
133 ip -6 route del vrf v$ul21 2001:db8:40::1/128
[all …]
Dgre_custom_multipath_hash.sh90 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
119 ip route del vrf v$ol1 192.0.2.2/32
[all …]
Dip6gre_custom_multipath_hash.sh90 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
109 ip route add vrf v$ol1 2001:db8:3::2/128 via 2001:db8:10::2
111 ip route add vrf v$ol1 203.0.113.0/24 dev g1
112 ip -6 route add vrf v$ol1 2001:db8:2::/64 dev g1
117 ip -6 route del vrf v$ol1 2001:db8:2::/64
118 ip route del vrf v$ol1 203.0.113.0/24
120 ip route del vrf v$ol1 2001:db8:3::2/128
[all …]
Dgre_multipath_nh.sh76 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
113 ip route del vrf v$ol1 192.0.2.16/28
[all …]
Dgre_multipath.sh69 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
129 ip route add vrf v$ol2 192.0.2.81/32 via 192.0.2.145
[all …]
Drouter_bridge_vlan.sh50 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
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
60 ip -6 route del 2001:db8:4::/64 vrf v$h1
61 ip -4 route del 192.0.2.144/28 vrf v$h1
64 ip -6 route del 2001:db8:2::/64 vrf v$h1
65 ip -4 route del 192.0.2.128/28 vrf v$h1
75 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
76 ip -4 route add 192.0.2.16/28 vrf v$h2 nexthop via 192.0.2.145
[all …]
Drouter_bridge_1d.sh44 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
52 ip -6 route del 2001:db8:4::/64 vrf v$h1
53 ip -6 route del 2001:db8:2::/64 vrf v$h1
54 ip -4 route del 192.0.2.144/28 vrf v$h1
55 ip -4 route del 192.0.2.128/28 vrf v$h1
65 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129
66 ip -4 route add 192.0.2.16/28 vrf v$h2 nexthop via 192.0.2.145
[all …]
Dgre_multipath_nh_res.sh76 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
114 ip route del vrf v$ol1 192.0.2.16/28
[all …]
/linux-6.6.21/tools/testing/selftests/drivers/net/mlxsw/
Dfib_offload.sh65 num=$(ip -6 route show match ${pfx} | grep "offload" | wc -l)
79 ip -6 route add 2001:db8:3::/64 dev $spine_p1 metric 100
85 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 200
93 ip -6 route append 2001:db8:3::/64 dev $spine_p1 metric 10
103 ip -6 route flush 2001:db8:3::/64 dev $spine_p1
104 ip -6 route add 2001:db8:3::/64 dev $spine_p2
109 ip -6 route flush 2001:db8:3::/64
117 ip -6 route add 2001:db8:3::/64 metric 100 \
124 ip -6 route append 2001:db8:3::/64 metric 100 \
131 ip -6 route del 2001:db8:3::/64
[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-6.6.21/tools/testing/selftests/bpf/
Dtest_lwt_ip_encap.sh152 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
160 ip -netns ${NS2} -6 route add table 1001 unreachable default metric 8192
201 ip -netns ${NS1} route add ${IPv4_2}/32 dev veth1 ${VRF}
202 ip -netns ${NS1} route add default dev veth1 via ${IPv4_2} ${VRF} # go top by default
203 ip -netns ${NS1} -6 route add ${IPv6_2}/128 dev veth1 ${VRF}
204 ip -netns ${NS1} -6 route add default dev veth1 via ${IPv6_2} ${VRF} # go top by default
206 ip -netns ${NS1} route add ${IPv4_6}/32 dev veth5 ${VRF}
207 ip -netns ${NS1} route add ${IPv4_7}/32 dev veth5 via ${IPv4_6} ${VRF}
[all …]
/linux-6.6.21/tools/testing/selftests/net/
Dfib_tests.sh109 $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
121 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null
141 $IP route add 203.0.113.0/24 \
144 $IP -6 route add 2001:db8:3::/64 \
150 $IP route get fibmatch 203.0.113.1 &> /dev/null
152 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
160 $IP route get fibmatch 203.0.113.1 &> /dev/null
163 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null
[all …]
/linux-6.6.21/drivers/thunderbolt/
Dctl.h114 static inline struct tb_cfg_header tb_cfg_make_header(u64 route) in tb_cfg_make_header() argument
117 .route_hi = route >> 32, in tb_cfg_make_header()
118 .route_lo = route, in tb_cfg_make_header()
121 WARN_ON(tb_cfg_get_route(&header) != route); in tb_cfg_make_header()
125 int tb_cfg_ack_notification(struct tb_ctl *ctl, u64 route,
127 int tb_cfg_ack_plug(struct tb_ctl *ctl, u64 route, u32 port, bool unplug);
128 struct tb_cfg_result tb_cfg_reset(struct tb_ctl *ctl, u64 route);
130 u64 route, u32 port,
134 u64 route, u32 port,
137 int tb_cfg_read(struct tb_ctl *ctl, void *buffer, u64 route, u32 port,
[all …]
/linux-6.6.21/net/ax25/
Dax25_route.c72 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-6.6.21/net/netfilter/
Dnft_flow_offload.c30 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 …]
/linux-6.6.21/samples/bpf/
Dxdp_router_ipv4_user.c104 } 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()
155 &route.iface, &route.iface, 0) == 0); in read_route()
169 prefix_key->prefixlen = route.dst_len; in read_route()
[all …]
/linux-6.6.21/drivers/gpu/drm/nouveau/
Dnouveau_usif.c38 u8 route; member
89 object->route = args->v0.route; in usif_object_new()
91 args->v0.route = NVDRM_OBJECT_USIF; in usif_object_new()
100 args->v0.route = object->route; in usif_object_new()
139 if (argv->v0.route) { in usif_ioctl()
140 if (ret = -EINVAL, argv->v0.route == 0xff) in usif_ioctl()
158 if (argv->v0.route == NVDRM_OBJECT_USIF) { in usif_ioctl()
160 argv->v0.route = object->route; in usif_ioctl()
167 argv->v0.route = NVIF_IOCTL_V0_ROUTE_HIDDEN; in usif_ioctl()

12345678910>>...17