[dpdk-dev] [PATCH] lpm: fix extended flag check when adding a "depth small" entry

2015-07-29 Thread Liang, Cunming
On 7/28/2015 5:14 PM, Zhe Tao wrote: > When adding a "depth small" entry, if its extended flag is not set > and its depth is smaller than the one in the tbl24, nothing should > be done otherwise will operate on the wrong memory area. > > Signed-off-by: Zhe Tao > --- > lib/librte_lpm/rte_lpm.c

[dpdk-dev] [PATCH] lpm: fix extended flag check when adding a "depth small" entry

2015-07-28 Thread Zhe Tao
When adding a "depth small" entry, if its extended flag is not set and its depth is smaller than the one in the tbl24, nothing should be done otherwise will operate on the wrong memory area. Signed-off-by: Zhe Tao --- lib/librte_lpm/rte_lpm.c | 51 +--