Lines Matching defs:rule
115 * LPM6 rule hash function
181 * Init a rule key.
410 /* Find a rule */
419 /* lookup for a rule */
430 /* Find a rule */
437 /* init a rule key */
444 * Checks if a rule already exists in the rules table and updates
445 * the nexthop if so. Otherwise it adds a new rule if enough space is available.
448 * 0 - next hop of existed rule is updated
449 * 1 - new rule successfully added
459 /* init a rule key */
462 /* Scan through rule list to see if rule already exists. */
466 * If rule does not exist check if there is space to add a new rule to
467 * this rule group. If there is no space return error.
472 /* add the rule or update rules next hop */
478 /* Increment the used rules counter for this rule group. */
488 * Function that expands a rule across the data structure when a less-generic
641 * expand the rule across the relevant positions in the table.
664 * into next tbl8 and expand the rule across the data structure.
673 /* update tbl8 rule reference counter */
719 * If it's valid but not extended the rule that was stored
813 /* not enough tbl8 to add a rule */
847 /* Add the rule to the rule table. */
849 /* If there is no space available for new rule return error. */
986 * Look for a rule in the high-level rules table
1007 * Delete a rule from the rule table.
1019 /* init rule key */
1022 /* delete the rule */
1056 * Set all the table entries to 0 (ie delete every rule
1065 * Add every rule again (except for the ones that were removed from
1110 * Find a less specific rule
1114 struct rte_lpm6_rule *rule)
1139 rule->depth = depth;
1140 rule->ip = rule_key.ip;
1141 rule->next_hop = next_hop;
1150 * Find range of tbl8 cells occupied by a rule
1163 /* rule is within the top level */
1258 * Deletes a rule
1278 /* Delete the rule from the rule table. */
1283 /* find rule cells */
1286 /* find a less specific rule (a rule with smaller depth)
1293 /* decrement the table rule counter,
1305 /* iterate rule cells */
1309 * of the prefix/rule. Entries in a more