Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netdev-dpdk: Fix memory leak in dpdk_do_tx_copy().
This patch fixes a bug where rte_pktmbuf_alloc() would fail and packets which succeeded to allocate memory with rte_pktmbuf_alloc() would not be sent and leak memory. Also, as a byproduct of using a local variable to record dropped packets, this reduces the locking of the netdev's mutex when multiple packets are dropped in dpdk_do_tx_copy(). Signed-off-by: Ryan Wilson <[email protected]> Acked-by: Daniele Di Proietto <[email protected]> Acked-by: Pravin B Shelar <[email protected]>
- Loading branch information