/Linux-v4.19/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 …]
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | fib_tests.sh | 97 $IP route get fibmatch 198.51.100.2 &> /dev/null 99 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null 107 $IP route get fibmatch 198.51.100.2 &> /dev/null 109 $IP -6 route get fibmatch 2001:db8:1::2 &> /dev/null 129 $IP route add 203.0.113.0/24 \ 132 $IP -6 route add 2001:db8:3::/64 \ 138 $IP route get fibmatch 203.0.113.1 &> /dev/null 140 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null 148 $IP route get fibmatch 203.0.113.1 &> /dev/null 151 $IP -6 route get fibmatch 2001:db8:3::1 &> /dev/null [all …]
|
/Linux-v4.19/samples/bpf/ |
D | xdp_router_ipv4_user.c | 120 } route; in read_route() local 141 memset(&route, 0, sizeof(route)); in read_route() 174 route.dst = atoi(dsts); in read_route() 175 route.dst_len = atoi(dsts_len); in read_route() 176 route.gw = atoi(gws); in read_route() 177 route.iface = atoi(ifs); in read_route() 178 route.metric = atoi(metrics); in read_route() 179 route.iface_name = alloca(sizeof(char *) * IFNAMSIZ); in read_route() 180 route.iface_name = if_indextoname(route.iface, route.iface_name); in read_route() 181 route.mac = getmac(route.iface_name); in read_route() [all …]
|
/Linux-v4.19/tools/testing/selftests/net/forwarding/ |
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 \ 108 ip route del vrf v$ol1 192.0.2.16/28 110 ip route del vrf v$ol1 192.0.2.82/32 via 192.0.2.146 114 ip route del vrf v$ol1 192.0.2.66/32 via 192.0.2.130 133 ip route add vrf v$ol2 192.0.2.65/32 via 192.0.2.129 137 ip route add vrf v$ol2 192.0.2.81/32 via 192.0.2.145 [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_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
|
D | router_broadcast.sh | 18 ip route add 198.51.100.0/24 vrf vrf-h1 nexthop via 192.0.2.1 19 ip route add 198.51.200.0/24 vrf vrf-h1 nexthop via 192.0.2.1 24 ip route del 198.51.200.0/24 vrf vrf-h1 25 ip route del 198.51.100.0/24 vrf vrf-h1 43 ip route add 192.0.2.0/24 vrf vrf-h2 nexthop via 198.51.100.1 44 ip route add 198.51.200.0/24 vrf vrf-h2 nexthop via 198.51.100.1 49 ip route del 198.51.200.0/24 vrf vrf-h2 50 ip route del 192.0.2.0/24 vrf vrf-h2 68 ip route add 192.0.2.0/24 vrf vrf-h3 nexthop via 198.51.200.1 69 ip route add 198.51.100.0/24 vrf vrf-h3 nexthop via 198.51.200.1 [all …]
|
D | router_bridge_vlan.sh | 16 ip -4 route add 192.0.2.128/28 vrf v$h1 nexthop via 192.0.2.2 17 ip -6 route add 2001:db8:2::/64 vrf v$h1 nexthop via 2001:db8:1::2 22 ip -6 route del 2001:db8:2::/64 vrf v$h1 23 ip -4 route del 192.0.2.128/28 vrf v$h1 31 ip -4 route add 192.0.2.0/28 vrf v$h2 nexthop via 192.0.2.129 32 ip -6 route add 2001:db8:1::/64 vrf v$h2 nexthop via 2001:db8:2::1 37 ip -6 route del 2001:db8:1::/64 vrf v$h2 38 ip -4 route del 192.0.2.0/28 vrf v$h2
|
D | router.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
|
D | mirror_gre_lag_lacp.sh | 83 ip -4 route add 192.0.2.16/28 vrf vrf-h1 nexthop via 192.0.2.2 88 ip -4 route del 192.0.2.16/28 vrf vrf-h1 95 ip -4 route add 192.0.2.0/28 vrf vrf-h2 nexthop via 192.0.2.17 100 ip -4 route del 192.0.2.0/28 vrf vrf-h2 108 ip -4 route add vrf vrf-h3 192.0.2.129/32 dev lag2 113 ip -4 route del vrf vrf-h3 192.0.2.129/32 dev lag2 153 ip -4 route add 192.0.2.130/32 dev lag1 158 ip -4 route del 192.0.2.130/32 dev lag1
|
/Linux-v4.19/drivers/thunderbolt/ |
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_error(struct tb_ctl *ctl, u64 route, u32 port, 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 | 82 int (*get_route)(struct tb *tb, u8 link, u8 depth, u64 *route); 149 static inline u8 phy_port_from_route(u64 route, u8 depth) in phy_port_from_route() argument 153 link = depth ? route >> ((depth - 1) * 8) : route; in phy_port_from_route() 167 static inline u64 get_parent_route(u64 route) in get_parent_route() argument 169 int depth = tb_route_length(route); in get_parent_route() 170 return depth ? route & ~(0xffULL << (depth - 1) * TB_ROUTE_SHIFT) : 0; in get_parent_route() 256 static int icm_fr_get_route(struct tb *tb, u8 link, u8 depth, u64 *route) in icm_fr_get_route() argument 300 *route = get_route(sw->route_hi, sw->route_lo); in icm_fr_get_route() 463 static void add_switch(struct tb_switch *parent_sw, u64 route, in add_switch() argument 474 sw = tb_switch_alloc(parent_sw->tb, &parent_sw->dev, route); in add_switch() [all …]
|
D | switch.c | 629 int tb_switch_reset(struct tb *tb, u64 route) in tb_switch_reset() argument 633 header.route_hi = route >> 32, in tb_switch_reset() 634 header.route_lo = route, in tb_switch_reset() 637 tb_info(tb, "resetting switch at %llx\n", route); in tb_switch_reset() 638 res.err = tb_cfg_write(tb->ctl, ((u32 *) &header) + 2, route, in tb_switch_reset() 642 res = tb_cfg_reset(tb->ctl, route, TB_CFG_DEFAULT_TIMEOUT); in tb_switch_reset() 648 struct tb_switch *get_switch_at_route(struct tb_switch *sw, u64 route) in get_switch_at_route() argument 650 u8 next_port = route; /* in get_switch_at_route() 654 if (route == 0) in get_switch_at_route() 663 route >> TB_ROUTE_SHIFT); in get_switch_at_route() [all …]
|
D | xdomain.c | 189 static inline void tb_xdp_fill_header(struct tb_xdp_header *hdr, u64 route, in tb_xdp_fill_header() argument 197 hdr->xd_hdr.route_hi = upper_32_bits(route); in tb_xdp_fill_header() 198 hdr->xd_hdr.route_lo = lower_32_bits(route); in tb_xdp_fill_header() 228 static int tb_xdp_error_response(struct tb_ctl *ctl, u64 route, u8 sequence, in tb_xdp_error_response() argument 234 tb_xdp_fill_header(&res.hdr, route, sequence, ERROR_RESPONSE, in tb_xdp_error_response() 242 static int tb_xdp_properties_request(struct tb_ctl *ctl, u64 route, in tb_xdp_properties_request() argument 259 tb_xdp_fill_header(&req.hdr, route, retry % 4, PROPERTIES_REQUEST, in tb_xdp_properties_request() 335 u64 route, u8 sequence, const uuid_t *src_uuid, in tb_xdp_properties_response() argument 349 tb_xdp_error_response(ctl, route, sequence, in tb_xdp_properties_response() 371 tb_xdp_fill_header(&res->hdr, route, sequence, PROPERTIES_RESPONSE, in tb_xdp_properties_response() [all …]
|
D | ctl.c | 169 enum tb_cfg_pkg_type type, u64 route) in check_header() argument 189 if (WARN(route != tb_cfg_get_route(header), in check_header() 191 route, tb_cfg_get_route(header))) in check_header() 240 enum tb_cfg_pkg_type type, u64 route) in parse_header() argument 250 res.err = check_header(pkg, len, type, route); in parse_header() 715 int tb_cfg_error(struct tb_ctl *ctl, u64 route, u32 port, in tb_cfg_error() argument 719 .header = tb_cfg_make_header(route), in tb_cfg_error() 723 tb_ctl_info(ctl, "resetting error on %llx:%x.\n", route, port); in tb_cfg_error() 730 u64 route = tb_cfg_get_route(pkg->buffer) & ~BIT_ULL(63); in tb_cfg_match() local 737 if (route != tb_cfg_get_route(req->request)) in tb_cfg_match() [all …]
|
/Linux-v4.19/net/ax25/ |
D | ax25_route.c | 75 static int __must_check ax25_rt_add(struct ax25_routes_struct *route) in ax25_rt_add() argument 81 if ((ax25_dev = ax25_addr_ax25dev(&route->port_addr)) == NULL) in ax25_rt_add() 83 if (route->digi_count > AX25_MAX_DIGIS) in ax25_rt_add() 90 if (ax25cmp(&ax25_rt->callsign, &route->dest_addr) == 0 && in ax25_rt_add() 94 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() 118 ax25_rt->callsign = route->dest_addr; in ax25_rt_add() 122 if (route->digi_count != 0) { in ax25_rt_add() [all …]
|
D | ax25_ip.c | 106 ax25_route *route; in ax25_ip_xmit() local 117 route = ax25_get_route(dst, NULL); in ax25_ip_xmit() 118 if (route) { in ax25_ip_xmit() 119 digipeat = route->digipeat; in ax25_ip_xmit() 120 dev = route->dev; in ax25_ip_xmit() 121 ip_mode = route->ip_mode; in ax25_ip_xmit() 198 if ((ourskb = ax25_rt_build_path(skb, src, dst, route->digipeat)) == NULL) { in ax25_ip_xmit() 209 if (route) in ax25_ip_xmit() 210 ax25_put_route(route); in ax25_ip_xmit()
|
/Linux-v4.19/drivers/misc/vmw_vmci/ |
D | vmci_route.c | 31 enum vmci_route *route) in vmci_route() argument 36 *route = VMCI_ROUTE_NONE; in vmci_route() 88 *route = VMCI_ROUTE_AS_GUEST; in vmci_route() 112 *route = VMCI_ROUTE_AS_HOST; in vmci_route() 125 *route = VMCI_ROUTE_AS_GUEST; in vmci_route() 151 *route = VMCI_ROUTE_AS_HOST; in vmci_route() 188 *route = VMCI_ROUTE_AS_HOST; in vmci_route() 224 *route = VMCI_ROUTE_AS_GUEST; in vmci_route()
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/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 …]
|
D | cma.c | 494 id_priv->id.route.addr.dev_addr.transport = in _cma_attach_to_dev() 534 return (struct sockaddr *) &id_priv->id.route.addr.src_addr; in cma_src_addr() 539 return (struct sockaddr *) &id_priv->id.route.addr.dst_addr; in cma_dst_addr() 544 return id_priv->id.route.addr.src_addr.ss_family; in cma_family() 569 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); in cma_set_qkey() 609 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; in cma_validate_port() 638 WARN_ON(id_priv->id.route.addr.dev_addr.sgid_attr); in cma_bind_sgid_attr() 639 id_priv->id.route.addr.dev_addr.sgid_attr = sgid_attr; in cma_bind_sgid_attr() 645 struct rdma_dev_addr *dev_addr = &id_priv->id.route.addr.dev_addr; in cma_acquire_dev() 658 rdma_ip2gid((struct sockaddr *)&id_priv->id.route.addr.src_addr, in cma_acquire_dev() [all …]
|
/Linux-v4.19/include/rdma/ |
D | opa_smi.h | 74 } route; member 130 return smp->route.dr.data; in opa_get_smp_data() 132 return smp->route.lid.data; in opa_get_smp_data() 138 return sizeof(smp->route.dr.data); in opa_get_smp_data_size() 140 return sizeof(smp->route.lid.data); in opa_get_smp_data_size() 146 return sizeof(*smp) - sizeof(smp->route.dr.data); in opa_get_smp_header_size() 148 return sizeof(*smp) - sizeof(smp->route.lid.data); in opa_get_smp_header_size()
|
/Linux-v4.19/tools/testing/selftests/bpf/ |
D | test_lwt_seg6local.sh | 95 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-v4.19/net/netfilter/ |
D | nft_flow_offload.c | 22 struct nf_flow_route *route, in nft_flow_route() argument 43 route->tuple[dir].dst = this_dst; in nft_flow_route() 44 route->tuple[dir].ifindex = nft_in(pkt)->ifindex; in nft_flow_route() 45 route->tuple[!dir].dst = other_dst; in nft_flow_route() 46 route->tuple[!dir].ifindex = nft_out(pkt)->ifindex; in nft_flow_route() 70 struct nf_flow_route route; in nft_flow_offload_eval() local 102 if (nft_flow_route(pkt, ct, &route, dir) < 0) in nft_flow_offload_eval() 105 flow = flow_offload_alloc(ct, &route); in nft_flow_offload_eval() 118 dst_release(route.tuple[!dir].dst); in nft_flow_offload_eval()
|