[dpdk-dev] [PATCH] lpm: fix overflow issue

2015-02-24 Thread Thomas Monjalon
2015-02-22 20:29, Bruce Richardson: > On Fri, Feb 20, 2015 at 04:16:46PM +0300, Igor Ryzhov wrote: > > LPM table overflow may occur if table is full and added rule has the > > biggest depth that already have some rules. > > > > Signed-off-by: Igor Ryzhov > Acked-by: Bruce Richardson Applied, t

[dpdk-dev] [PATCH] lpm: fix overflow issue

2015-02-22 Thread Igor Ryzhov
Great. The easiest way to reproduce the issue is to fill LPM table with rules using only one depth and try to add another one rule with same depth. Rule will be successfully added and memory will be corrupted. ???, 22 ??? 2015 ?. Richardson, Bruce ???: > Sorry I misse

[dpdk-dev] [PATCH] lpm: fix overflow issue

2015-02-22 Thread Bruce Richardson
On Fri, Feb 20, 2015 at 04:16:46PM +0300, Igor Ryzhov wrote: > LPM table overflow may occur if table is full and added rule has the biggest > depth that already have some rules. > > Signed-off-by: Igor Ryzhov Acked-by: Bruce Richardson > --- > lib/librte_lpm/rte_lpm.c | 3 +++ > 1 file change

[dpdk-dev] [PATCH] lpm: fix overflow issue

2015-02-22 Thread Richardson, Bruce
Sorry I missed this Friday. I'll look at it shortly. On 21 Feb 2015, at 22:56, Igor Ryzhov mailto:iryzhov at nfware.com>> wrote: Hello again. Will anybody review this patch? This is really critical issue, because it can lead to memory corruption and break any program using LPM. CCing this t

[dpdk-dev] [PATCH] lpm: fix overflow issue

2015-02-22 Thread Igor Ryzhov
Hello again. Will anybody review this patch? This is really critical issue, because it can lead to memory corruption and break any program using LPM. CCing this to Bruce Richardson, because he is maintainer of LPM. Regards, Igor Ryzhov On Fri, Feb 20, 2015 at 4:16 PM, Igor Ryzhov wrote: > LPM

[dpdk-dev] [PATCH] lpm: fix overflow issue

2015-02-20 Thread Igor Ryzhov
LPM table overflow may occur if table is full and added rule has the biggest depth that already have some rules. Signed-off-by: Igor Ryzhov --- lib/librte_lpm/rte_lpm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c index 983e04b..cc51