[dpdk-dev] [PATCH 1/2 v2] kni: fix inverted function comments

2016-05-21 Thread Alex Wang
From: Alex Wang The 'mbufs' alloc/free descriptions for 'rte_kni_tx_burst()' and 'rte_kni_rx_burst()' should be inverted. Fixes: 3fc5ca2 (kni: initial import) Signed-off-by: Alex Wang --- lib/librte_kni/rte_kni.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/

[dpdk-dev] [PATCH 2/2 v2] kni: Add documentation for the mempool capacity

2016-05-21 Thread Alex Wang
From: Alex Wang Function like 'rte_kni_rx_burst()' keeps allocating 'MAX_MBUF_BURST_NUM' mbufs to kni fifo queue unless the queue's capacity ('KNI_FIFO_COUNT_MAX') is reached. So, if the mempool is under-provisioned, user may run into "Out of Memory" logs from KNI code. This commit documents the

[dpdk-dev] [PATCH 1/2 v3] kni: fix inverted function comments

2016-05-21 Thread Alex Wang
From: Alex Wang The 'mbufs' alloc/free descriptions for 'rte_kni_tx_burst()' and 'rte_kni_rx_burst()' should be inverted. Fixes: 3fc5ca2 (kni: initial import) Signed-off-by: Alex Wang Acked-by: Ferruh Yigit --- lib/librte_kni/rte_kni.h | 8 1 file changed, 4 insertions(+), 4 deletio

[dpdk-dev] [PATCH 2/2 v3] kni: add documentation for the mempool capacity

2016-05-21 Thread Alex Wang
From: Alex Wang Function like 'rte_kni_rx_burst()' keeps allocating 'MAX_MBUF_BURST_NUM' mbufs to kni fifo queue unless the queue's capacity ('KNI_FIFO_COUNT_MAX') is reached. So, if the mempool is under-provisioned, user may run into "Out of Memory" logs from KNI code. This commit documents the