kni: allocate memory dynamically for each device
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 26 Sep 2018 16:21:06 +0000 (19:21 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 2 Oct 2018 15:57:00 +0000 (17:57 +0200)
commitedd2fafbc0b89bd98b23d4e34402bb79363cb70a
tree70422f7eefa127f1bcdec95a41202cdb10fc6856
parent559f003f21e93b113fa55ae2c1a4fc73a877e82b
kni: allocate memory dynamically for each device

Long time ago preallocation of memory for KNI was introduced in commit
0c6bc8e. It was done because of lack of ability to free previously
allocated memzones, which led to memzone exhaustion. Currently memzones
can be freed and this patch uses this ability for dynamic KNI memory
allocation.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_kni/rte_kni.c
lib/librte_kni/rte_kni.h
test/test/test_kni.c