/kernel/linux/linux-5.10/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 …]
|
D | spectrum1_mr_tcam.c | 91 struct mlxsw_sp1_mr_tcam_route *route, in mlxsw_sp1_mr_tcam_route_parman_item_add() argument 101 &route->parman_item); in mlxsw_sp1_mr_tcam_route_parman_item_add() 105 route->parman_prio = &tcam_region->parman_prios[prio]; in mlxsw_sp1_mr_tcam_route_parman_item_add() 111 struct mlxsw_sp1_mr_tcam_route *route, in mlxsw_sp1_mr_tcam_route_parman_item_remove() argument 118 route->parman_prio, &route->parman_item); in mlxsw_sp1_mr_tcam_route_parman_item_remove() 128 struct mlxsw_sp1_mr_tcam_route *route = route_priv; in mlxsw_sp1_mr_tcam_route_create() local 132 err = mlxsw_sp1_mr_tcam_route_parman_item_add(mr_tcam, route, in mlxsw_sp1_mr_tcam_route_create() 137 err = mlxsw_sp1_mr_tcam_route_replace(mlxsw_sp, &route->parman_item, in mlxsw_sp1_mr_tcam_route_create() 144 mlxsw_sp1_mr_tcam_route_parman_item_remove(mr_tcam, route, key); in mlxsw_sp1_mr_tcam_route_create() 153 struct mlxsw_sp1_mr_tcam_route *route = route_priv; in mlxsw_sp1_mr_tcam_route_destroy() local [all …]
|
/kernel/linux/linux-5.10/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 71 ip -n $ns route append 192.0.2.0/24 dev dummy2 tos 0 metric 1024 [all …]
|
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 …]
|
D | ipip_lib.sh | 149 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 …]
|
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 …]
|
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 …]
|
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 …]
|
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 …]
|
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 | 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 | router_multicast.sh | 44 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 …]
|
D | router_bridge.sh | 14 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2 15 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 20 ip -6 route del 2001:db8:2::/64 vrf v$h1 21 ip -4 route del 192.0.2.128/28 vrf v$h1 28 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129 29 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1 34 ip -6 route del 2001:db8:1::/64 vrf v$h2 35 ip -4 route del 192.0.2.0/28 vrf v$h2
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
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 …]
|
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 …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | test_lwt_ip_encap.sh | 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 159 ip -netns ${NS2} -6 route add table 1001 unreachable default metric 8192 200 ip -netns ${NS1} route add ${IPv4_2}/32 dev veth1 ${VRF} 201 ip -netns ${NS1} route add default dev veth1 via ${IPv4_2} ${VRF} # go top by default 202 ip -netns ${NS1} -6 route add ${IPv6_2}/128 dev veth1 ${VRF} 203 ip -netns ${NS1} -6 route add default dev veth1 via ${IPv6_2} ${VRF} # go top by default 205 ip -netns ${NS1} route add ${IPv4_6}/32 dev veth5 ${VRF} 206 ip -netns ${NS1} route add ${IPv4_7}/32 dev veth5 via ${IPv4_6} ${VRF} [all …]
|
/kernel/linux/linux-5.10/samples/bpf/ |
D | xdp_router_ipv4_user.c | 136 } route; in read_route() local 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() 193 route.iface = atoi(ifs); in read_route() 194 route.metric = atoi(metrics); in read_route() 195 route.iface_name = alloca(sizeof(char *) * IFNAMSIZ); in read_route() 196 route.iface_name = if_indextoname(route.iface, route.iface_name); in read_route() 197 route.mac = getmac(route.iface_name); in read_route() [all …]
|
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
D | test.c | 36 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 …]
|
D | ctl.h | 115 static inline struct tb_cfg_header tb_cfg_make_header(u64 route) in tb_cfg_make_header() argument 118 .route_hi = route >> 32, in tb_cfg_make_header() 119 .route_lo = route, in tb_cfg_make_header() 122 WARN_ON(tb_cfg_get_route(&header) != route); in tb_cfg_make_header() 126 int tb_cfg_ack_plug(struct tb_ctl *ctl, u64 route, u32 port, bool unplug); 127 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, 139 int tb_cfg_write(struct tb_ctl *ctl, const void *buffer, u64 route, u32 port, [all …]
|
D | icm.c | 91 int (*get_route)(struct tb *tb, u8 link, u8 depth, u64 *route); 171 static inline u8 phy_port_from_route(u64 route, u8 depth) in phy_port_from_route() argument 175 link = depth ? route >> ((depth - 1) * 8) : route; in phy_port_from_route() 189 static inline u64 get_parent_route(u64 route) in get_parent_route() argument 191 int depth = tb_route_length(route); in get_parent_route() 192 return depth ? route & ~(0xffULL << (depth - 1) * TB_ROUTE_SHIFT) : 0; in get_parent_route() 382 static int icm_fr_get_route(struct tb *tb, u8 link, u8 depth, u64 *route) in icm_fr_get_route() argument 426 *route = get_route(sw->route_hi, sw->route_lo); in icm_fr_get_route() 589 static struct tb_switch *alloc_switch(struct tb_switch *parent_sw, u64 route, in alloc_switch() argument 595 sw = tb_switch_alloc(tb, &parent_sw->dev, route); in alloc_switch() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | fib_tests.sh | 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 117 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null 137 $IP route add 203.0.113.0/24 \ 140 $IP -6 route add 2001:db8:3::/64 \ 146 $IP route get fibmatch 203.0.113.1 &> /dev/null 148 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null 156 $IP route get fibmatch 203.0.113.1 &> /dev/null 159 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null [all …]
|
/kernel/linux/linux-5.10/drivers/misc/vmw_vmci/ |
D | vmci_route.c | 23 enum vmci_route *route) in vmci_route() argument 28 *route = VMCI_ROUTE_NONE; in vmci_route() 80 *route = VMCI_ROUTE_AS_GUEST; in vmci_route() 104 *route = VMCI_ROUTE_AS_HOST; in vmci_route() 117 *route = VMCI_ROUTE_AS_GUEST; in vmci_route() 143 *route = VMCI_ROUTE_AS_HOST; in vmci_route() 180 *route = VMCI_ROUTE_AS_HOST; in vmci_route() 216 *route = VMCI_ROUTE_AS_GUEST; in vmci_route()
|
/kernel/linux/linux-5.10/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() 120 ax25_rt->callsign = route->dest_addr; in ax25_rt_add() 124 if (route->digi_count != 0) { in ax25_rt_add() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_usif.c | 48 u8 route; member 86 BUG_ON(rep->v0.route != NVDRM_NOTIFY_USIF); in usif_notify() 101 rep->route = ntfy->route; in usif_notify() 149 ntfy->route = req->v0.route; in usif_notify_new() 151 req->v0.route = NVDRM_NOTIFY_USIF; in usif_notify_new() 155 req->v0.route = ntfy->route; in usif_notify_new() 252 u8 route; member 279 object->route = args->v0.route; in usif_object_new() 281 args->v0.route = NVDRM_OBJECT_USIF; in usif_object_new() 285 args->v0.route = object->route; in usif_object_new() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | smi.c | 146 smp->route.dr.initial_path, in opa_smi_handle_dr_smp_send() 147 smp->route.dr.return_path, in opa_smi_handle_dr_smp_send() 149 smp->route.dr.dr_dlid == in opa_smi_handle_dr_smp_send() 151 smp->route.dr.dr_slid == in opa_smi_handle_dr_smp_send() 261 smp->route.dr.initial_path, in opa_smi_handle_dr_smp_recv() 262 smp->route.dr.return_path, in opa_smi_handle_dr_smp_recv() 264 smp->route.dr.dr_dlid == in opa_smi_handle_dr_smp_recv() 266 smp->route.dr.dr_slid == in opa_smi_handle_dr_smp_recv() 314 smp->route.dr.dr_dlid == in opa_smi_check_forward_dr_smp() 316 smp->route.dr.dr_slid == in opa_smi_check_forward_dr_smp() [all …]
|