From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 8F0A020F for ; Sun, 21 May 2017 12:40:05 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 May 2017 03:40:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,373,1491289200"; d="scan'208";a="1172312047" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.67.162]) by fmsmga002.fm.intel.com with ESMTP; 21 May 2017 03:40:03 -0700 Date: Sun, 21 May 2017 18:35:38 +0800 From: Yuanhan Liu To: Michal Krawczyk Cc: stable@dpdk.org, mw@semihalf.com, gtzalik@amazon.com, evgenys@amazon.com Message-ID: <20170521103538.GG2276@yliu-dev> References: <1495122111-10373-1-git-send-email-mk@semihalf.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1495122111-10373-1-git-send-email-mk@semihalf.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-stable] [PATCH 1/2] net/ena: fix Rx descriptors allocation X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 May 2017 10:40:06 -0000 On Thu, May 18, 2017 at 05:41:50PM +0200, Michal Krawczyk wrote: > [ backported from upstream commit a467e8f37a3eec98210c0c3ec04bf6e9506ddd81 ] Thanks for the backport, both applied to dpdk-stable/16.11. --yliu > > When application tried to allocate 1024 descriptors, device was not > initializing properly. > > This patch solves it by avoiding allocation of all descriptors in the > ring in one attempt. At least one descriptor must remain unused in the > HW ring. > > Fixes: 1173fca25af9 ("ena: add polling-mode driver") > Cc: stable@dpdk.org > > Signed-off-by: Michal Krawczyk > Reviewed-by: Jakub Palider > Acked-by: Jan Medala