Lines Matching refs:rules_tbl
203 lpm->rules_tbl = rte_zmalloc_socket(NULL,
206 if (lpm->rules_tbl == NULL) {
207 RTE_LOG(ERR, LPM, "LPM rules_tbl memory allocation failed\n");
220 rte_free(lpm->rules_tbl);
273 rte_free(lpm->rules_tbl);
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;
357 lpm->rules_tbl[rule_index].next_hop = next_hop;
376 lpm->rules_tbl[rule_index] =
377 lpm->rules_tbl[lpm->rule_info[depth - 1].first_rule
382 lpm->rules_tbl[lpm->rule_info[i].first_rule - 1] =
383 lpm->rules_tbl[lpm->rule_info[i].first_rule
409 if (lpm->rules_tbl[rule_index].ip == ip_masked)
760 *next_hop = lpm->rules_tbl[rule_index].next_hop;
1106 memset(lpm->rules_tbl, 0, sizeof(lpm->rules_tbl[0]) * lpm->max_rules);