[dpdk-dev] [PATCH] net/mlx4: fix rx not working after mbuf alloc failure

Ferruh Yigit ferruh.yigit at intel.com
Fri Apr 14 11:58:02 CEST 2017


On 4/13/2017 11:15 PM, Charles Myers wrote:
> From: Charles <Charles.Myers at spirent.com>
> 
> Fixes issue where mlx4 driver stops receiving packets when mbuf
> allocation fails in mlx4_rx_burst().
> 
> This issue appears to be caused because the code doesn't recycle the
> existing mbuf to the sges array when mbuf allocation fails as is done
> in the code right above it which handles (wc.status != IBV_WC_SUCCESS).
> 
> Copying the code from the above case fixes the issue.
> 
> Fixes: acac55f16412 ("mlx4: use MOFED 3.0 fast verbs interface for Rx
> operations")

Cc: stable at dpdk.org

> 
> Signed-off-by: Charles Myers <Charles.Myers at spirent.com>

Acked-by: Adrien Mazarguil <adrien.mazarguil at 6wind.com>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list