[dpdk-dev] [PATCH v4] KNI: use a memzone pool for KNI alloc/release
Zhang, Helin
helin.zhang at intel.com
Tue Oct 21 06:57:39 CEST 2014
> This patch implements the KNI memzone pool in order to prevent memzone
> exhaustion when allocating/deallocating KNI interfaces.
>
> It adds a new API call, rte_kni_init(max_kni_ifaces) that shall be called before
> any call to rte_kni_alloc() if KNI is used.
>
> v2: Moved KNI fd opening to rte_kni_init(). Revised style.
> v3: Adapted kni examples/tests to rte_kni_init().
> v4: Improved example integration. Fixed kni_memzone_pool_alloc/release()
> bug.
>
> Signed-off-by: Marc Sune <marc.sune at bisdn.de>
Acked-by: Helin Zhang <helin.zhang at intel.com>
> ---
> app/test/test_kni.c | 5 +-
> examples/kni/main.c | 22 ++++
> lib/librte_kni/rte_kni.c | 317
> +++++++++++++++++++++++++++++++++++++---------
> lib/librte_kni/rte_kni.h | 18 +++
> 4 files changed, 302 insertions(+), 60 deletions(-)
More information about the dev
mailing list