From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by dpdk.org (Postfix) with ESMTP id 326B75965 for ; Fri, 26 Jul 2013 17:10:31 +0200 (CEST) Received: by mail-wi0-f171.google.com with SMTP id hj3so980968wib.10 for ; Fri, 26 Jul 2013 08:10:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:organization:to:subject:date:user-agent:cc:references :in-reply-to:mime-version:content-type:content-transfer-encoding :message-id:x-gm-message-state; bh=ovMmH0r6aIL3keXRpaqXW9JDrtlkcJz1Z7/C0b1RhCw=; b=JI/3ZIbiR2LhOGoMYFdH0HXXO9Sv9v2tHBQZhzYlfR/KsYiVv+ET/rF1aXT7EHsiX7 fGi1zCliEMgunu3IXPfZ6515LC3rYnrK1XruLRKTdrVDd1jJqndSkKpWrr5oADiY+YpB 1wHDH88pwPAQbI8N9dr6yf4IxPEw3ogkKx7lyvBUy6Hs5ZUpPWAdsGGIrpRV8Q7f9HFe UBfdgpNNBGZdGwR225XvZRTbH93O7IAS2PPLWpLaTM2iOqI/08DEgQKOK6WsWVt1i4cg dcV/4+siLH2j66CKIOSk3y+57IDOkICbVyTc8fJP27PqMLaJRfelzhFFHCqLZ97HBhJ/ o9IA== X-Received: by 10.180.206.97 with SMTP id ln1mr6060497wic.39.1374851454073; Fri, 26 Jul 2013 08:10:54 -0700 (PDT) Received: from angus.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id x6sm5394582wiy.8.2013.07.26.08.10.52 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 26 Jul 2013 08:10:53 -0700 (PDT) From: Thomas Monjalon Organization: 6WIND To: Damien Millescamps Date: Fri, 26 Jul 2013 17:10:51 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) References: <20130726145932.GO7849@6wind.com> In-Reply-To: <20130726145932.GO7849@6wind.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201307261710.51789.thomas.monjalon@6wind.com> X-Gm-Message-State: ALoCoQm1/l78n60nacvJFn1O8olktAXH4xQGyh4FDzCHWxnvgtC+BaTMg3PLcby1CTms5hEMpmNa Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH 2/2] mem: fix mempool for --no-huge X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jul 2013 15:10:31 -0000 26/07/2013 16:59, Adrien Mazarguil : > On Fri, Jul 26, 2013 at 04:39:13PM +0200, Damien Millescamps wrote: > > In --no-huge mode, mempool provides objects with their associated > > header/trailer fitting in a standard page (usually 4KB). > > This means all non-UIO driver should work correctly in this mode, > > since UIO drivers allocate ring sizes that cannot fit in a page. > > > > Extend rte_mempool_virt2phy to obtain the correct physical address when > > elements of the pool are not on the same physically contiguous memory > > region. This is a first step for enhancement PR #29696. > > > > Reason for this patch is to be able to run on a kernel < 2.6.37 without > > the need to patch it, since all kernel below are either bugged or don't > > have huge page support at all (< 2.6.28). > > > > Signed-off-by: Damien Millescamps > > --- > > > > lib/librte_eal/linuxapp/eal/eal_memory.c | 2 +- > > lib/librte_mempool/rte_mempool.c | 54 > > +++++++++++++++++++++++++++++- lib/librte_mempool/rte_mempool.h > > | 20 +++++++---- > > 3 files changed, 67 insertions(+), 9 deletions(-) > > Acked-by: Adrien Mazarguil applied -- Thomas