Home
last modified time | relevance | path

Searched refs:next_hop (Results 1 – 25 of 49) sorted by relevance

12

/f-stack/dpdk/examples/l3fwd/
H A Dl3fwd_em_sequential.h27 uint8_t next_hop; in em_get_dst_port() local
42 next_hop = em_get_ipv4_dst_port(ipv4_hdr, portid, in em_get_dst_port()
45 if (next_hop >= RTE_MAX_ETHPORTS || in em_get_dst_port()
46 (enabled_port_mask & 1 << next_hop) == 0) in em_get_dst_port()
47 next_hop = portid; in em_get_dst_port()
49 return next_hop; in em_get_dst_port()
57 next_hop = em_get_ipv6_dst_port(ipv6_hdr, portid, in em_get_dst_port()
60 if (next_hop >= RTE_MAX_ETHPORTS || in em_get_dst_port()
61 (enabled_port_mask & 1 << next_hop) == 0) in em_get_dst_port()
62 next_hop = portid; in em_get_dst_port()
[all …]
H A Dl3fwd_em_hlm.h136 uint16_t next_hop; in em_get_dst_port() local
151 next_hop = em_get_ipv4_dst_port(ipv4_hdr, portid, in em_get_dst_port()
154 if (next_hop >= RTE_MAX_ETHPORTS || in em_get_dst_port()
155 (enabled_port_mask & 1 << next_hop) == 0) in em_get_dst_port()
156 next_hop = portid; in em_get_dst_port()
158 return next_hop; in em_get_dst_port()
166 next_hop = em_get_ipv6_dst_port(ipv6_hdr, portid, in em_get_dst_port()
169 if (next_hop >= RTE_MAX_ETHPORTS || in em_get_dst_port()
170 (enabled_port_mask & 1 << next_hop) == 0) in em_get_dst_port()
171 next_hop = portid; in em_get_dst_port()
[all …]
H A Dl3fwd_lpm.c83 uint32_t next_hop; in lpm_get_ipv4_dst_port() local
85 if (rte_lpm_lookup(ipv4_l3fwd_lookup_struct, dst_ip, &next_hop) == 0) in lpm_get_ipv4_dst_port()
86 return next_hop; in lpm_get_ipv4_dst_port()
97 uint32_t next_hop; in lpm_get_ipv6_dst_port() local
99 if (rte_lpm6_lookup(ipv6_l3fwd_lookup_struct, dst_ip, &next_hop) == 0) in lpm_get_ipv6_dst_port()
100 return next_hop; in lpm_get_ipv6_dst_port()
141 uint32_t next_hop; in lpm_get_dst_port_with_ipv4() local
147 dst_ipv4, &next_hop) == 0) in lpm_get_dst_port_with_ipv4()
148 ? next_hop : portid); in lpm_get_dst_port_with_ipv4()
156 ipv6_hdr->dst_addr, &next_hop) == 0) in lpm_get_dst_port_with_ipv4()
[all …]
/f-stack/freebsd/contrib/dpdk_rte_lpm/
H A Drte_lpm6.c229 uint64_t next_hop;
544 .next_hop = next_hop, in expand_rule()
691 .next_hop = next_hop, in add_step()
774 .next_hop = tbl[entry_ind].next_hop, in add_step()
1034 rule->next_hop = next_hop; in fill_rule6()
1174 uint32_t next_hop;
1198 rule->next_hop = next_hop;
1290 .next_hop = lsp_rule->next_hop, in remove_tbl()
1300 .next_hop = 0, in remove_tbl()
1393 .next_hop = lsp_rule->next_hop, in rte_lpm6_delete()
[all …]
H A Drte_lpm.c314 == next_hop)
316 lpm->rules_tbl[rule_index].next_hop = next_hop;
357 lpm->rules_tbl[rule_index].next_hop = next_hop;
485 .next_hop = next_hop, in add_depth_small()
517 .next_hop = next_hop, in add_depth_small()
569 .next_hop = next_hop, in add_depth_big()
614 .next_hop = lpm->tbl24[tbl24_index].next_hop, in add_depth_big()
628 .next_hop = next_hop, in add_depth_big()
668 .next_hop = next_hop, in add_depth_big()
760 *next_hop = lpm->rules_tbl[rule_index].next_hop;
[all …]
H A Drte_lpm.h77 uint32_t next_hop :24; member
98 uint32_t next_hop :24;
114 uint32_t next_hop; /**< Rule next hop. */ member
208 rte_lpm_add(struct rte_lpm *lpm, uint32_t ip, uint8_t depth, uint32_t next_hop);
227 uint32_t *next_hop);
271 rte_lpm_lookup(struct rte_lpm *lpm, uint32_t ip, uint32_t *next_hop) in rte_lpm_lookup() argument
278 RTE_LPM_RETURN_IF_TRUE(((lpm == NULL) || (next_hop == NULL)), -EINVAL); in rte_lpm_lookup()
300 *next_hop = ((uint32_t)tbl_entry & 0x00FFFFFF); in rte_lpm_lookup()
H A Drte_lpm6.h41 uint8_t depth, uint32_t next_hop);
105 uint32_t next_hop, int is_new_rule);
124 uint32_t *next_hop);
182 rte_lpm6_lookup(const struct rte_lpm6 *lpm, const uint8_t *ip, uint32_t *next_hop);
/f-stack/dpdk/lib/librte_lpm/
H A Drte_lpm6.c233 uint64_t next_hop; in rebuild_lpm() local
538 .next_hop = next_hop, in expand_rule()
685 .next_hop = next_hop, in add_step()
768 .next_hop = tbl[entry_ind].next_hop, in add_step()
947 uint32_t *next_hop) in rte_lpm6_lookup() argument
1151 uint32_t next_hop; in rule_find_less_specific() local
1175 rule->next_hop = next_hop; in rule_find_less_specific()
1266 .next_hop = lsp_rule->next_hop, in remove_tbl()
1276 .next_hop = 0, in remove_tbl()
1365 .next_hop = lsp_rule->next_hop, in rte_lpm6_delete()
[all …]
H A Drte_lpm.c395 i_lpm->rules_tbl[rule_index].next_hop = next_hop; in rule_add()
436 i_lpm->rules_tbl[rule_index].next_hop = next_hop; in rule_add()
600 .next_hop = next_hop, in add_depth_small()
632 .next_hop = next_hop, in add_depth_small()
684 .next_hop = next_hop, in add_depth_big()
729 .next_hop = i_lpm->lpm.tbl24[tbl24_index].next_hop, in add_depth_big()
743 .next_hop = next_hop, in add_depth_big()
783 .next_hop = next_hop, in add_depth_big()
876 *next_hop = i_lpm->rules_tbl[rule_index].next_hop; in rte_lpm_is_rule_present()
959 .next_hop = i_lpm->rules_tbl[sub_rule_index].next_hop, in delete_depth_small()
[all …]
H A Drte_lpm.h87 uint32_t next_hop :24; member
108 uint32_t next_hop :24; member
228 rte_lpm_add(struct rte_lpm *lpm, uint32_t ip, uint8_t depth, uint32_t next_hop);
247 uint32_t *next_hop);
286 rte_lpm_lookup(struct rte_lpm *lpm, uint32_t ip, uint32_t *next_hop) in rte_lpm_lookup() argument
293 RTE_LPM_RETURN_IF_TRUE(((lpm == NULL) || (next_hop == NULL)), -EINVAL); in rte_lpm_lookup()
315 *next_hop = ((uint32_t)tbl_entry & 0x00FFFFFF); in rte_lpm_lookup()
H A Drte_lpm6.h98 uint32_t next_hop);
117 uint32_t *next_hop);
174 rte_lpm6_lookup(const struct rte_lpm6 *lpm, const uint8_t *ip, uint32_t *next_hop);
/f-stack/dpdk/lib/librte_node/
H A Dip4_lookup.c79 uint32_t next_hop; in ip4_lookup_node_process_scalar() local
92 &next_hop); in ip4_lookup_node_process_scalar()
93 next_hop = (rc == 0) ? next_hop : drop_nh; in ip4_lookup_node_process_scalar()
95 node_mbuf_priv1(mbuf, dyn)->nh = (uint16_t)next_hop; in ip4_lookup_node_process_scalar()
96 next_hop = next_hop >> 16; in ip4_lookup_node_process_scalar()
97 next = (uint16_t)next_hop; in ip4_lookup_node_process_scalar()
127 rte_node_ip4_route_add(uint32_t ip, uint8_t depth, uint16_t next_hop, in rte_node_ip4_route_add() argument
139 val = ((next_node << 16) | next_hop) & ((1ull << 24) - 1); in rte_node_ip4_route_add()
H A Dip4_lookup_neon.h186 uint32_t next_hop; in ip4_lookup_node_process_vec() local
202 &next_hop); in ip4_lookup_node_process_vec()
203 next_hop = (rc == 0) ? next_hop : drop_nh; in ip4_lookup_node_process_vec()
205 node_mbuf_priv1(mbuf0, dyn)->nh = (uint16_t)next_hop; in ip4_lookup_node_process_vec()
206 next_hop = next_hop >> 16; in ip4_lookup_node_process_vec()
207 next0 = (uint16_t)next_hop; in ip4_lookup_node_process_vec()
H A Dip4_lookup_sse.h192 uint32_t next_hop; in ip4_lookup_node_process_vec() local
207 &next_hop); in ip4_lookup_node_process_vec()
208 next_hop = (rc == 0) ? next_hop : drop_nh; in ip4_lookup_node_process_vec()
210 node_mbuf_priv1(mbuf0, dyn)->nh = next_hop & 0xFFFF; in ip4_lookup_node_process_vec()
211 next0 = (next_hop >> 16); in ip4_lookup_node_process_vec()
H A Drte_node_ip4_api.h53 int rte_node_ip4_route_add(uint32_t ip, uint8_t depth, uint16_t next_hop,
72 int rte_node_ip4_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data,
/f-stack/dpdk/app/test/
H A Dtest_lpm6_data.h13 uint8_t next_hop; member
18 uint8_t next_hop; member
1099 static int get_next_hop(uint8_t *ip, uint8_t *next_hop, in get_next_hop() argument
1110 *next_hop = rule[i].next_hop; in get_next_hop()
1152 &(large_ips_table[k].next_hop), in generate_large_ips_table()
H A Dtest_lpm.c1216 #define group_idx next_hop in test18()
1219 uint32_t ip, next_hop; in test18() local
1232 next_hop = 1; in test18()
1233 rte_lpm_add(lpm, ip, depth, next_hop); in test18()
1239 next_hop = 2; in test18()
1248 next_hop = 3; in test18()
1255 next_hop = 4; in test18()
1264 next_hop = 5; in test18()
1387 next_hop = 1; in test20()
1484 uint32_t i, next_hop; in test21() local
[all …]
/f-stack/dpdk/lib/librte_fib/
H A Dtrie.c323 uint64_t val = next_hop << 1; in write_edge()
364 uint64_t next_hop) in install_to_dp() argument
415 next_hop, llen, LEDGE, ent); in install_to_dp()
427 next_hop, rlen, REDGE, ent); in install_to_dp()
462 uint8_t depth, uint64_t next_hop) in modify_dp() argument
487 next_hop); in modify_dp()
498 next_hop); in modify_dp()
552 if (node_nh == next_hop) in trie_modify()
556 rte_rib6_set_nh(node, next_hop); in trie_modify()
567 rte_rib6_set_nh(node, next_hop); in trie_modify()
[all …]
H A Ddir24_8.c266 uint64_t next_hop) in install_to_fib() argument
314 next_hop << 1, dp->nh_sz, len); in install_to_fib()
367 uint8_t depth, uint64_t next_hop) in modify_fib() argument
390 next_hop); in modify_fib()
400 next_hop); in modify_fib()
411 uint64_t next_hop, int op) in dir24_8_modify() argument
428 if (next_hop > get_max_nh(dp->nh_sz)) in dir24_8_modify()
438 if (node_nh == next_hop) in dir24_8_modify()
442 rte_rib_set_nh(node, next_hop); in dir24_8_modify()
456 rte_rib_set_nh(node, next_hop); in dir24_8_modify()
[all …]
H A Drte_fib.h42 uint8_t depth, uint64_t next_hop, int op);
152 rte_fib_add(struct rte_fib *fib, uint32_t ip, uint8_t depth, uint64_t next_hop);
H A Drte_fib6.h44 uint64_t next_hop, int op);
144 uint8_t depth, uint64_t next_hop);
H A Drte_fib.c69 uint64_t next_hop, int op) in dummy_modify() argument
83 return rte_rib_set_nh(node, next_hop); in dummy_modify()
121 rte_fib_add(struct rte_fib *fib, uint32_t ip, uint8_t depth, uint64_t next_hop) in rte_fib_add() argument
126 return fib->modify(fib, ip, depth, next_hop, RTE_FIB_ADD); in rte_fib_add()
H A Drte_fib6.c69 uint8_t depth, uint64_t next_hop, int op) in dummy_modify() argument
83 return rte_rib6_set_nh(node, next_hop); in dummy_modify()
121 uint8_t depth, uint64_t next_hop) in rte_fib6_add() argument
126 return fib->modify(fib, ip, depth, next_hop, RTE_FIB6_ADD); in rte_fib6_add()
/f-stack/freebsd/netgraph/netflow/
H A Dnetflow_v9.h53 uint32_t next_hop; /* Next hop IPv4 address (IPV4_NEXT_HOP) */ member
78 struct in6_addr next_hop; /* Next hop IPv6 address (IPV6_NEXT_HOP) */ member
H A Dnetflow.h93 uint32_t next_hop; /* Next hop IP address */ member
115 uint32_t next_hop; /* Next hop IP address */ member

12