lpm: fix overflow issue
authorIgor Ryzhov <iryzhov@nfware.com>
Fri, 20 Feb 2015 13:16:46 +0000 (16:16 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 24 Feb 2015 01:08:19 +0000 (02:08 +0100)
commite128e53879c71215c0293f8c7a7a8f0f173487c1
tree71315d78295b816f2af71cd89fed168b739958bb
parentdc783e74cf70c95084e71442ba09b212dded3757
lpm: fix overflow issue

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 <iryzhov@nfware.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_lpm/rte_lpm.c