From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH] net/mlx4: fix rx not working after mbuf alloc failure Date: Fri, 14 Apr 2017 10:58:02 +0100 Message-ID: References: <1492121724-105935-1-git-send-email-Charles.Myers@spirent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Adrien Mazarguil To: Charles Myers , dev@dpdk.org Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id DDAA0F94 for ; Fri, 14 Apr 2017 11:58:04 +0200 (CEST) In-Reply-To: <1492121724-105935-1-git-send-email-Charles.Myers@spirent.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 4/13/2017 11:15 PM, Charles Myers wrote: > From: Charles > > 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@dpdk.org > > Signed-off-by: Charles Myers Acked-by: Adrien Mazarguil Applied to dpdk-next-net/master, thanks.