Re: [dpdk-dev] [PATCH] lpm: fix index of tbl8

2017-06-19 Thread Thomas Monjalon
19/06/2017 13:25, Bruce Richardson: > On Mon, Jun 19, 2017 at 12:14:38PM +0800, Wei Dai wrote: > > From v20 to v1604, number of tlb8 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: exte

Re: [dpdk-dev] [PATCH] lpm: fix index of tbl8

2017-06-19 Thread Bruce Richardson
On Mon, Jun 19, 2017 at 12:14:38PM +0800, Wei Dai wrote: > From v20 to v1604, number of tlb8 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: sta...@dpdk.org >

[dpdk-dev] [PATCH] lpm: fix index of tbl8

2017-06-18 Thread Wei Dai
>From v20 to v1604, number of tlb8 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: sta...@dpdk.org Signed-off-by: Wei Dai --- lib/librte_lpm/rte_lpm.c | 4 ++-- 1 fi