• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/dpdk_rte_lpm/

Lines Matching refs:rule

145  * LPM6 rule hash function
213 * Init a rule key.
449 /* Find a rule */
458 /* lookup for a rule */
469 /* Find a rule */
476 /* init a rule key */
483 * Checks if a rule already exists in the rules table and updates
484 * the nexthop if so. Otherwise it adds a new rule if enough space is available.
487 * 0 - next hop of existed rule is updated
488 * 1 - new rule successfully added
498 /* init a rule key */
501 /* Scan through rule list to see if rule already exists. */
505 * If rule does not exist check if there is space to add a new rule to
506 * this rule group. If there is no space return error.
511 /* add the rule or update rules next hop */
517 /* Increment the used rules counter for this rule group. */
528 * Function that expands a rule across the data structure when a less-generic
681 * expand the rule across the relevant positions in the table.
704 * into next tbl8 and expand the rule across the data structure.
713 /* update tbl8 rule reference counter */
759 * If it's valid but not extended the rule that was stored
853 /* not enough tbl8 to add a rule */
888 /* Add the rule to the rule table. */
890 /* If there is no space available for new rule return error. */
1030 struct rte_lpm6_rule *rule = (struct rte_lpm6_rule *)buffer;
1032 ip6_copy_addr((uint8_t *)&rule->ip, ip);
1033 rule->depth = depth;
1034 rule->next_hop = next_hop;
1036 return (rule);
1041 * Look for a rule in the high-level rules table
1062 * Delete a rule from the rule table.
1074 /* init rule key */
1077 /* delete the rule */
1111 * Set all the table entries to 0 (ie delete every rule
1120 * Add every rule again (except for the ones that were removed from
1167 * Find a less specific rule
1171 struct rte_lpm6_rule *rule)
1196 rule->depth = depth;
1197 ip6_copy_addr(rule->ip, rule_key.ip);
1198 rule->next_hop = next_hop;
1208 * Find range of tbl8 cells occupied by a rule
1220 /* rule is within the top level */
1315 * Deletes a rule
1337 /* Delete the rule from the rule table. */
1343 /* find rule cells */
1347 /* find a less specific rule (a rule with smaller depth)
1354 /* decrement the table rule counter,
1366 /* iterate rule cells */
1370 * of the prefix/rule. Entries in a more