lpm: fix index of tbl8
authorWei Dai <wei.dai@intel.com>
Mon, 19 Jun 2017 04:14:38 +0000 (12:14 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 19 Jun 2017 21:30:01 +0000 (23:30 +0200)
commit9d042b3ee0cc67e2db6cc81ef454113957793d2b
tree6b66b0a9cca49443a34782f9092e79ead5d86c8a
parent058e2d294bf9f726488644bf56f0db2c58c11532
lpm: fix index of tbl8

From v20 to v1604, number of tbl8 can be up to 1<<24,
(uint8_t) or (uint16_t) may truncate the number of
index of tlb8 in v1604 and cause wrong number.

Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field")
Cc: stable@dpdk.org
Signed-off-by: Wei Dai <wei.dai@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_lpm/rte_lpm.c