From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f196.google.com (mail-qk0-f196.google.com [209.85.220.196]) by dpdk.org (Postfix) with ESMTP id B99505F19 for ; Thu, 8 Mar 2018 10:40:08 +0100 (CET) Received: by mail-qk0-f196.google.com with SMTP id o25so6076797qkl.7 for ; Thu, 08 Mar 2018 01:40:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sLs3cdptXxEX5BUBE4WmUyqvbyGR98Gz3a9rI47I7d4=; b=oBEhxwfA311FkA30+nXwqyrbBdr9fW+2MHa+U+WEN2/yHVwpbOuf1dwcexusAWDT/q WNbJmxxv3IIySOfT25lQN8cdp5Ti2cnldvnZc/cL8s9A5UJOwub6M42NzQC/BX92zrr/ blPIMQ76wvUwG3YSzat4KuTxbeAO2yBRaqJD1UKCycE4ENCwGutMmt9K9b2eebnwZ2OH hE1b6/WDzhVlx+uJD4M3LDSAsK8BdlevwLVPPK9XtymKP0nDQ1+i2VR8O54TSZEfOJ1K uJRv/TvW2FfdHpHfeG6ltylBIKRHdAiN+Eut0surjQ/V5gV6KWlAHYN8IZSeG2wMm7Gt XA2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sLs3cdptXxEX5BUBE4WmUyqvbyGR98Gz3a9rI47I7d4=; b=P611qPyXPW8SBrw65hYGzgmL2C83lr9wgquRU5PgrhoPdNYGDeoY8IrAFSmCN0+sOh R3KwK9DqdxYuUSM+AFrei877RCJCTOgE99rOudqpvSjyaVpmX5Jo3FcZJKL+WfOL5e/w OpSYgGhFSyFK3vVywyd4EKB4VWeHtZ4W+j+sCYiLOmS6vB7Md8jSQSA39RYw8T2Zq1Qo /YznZhpvEJ3RlLgar5Eu892fBfnutHFHt+xtwQnJHWlThcCZmMEIr3X9cIJ4lC8PPccf PsZflY/1Kkm28jPYM7i8Re1pRxwdUcksD8xzedee+eXEocKTPRPuzwpjojwow5OXCVT+ RoQQ== X-Gm-Message-State: AElRT7EFAnZm29cDa4/P2iNBGcxhoiA8NZa3GrvLcLTVQzi8GgExyAKY Cb+lOR1eoiuDUzukgUaiorWNz6F3mPYjet25cCa5ww== X-Google-Smtp-Source: AG47ELshOl2XukqJoZeHrHL4zfaT5xqF38e2Ri2fUjh/IvQYIFso/Ropux49dWTFvELlizHIfzOybHCpKlxnbnjgriM= X-Received: by 10.55.190.66 with SMTP id o63mr17686263qkf.72.1520502008131; Thu, 08 Mar 2018 01:40:08 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.171.1 with HTTP; Thu, 8 Mar 2018 01:40:07 -0800 (PST) In-Reply-To: <2af6c33009b8008da7028a351efed2932b1a13d0.1520428025.git.anatoly.burakov@intel.com> References: <2af6c33009b8008da7028a351efed2932b1a13d0.1520428025.git.anatoly.burakov@intel.com> From: =?UTF-8?Q?Micha=C5=82_Krawczyk?= Date: Thu, 8 Mar 2018 10:40:07 +0100 Message-ID: To: Anatoly Burakov Cc: dev@dpdk.org, Marcin Wojtas , Guy Tzalik , Evgeny Schemeilin , keith.wiles@intel.com, jianfeng.tan@intel.com, andras.kovacs@ericsson.com, laszlo.vadkeri@ericsson.com, benjamin.walker@intel.com, bruce.richardson@intel.com, thomas@monjalon.net, konstantin.ananyev@intel.com, kuralamudhan.ramakrishnan@intel.com, louise.m.daly@intel.com, nelio.laranjeiro@6wind.com, yskoh@mellanox.com, pepperjo@japf.ch, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, olivier.matz@6wind.com Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v2 36/41] net/ena: use contiguous allocation for DMA memory 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: Thu, 08 Mar 2018 09:40:09 -0000 2018-03-07 17:57 GMT+01:00 Anatoly Burakov : > Signed-off-by: Anatoly Burakov Acked-by: Michal Krawczyk > --- > drivers/net/ena/base/ena_plat_dpdk.h | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/ena/base/ena_plat_dpdk.h b/drivers/net/ena/base/ena_plat_dpdk.h > index 8cba319..c1ebf00 100644 > --- a/drivers/net/ena/base/ena_plat_dpdk.h > +++ b/drivers/net/ena/base/ena_plat_dpdk.h > @@ -188,7 +188,8 @@ typedef uint64_t dma_addr_t; > ENA_TOUCH(dmadev); ENA_TOUCH(handle); \ > snprintf(z_name, sizeof(z_name), \ > "ena_alloc_%d", ena_alloc_cnt++); \ > - mz = rte_memzone_reserve(z_name, size, SOCKET_ID_ANY, 0); \ > + mz = rte_memzone_reserve_contig(z_name, \ > + size, SOCKET_ID_ANY, 0); \ > memset(mz->addr, 0, size); \ > virt = mz->addr; \ > phys = mz->iova; \ > @@ -206,7 +207,7 @@ typedef uint64_t dma_addr_t; > ENA_TOUCH(dmadev); ENA_TOUCH(dev_node); \ > snprintf(z_name, sizeof(z_name), \ > "ena_alloc_%d", ena_alloc_cnt++); \ > - mz = rte_memzone_reserve(z_name, size, node, 0); \ > + mz = rte_memzone_reserve_contig(z_name, size, node, 0); \ > memset(mz->addr, 0, size); \ > virt = mz->addr; \ > phys = mz->iova; \ > @@ -219,7 +220,7 @@ typedef uint64_t dma_addr_t; > ENA_TOUCH(dmadev); ENA_TOUCH(dev_node); \ > snprintf(z_name, sizeof(z_name), \ > "ena_alloc_%d", ena_alloc_cnt++); \ > - mz = rte_memzone_reserve(z_name, size, node, 0); \ > + mz = rte_memzone_reserve_contig(z_name, size, node, 0); \ > memset(mz->addr, 0, size); \ > virt = mz->addr; \ > } while (0) > -- > 2.7.4