lpm: remove redundant check when adding rule
authorWei Dai <wei.dai@intel.com>
Mon, 8 Aug 2016 06:42:37 +0000 (14:42 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 13 Oct 2016 20:17:00 +0000 (22:17 +0200)
commitf05b0fbe7d73b105ec9c848d4ecb6bb965391b8c
tree94148cb76c924020ea4db18c8fa5d356e5d024de
parent69ed52dddc0fc64f5cec7e7384197874f92ff393
lpm: remove redundant check when adding rule

When a rule with depth > 24 is added into an existing
rule with depth <=24, a new tbl8 is allocated, the existing
rule first fulfill whole new tbl8, so the filed valid of
each entry in this tbl8 is always true and depth of each
entry is always <= 24 before adding the new rule with depth > 24.

Signed-off-by: Wei Dai <wei.dai@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_lpm/rte_lpm.c