table: fix next hop table entry type
authorMichal Kobylinski <michalx.kobylinski@intel.com>
Tue, 21 Jun 2016 13:20:10 +0000 (15:20 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 21 Jun 2016 20:41:40 +0000 (22:41 +0200)
commit34d279906d588e349f3e69020a94d7f932bdf099
treed1cc691078daa41ff3118ba8af9402453401cda9
parent81d084dd2aa831c9c620480f0e42e094d369515e
table: fix next hop table entry type

Change type of nht field from uint32_t to uint8_t and increase max of
next hops.

nht_entry and nht should be declared as uint8_t because
entry_size is in bytes and is given as a parameter to compute
the position in nht array.

Fixes: dc81ebbacaeb ("lpm: extend IPv4 next hop field")

Signed-off-by: Michal Kobylinski <michalx.kobylinski@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_table/rte_table_lpm.c