Fix KNI out of memory: a typo leads rte_mbuf leak.

dev
logwang 2017-07-04 11:45:35 +08:00
parent 408caf3346
commit c8722d26ac
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}