bb340f56fc
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:
|
||
---|---|---|
.. | ||
flower | ||
nfpcore | ||
meson.build | ||
nfp_common.c | ||
nfp_common.h | ||
nfp_cpp_bridge.c | ||
nfp_cpp_bridge.h | ||
nfp_ctrl.h | ||
nfp_ethdev_vf.c | ||
nfp_ethdev.c | ||
nfp_logs.h | ||
nfp_rxtx.c | ||
nfp_rxtx.h | ||
version.map |