On 9/22/2022 2:09 PM, Niklas Söderlund wrote:
From: Long Wu <[email protected]>nfp_net_recv_pkts() should not return a value that less than 0 and the inappropriate return value in receive loop also causes the memory leak. Modify code to avoid return a value less than 0. Furthermore, When nfp_net_recv_pkts() break out from the receive loop because of packet problems, a rte_mbuf will not be freed and it will cause memory leak. Free the rte_mbuf before break out. Fixes: b812daadad0d ("nfp: add Rx and Tx") Cc: [email protected] Cc: [email protected] Signed-off-by: Long Wu <[email protected]> Reviewed-by: Chaoyong He <[email protected]> Reviewed-by: Niklas Söderlund <[email protected]> Signed-off-by: Niklas Söderlund <[email protected]>
Applied to dpdk-next-net/main, thanks.

