summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2018-09-26 19:21:06 +0300
committerThomas Monjalon <thomas@monjalon.net>2018-10-02 17:57:00 +0200
commitedd2fafbc0b89bd98b23d4e34402bb79363cb70a (patch)
tree70422f7eefa127f1bcdec95a41202cdb10fc6856 /test
parent559f003f21e93b113fa55ae2c1a4fc73a877e82b (diff)
downloaddpdk-edd2fafbc0b89bd98b23d4e34402bb79363cb70a.zip
dpdk-edd2fafbc0b89bd98b23d4e34402bb79363cb70a.tar.gz
dpdk-edd2fafbc0b89bd98b23d4e34402bb79363cb70a.tar.xz
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>
Diffstat (limited to 'test')
-rw-r--r--test/test/test_kni.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/test/test/test_kni.c b/test/test/test_kni.c
index 3dcadce..cf64c0b 100644
--- a/test/test/test_kni.c
+++ b/test/test/test_kni.c
@@ -426,12 +426,6 @@ test_kni_processing(uint16_t port_id, struct rte_mempool *mp)
}
test_kni_ctx = NULL;
- /* test of releasing a released kni device */
- if (rte_kni_release(kni) == 0) {
- printf("should not release a released kni device\n");
- return -1;
- }
-
/* test of reusing memzone */
kni = rte_kni_alloc(mp, &conf, &ops);
if (!kni) {