summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIntel <intel.com>2013-12-04 10:00:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-01-15 16:37:43 +0100
commit466e1374573fd48d98148f540cc12237e8b0e1d9 (patch)
treebb85a0f4dcd00203bfcde813112fd551fba46b6e
parent6eb0ae218a9803bc0ac34b92c980b1503110939e (diff)
downloaddpdk-466e1374573fd48d98148f540cc12237e8b0e1d9.zip
dpdk-466e1374573fd48d98148f540cc12237e8b0e1d9.tar.gz
dpdk-466e1374573fd48d98148f540cc12237e8b0e1d9.tar.xz
lpm: fix sub-rule deletion
Restore group validation flag of the tbl8 entry if sub-rule is replaced by an encompassing rule. Signed-off-by: Intel
-rw-r--r--lib/librte_lpm/rte_lpm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c
index e385ea0..02ac91f 100644
--- a/lib/librte_lpm/rte_lpm.c
+++ b/lib/librte_lpm/rte_lpm.c
@@ -824,6 +824,7 @@ delete_depth_big(struct rte_lpm *lpm, uint32_t ip_masked,
struct rte_lpm_tbl8_entry new_tbl8_entry = {
.valid = VALID,
.depth = sub_rule_depth,
+ .valid_group = lpm->tbl8[tbl8_group_start].valid_group,
.next_hop = lpm->rules_tbl[sub_rule_index].next_hop,
};