From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Rybchenko Subject: Re: [PATCH 31/41] ethdev: use contiguous allocation for DMA memory Date: Sat, 3 Mar 2018 17:05:14 +0300 Message-ID: <405c4b97-4561-6ef7-5844-fdc0cdfaabc5@solarflare.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: Thomas Monjalon , , , , , , , , , , , , , , , To: Anatoly Burakov , Return-path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [148.163.129.52]) by dpdk.org (Postfix) with ESMTP id 7339B10B7 for ; Sat, 3 Mar 2018 15:05:37 +0100 (CET) In-Reply-To: Content-Language: en-GB 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 03/03/2018 04:46 PM, Anatoly Burakov wrote: > This fixes the following drivers in one go: Does it mean that these drivers are broken in the middle of patch set and fixed now? If so, it would be good to avoid it. It breaks bisect. > grep -Rl rte_eth_dma_zone_reserve drivers/ > > drivers/net/avf/avf_rxtx.c > drivers/net/thunderx/nicvf_ethdev.c > drivers/net/e1000/igb_rxtx.c > drivers/net/e1000/em_rxtx.c > drivers/net/fm10k/fm10k_ethdev.c > drivers/net/vmxnet3/vmxnet3_rxtx.c > drivers/net/liquidio/lio_rxtx.c > drivers/net/i40e/i40e_rxtx.c > drivers/net/sfc/sfc.c > drivers/net/ixgbe/ixgbe_rxtx.c > drivers/net/nfp/nfp_net.c > > Signed-off-by: Anatoly Burakov > --- > lib/librte_ether/rte_ethdev.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/lib/librte_ether/rte_ethdev.c b/lib/librte_ether/rte_ethdev.c > index 0590f0c..7935230 100644 > --- a/lib/librte_ether/rte_ethdev.c > +++ b/lib/librte_ether/rte_ethdev.c > @@ -3401,7 +3401,8 @@ rte_eth_dma_zone_reserve(const struct rte_eth_dev *dev, const char *ring_name, > if (mz) > return mz; > > - return rte_memzone_reserve_aligned(z_name, size, socket_id, 0, align); > + return rte_memzone_reserve_aligned_contig(z_name, size, socket_id, 0, > + align); > } > > int