From: Intel Date: Wed, 4 Dec 2013 09:00:00 +0000 (+0100) Subject: lpm: fix sub-rule deletion X-Git-Tag: spdx-start~11056 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=466e1374573fd48d98148f540cc12237e8b0e1d9;p=dpdk.git 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 --- diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index e385ea024e..02ac91f8e7 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, };