/linux/tools/testing/selftests/drivers/net/netdevsim/ |
H A 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 [all...] |
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A 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/tools/testing/selftests/net/forwarding/ |
H A 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 71 ip -n $ns route append 192.0.2.0/24 dev dummy2 tos 0 metric 1024 [all …]
|
H A D | ip6gre_lib.sh | 158 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 …]
|
H A D | gre_inner_v4_multipath.sh | 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 134 ip route del vrf v$ul21 192.0.2.65/32 [all …]
|
H A D | ipip_lib.sh | 148 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 153 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 160 ip route add vrf v$h2 192.0.2.0/28 via 192.0.2.17 165 ip route del vrf v$h2 192.0.2.0/28 via 192.0.2.17 185 ip route add 192.0.2.66/32 via 192.0.2.130 187 ip route add 192.0.2.16/28 nexthop dev g1a 195 ip route del 192.0.2.16/28 197 ip route del 192.0.2.66/32 via 192.0.2.130 220 ip route add vrf v$ol2 192.0.2.65/32 via 192.0.2.129 221 ip route add vrf v$ol2 192.0.2.0/28 nexthop dev g2a [all …]
|
H A D | gre_inner_v6_multipath.sh | 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 134 ip route del vrf v$ul21 192.0.2.65/32 [all …]
|
H A D | gre_multipath_nh_res.sh | 75 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 76 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 81 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 82 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 95 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 99 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 …]
|
H A D | gre_multipath_nh.sh | 75 ip route add vrf v$h1 192.0.2.16/28 via 192.0.2.2 76 ip route add vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 81 ip route del vrf v$h1 2001:db8:2::/64 via 2001:db8:1::2 82 ip route del vrf v$h1 192.0.2.16/28 via 192.0.2.2 95 ip route add vrf v$ol1 192.0.2.66/32 via 192.0.2.130 99 ip route add vrf v$ol1 192.0.2.82/32 via 192.0.2.146 105 ip route add vrf v$ol1 192.0.2.16/28 nhid 103 106 ip route add vrf v$ol1 2001:db8:2::/64 nhid 103 111 ip route del vrf v$ol1 2001:db8:2::/64 112 ip route del vrf v$ol1 192.0.2.16/28 [all …]
|
H A D | ip6gre_inner_v4_multipath.sh | 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 133 ip -6 route del vrf v$ul21 2001:db8:40::1/128 [all …]
|
H A D | ip6gre_inner_v6_multipath.sh | 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 133 ip -6 route del vrf v$ul21 2001:db8:40::1/128 [all …]
|
H A D | gre_custom_multipath_hash.sh | 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 119 ip route del vrf v$ol1 192.0.2.2/32 [all …]
|
H A D | ip6gre_custom_multipath_hash.sh | 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 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 …]
|
H A D | gre_multipath.sh | 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 129 ip route add vrf v$ol2 192.0.2.81/32 via 192.0.2.145 [all …]
|
H A D | router_bridge_1d.sh | 44 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 …]
|
H A D | router_bridge_vlan.sh | 50 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 …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | fib_offload.sh | 65 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 …]
|
H A 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/tools/testing/selftests/bpf/ |
H A D | test_lwt_ip_encap.sh | 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 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/tools/testing/selftests/net/ |
H A D | fib_tests.sh | 99 echo "Single path route test" 104 $IP route get fibmatch 198.51.100.2 &> /dev/null 106 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null 114 $IP route get fibmatch 198.51.100.2 &> /dev/null 115 log_test $? 2 "IPv4 fibmatch - no route" 116 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null 117 log_test $? 2 "IPv6 fibmatch - no route" 126 echo "Multipath route test" 136 $IP route add 203.0.113.0/24 \ 139 $IP -6 route ad [all...] |
/linux/drivers/thunderbolt/ |
H A D | ctl.h | 114 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/net/ax25/ |
H A 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/net/netfilter/ |
H A D | nft_flow_offload.c | 31 static void nft_default_forward_path(struct nf_flow_route *route, in nft_default_forward_path() argument 35 route->tuple[!dir].in.ifindex = dst_cache->dev->ifindex; in nft_default_forward_path() 36 route->tuple[dir].dst = dst_cache; in nft_default_forward_path() 37 route->tuple[dir].xmit_type = nft_xmit_type(dst_cache); in nft_default_forward_path() 49 static int nft_dev_fill_forward_path(const struct nf_flow_route *route, in nft_dev_fill_forward_path() argument 188 static void nft_dev_forward_path(struct nf_flow_route *route, in nft_dev_forward_path() argument 193 const struct dst_entry *dst = route->tuple[dir].dst; in nft_dev_forward_path() 199 if (nft_dev_fill_forward_path(route, dst, ct, dir, ha, &stack) >= 0) in nft_dev_forward_path() 205 route->tuple[!dir].in.ifindex = info.indev->ifindex; in nft_dev_forward_path() 207 route->tuple[!dir].in.encap[i].id = info.encap[i].id; in nft_dev_forward_path() [all …]
|
/linux/samples/bpf/ |
H A D | xdp_router_ipv4_user.c | 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() 155 &route.iface, &route.iface, 0) == 0); in read_route() 169 prefix_key->prefixlen = route.dst_len; in read_route() [all …]
|
/linux/drivers/media/platform/nxp/imx8-isi/ |
H A D | imx8-isi-crossbar.c | 101 struct v4l2_subdev_route *route; in __mxc_isi_crossbar_set_routing() local 110 for_each_active_route(&state->routing, route) { in __mxc_isi_crossbar_set_routing() 111 if (route->sink_pad == xbar->num_sinks - 1 && in __mxc_isi_crossbar_set_routing() 112 route->source_pad != xbar->num_sinks) { in __mxc_isi_crossbar_set_routing() 115 route->sink_pad, in __mxc_isi_crossbar_set_routing() 116 route->source_pad - xbar->num_sinks); in __mxc_isi_crossbar_set_routing() 132 struct v4l2_subdev_route *route; in mxc_isi_crossbar_xlate_streams() local 146 for_each_active_route(&state->routing, route) { in mxc_isi_crossbar_xlate_streams() 147 if (route->source_pad != source_pad || in mxc_isi_crossbar_xlate_streams() 148 !(source_streams & BIT(route->source_stream))) in mxc_isi_crossbar_xlate_streams() [all …]
|