From c8722d26ace9f7840d587ae8ef2c394364cef532 Mon Sep 17 00:00:00 2001 From: logwang Date: Tue, 4 Jul 2017 11:45:35 +0800 Subject: [PATCH] Fix KNI out of memory: a typo leads rte_mbuf leak. --- lib/ff_dpdk_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ff_dpdk_if.c b/lib/ff_dpdk_if.c index b1319209..aacee895 100644 --- a/lib/ff_dpdk_if.c +++ b/lib/ff_dpdk_if.c @@ -941,7 +941,7 @@ process_packets(uint8_t port_id, uint16_t queue_id, struct rte_mbuf **bufs, mbuf_pool = pktmbuf_pool[qconf->socket_id]; mbuf_clone = rte_pktmbuf_clone(rtem, mbuf_pool); if(mbuf_clone) { - ff_kni_enqueue(port_id, rtem); + ff_kni_enqueue(port_id, mbuf_clone); } }