Home
last modified time | relevance | path

Searched refs:rules_tbl (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/dpdk_rte_lpm/
H A Drte_lpm.c203 lpm->rules_tbl = rte_zmalloc_socket(NULL, in rte_lpm_create()
206 if (lpm->rules_tbl == NULL) { in rte_lpm_create()
220 rte_free(lpm->rules_tbl); in rte_lpm_create()
273 rte_free(lpm->rules_tbl); in rte_lpm_free()
311 if (lpm->rules_tbl[rule_index].ip == ip_masked) {
313 if (lpm->rules_tbl[rule_index].next_hop
316 lpm->rules_tbl[rule_index].next_hop = next_hop;
348 lpm->rules_tbl[lpm->rule_info[i - 1].first_rule
350 = lpm->rules_tbl[lpm->rule_info[i - 1].first_rule];
356 lpm->rules_tbl[rule_index].ip = ip_masked;
[all …]
H A Drte_lpm6.c233 while (rte_hash_iterate(lpm->rules_tbl, (void *) &rule_key,
282 rules_tbl = rte_hash_create(&rule_hash_tbl_params); in rte_lpm6_create()
283 if (rules_tbl == NULL) { in rte_lpm6_create()
459 ret = rte_hash_lookup_data(lpm->rules_tbl, (const void *) rule_key,
512 ret = rte_hash_add_key_data(lpm->rules_tbl, &rule_key,
1078 ret = rte_hash_del_key(lpm->rules_tbl, (void *) &rule_key);
1148 rte_hash_reset(lpm->rules_tbl);
H A Drte_lpm.h143 struct rte_lpm_rule *rules_tbl; /**< LPM rules. */ member