From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Apr 2017 02:58:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,197,1488873600"; d="scan'208";a="1155862163" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.237.220.122]) ([10.237.220.122]) by fmsmga002.fm.intel.com with ESMTP; 14 Apr 2017 02:58:02 -0700 To: Charles Myers , dev@dpdk.org References: <1492121724-105935-1-git-send-email-Charles.Myers@spirent.com> Cc: Adrien Mazarguil From: Ferruh Yigit Message-ID: Date: Fri, 14 Apr 2017 10:58:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <1492121724-105935-1-git-send-email-Charles.Myers@spirent.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] net/mlx4: fix rx not working after mbuf alloc failure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Apr 2017 09:58:05 -0000 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.