| /dpdk/lib/lpm/ |
| H A D | rte_lpm6.c | 226 uint64_t next_hop; in rebuild_lpm() local 533 .next_hop = next_hop, in expand_rule() 680 .next_hop = next_hop, in add_step() 763 .next_hop = tbl[entry_ind].next_hop, in add_step() 942 uint32_t *next_hop) in rte_lpm6_lookup() argument 1146 uint32_t next_hop; in rule_find_less_specific() local 1170 rule->next_hop = next_hop; in rule_find_less_specific() 1261 .next_hop = lsp_rule->next_hop, in remove_tbl() 1271 .next_hop = 0, in remove_tbl() 1360 .next_hop = lsp_rule->next_hop, in rte_lpm6_delete() [all …]
|
| H A D | rte_lpm.c | 388 i_lpm->rules_tbl[rule_index].next_hop = next_hop; in rule_add() 429 i_lpm->rules_tbl[rule_index].next_hop = next_hop; in rule_add() 593 .next_hop = next_hop, in add_depth_small() 625 .next_hop = next_hop, in add_depth_small() 677 .next_hop = next_hop, in add_depth_big() 722 .next_hop = i_lpm->lpm.tbl24[tbl24_index].next_hop, in add_depth_big() 736 .next_hop = next_hop, in add_depth_big() 776 .next_hop = next_hop, in add_depth_big() 869 *next_hop = i_lpm->rules_tbl[rule_index].next_hop; in rte_lpm_is_rule_present() 952 .next_hop = i_lpm->rules_tbl[sub_rule_index].next_hop, in delete_depth_small() [all …]
|
| H A D | rte_lpm.h | 83 uint32_t next_hop :24; member 104 uint32_t next_hop :24; member 224 rte_lpm_add(struct rte_lpm *lpm, uint32_t ip, uint8_t depth, uint32_t next_hop); 243 uint32_t *next_hop); 282 rte_lpm_lookup(struct rte_lpm *lpm, uint32_t ip, uint32_t *next_hop) in rte_lpm_lookup() argument 289 RTE_LPM_RETURN_IF_TRUE(((lpm == NULL) || (next_hop == NULL)), -EINVAL); in rte_lpm_lookup() 311 *next_hop = ((uint32_t)tbl_entry & 0x00FFFFFF); in rte_lpm_lookup()
|
| H A D | rte_lpm6.h | 97 uint32_t next_hop); 116 uint32_t *next_hop); 173 rte_lpm6_lookup(const struct rte_lpm6 *lpm, const uint8_t *ip, uint32_t *next_hop);
|
| /dpdk/examples/l3fwd/ |
| H A D | l3fwd_em_sequential.h | 27 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 D | l3fwd_em_hlm.h | 136 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 D | l3fwd_lpm.c | 51 uint32_t next_hop; in lpm_get_ipv4_dst_port() local 53 if (rte_lpm_lookup(ipv4_l3fwd_lookup_struct, dst_ip, &next_hop) == 0) in lpm_get_ipv4_dst_port() 54 return next_hop; in lpm_get_ipv4_dst_port() 66 uint32_t next_hop; in lpm_get_ipv6_dst_port() local 68 if (rte_lpm6_lookup(ipv6_l3fwd_lookup_struct, dst_ip, &next_hop) == 0) in lpm_get_ipv6_dst_port() 69 return next_hop; in lpm_get_ipv6_dst_port() 110 uint32_t next_hop; in lpm_get_dst_port_with_ipv4() local 116 dst_ipv4, &next_hop) == 0) in lpm_get_dst_port_with_ipv4() 117 ? next_hop : portid); in lpm_get_dst_port_with_ipv4() 125 ipv6_hdr->dst_addr, &next_hop) == 0) in lpm_get_dst_port_with_ipv4() [all …]
|
| /dpdk/lib/node/ |
| H A D | ip4_lookup.c | 74 uint32_t next_hop; in ip4_lookup_node_process_scalar() local 87 &next_hop); in ip4_lookup_node_process_scalar() 88 next_hop = (rc == 0) ? next_hop : drop_nh; in ip4_lookup_node_process_scalar() 90 node_mbuf_priv1(mbuf, dyn)->nh = (uint16_t)next_hop; in ip4_lookup_node_process_scalar() 91 next_hop = next_hop >> 16; in ip4_lookup_node_process_scalar() 92 next = (uint16_t)next_hop; in ip4_lookup_node_process_scalar() 122 rte_node_ip4_route_add(uint32_t ip, uint8_t depth, uint16_t next_hop, in rte_node_ip4_route_add() argument 134 val = ((next_node << 16) | next_hop) & ((1ull << 24) - 1); in rte_node_ip4_route_add()
|
| H A D | ip4_lookup_neon.h | 186 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 D | ip4_lookup_sse.h | 192 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 D | rte_node_ip4_api.h | 54 int rte_node_ip4_route_add(uint32_t ip, uint8_t depth, uint16_t next_hop, 73 int rte_node_ip4_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data,
|
| H A D | ip4_rewrite.c | 296 rte_node_ip4_rewrite_add(uint16_t next_hop, uint8_t *rewrite_data, in rte_node_ip4_rewrite_add() argument 301 if (next_hop >= RTE_GRAPH_IP4_REWRITE_MAX_NH) in rte_node_ip4_rewrite_add() 320 nh = &ip4_rewrite_nm->nh[next_hop]; in rte_node_ip4_rewrite_add()
|
| /dpdk/app/test/ |
| H A D | test_lpm6_data.h | 13 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 D | test_lpm.c | 1236 #define group_idx next_hop in test18() 1239 uint32_t ip, next_hop; in test18() local 1252 next_hop = 1; in test18() 1253 rte_lpm_add(lpm, ip, depth, next_hop); in test18() 1259 next_hop = 2; in test18() 1268 next_hop = 3; in test18() 1275 next_hop = 4; in test18() 1284 next_hop = 5; in test18() 1407 next_hop = 1; in test20() 1504 uint32_t i, next_hop; in test21() local [all …]
|
| H A D | test_lpm6.c | 264 uint8_t depth = 24, next_hop = 100; in test4() local 272 status = rte_lpm6_add(NULL, ip, depth, next_hop); in test4() 280 status = rte_lpm6_add(lpm, ip, 0, next_hop); in test4() 284 status = rte_lpm6_add(lpm, ip, (MAX_DEPTH + 1), next_hop); in test4() 1594 next_hop_add = large_route_table[i].next_hop; in test25() 1604 next_hop_expected = large_ips_table[i].next_hop; in test25()
|
| /dpdk/lib/fib/ |
| H A D | trie.c | 318 uint64_t val = next_hop << 1; in write_edge() 359 uint64_t next_hop) in install_to_dp() argument 410 next_hop, llen, LEDGE, ent); in install_to_dp() 422 next_hop, rlen, REDGE, ent); in install_to_dp() 457 uint8_t depth, uint64_t next_hop) in modify_dp() argument 482 next_hop); in modify_dp() 493 next_hop); in modify_dp() 547 if (node_nh == next_hop) in trie_modify() 551 rte_rib6_set_nh(node, next_hop); in trie_modify() 562 rte_rib6_set_nh(node, next_hop); in trie_modify() [all …]
|
| H A D | dir24_8.c | 262 uint64_t next_hop) in install_to_fib() argument 310 next_hop << 1, dp->nh_sz, len); in install_to_fib() 363 uint8_t depth, uint64_t next_hop) in modify_fib() argument 386 next_hop); in modify_fib() 396 next_hop); in modify_fib() 407 uint64_t next_hop, int op) in dir24_8_modify() argument 424 if (next_hop > get_max_nh(dp->nh_sz)) in dir24_8_modify() 434 if (node_nh == next_hop) in dir24_8_modify() 438 rte_rib_set_nh(node, next_hop); in dir24_8_modify() 452 rte_rib_set_nh(node, next_hop); in dir24_8_modify() [all …]
|
| H A D | rte_fib.h | 39 uint8_t depth, uint64_t next_hop, int op); 147 rte_fib_add(struct rte_fib *fib, uint32_t ip, uint8_t depth, uint64_t next_hop);
|
| H A D | rte_fib6.h | 41 uint64_t next_hop, int op); 139 uint8_t depth, uint64_t next_hop);
|
| H A D | rte_fib.c | 67 uint64_t next_hop, int op) in dummy_modify() argument 81 return rte_rib_set_nh(node, next_hop); in dummy_modify() 119 rte_fib_add(struct rte_fib *fib, uint32_t ip, uint8_t depth, uint64_t next_hop) in rte_fib_add() argument 124 return fib->modify(fib, ip, depth, next_hop, RTE_FIB_ADD); in rte_fib_add()
|
| H A D | rte_fib6.c | 67 uint8_t depth, uint64_t next_hop, int op) in dummy_modify() argument 81 return rte_rib6_set_nh(node, next_hop); in dummy_modify() 119 uint8_t depth, uint64_t next_hop) in rte_fib6_add() argument 124 return fib->modify(fib, ip, depth, next_hop, RTE_FIB6_ADD); in rte_fib6_add()
|
| H A D | trie.h | 140 uint8_t depth, uint64_t next_hop, int op);
|
| H A D | dir24_8.h | 249 uint64_t next_hop, int op);
|
| /dpdk/examples/ip_fragmentation/ |
| H A D | main.c | 247 uint32_t i, len, next_hop; in l3fwd_simple_forward() local 278 if (rte_lpm_lookup(rxq->lpm, ip_dst, &next_hop) == 0 && in l3fwd_simple_forward() 279 (enabled_port_mask & 1 << next_hop) != 0) { in l3fwd_simple_forward() 280 port_out = next_hop; in l3fwd_simple_forward() 316 &next_hop) == 0 && in l3fwd_simple_forward() 317 (enabled_port_mask & 1 << next_hop) != 0) { in l3fwd_simple_forward() 318 port_out = next_hop; in l3fwd_simple_forward()
|
| /dpdk/examples/ip_reassembly/ |
| H A D | main.c | 319 uint32_t next_hop; in reassemble() local 366 if (rte_lpm_lookup(rxq->lpm, ip_dst, &next_hop) == 0 && in reassemble() 367 (enabled_port_mask & 1 << next_hop) != 0) { in reassemble() 368 dst_port = next_hop; in reassemble() 405 &next_hop) == 0 && in reassemble() 406 (enabled_port_mask & 1 << next_hop) != 0) { in reassemble() 407 dst_port = next_hop; in reassemble()
|