From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) by dpdk.org (Postfix) with ESMTP id CBC975957 for ; Fri, 26 Jul 2013 16:59:14 +0200 (CEST) Received: by mail-wi0-f181.google.com with SMTP id en1so882503wid.2 for ; Fri, 26 Jul 2013 07:59:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:x-gm-message-state; bh=qQc1gT6ZOXPzYDnVXLRThkjZiDkyYHiW6nPtkJqYuxQ=; b=Kvg2XaVc8djTXF72l4sm5FsEDkdW4Cus4skqBCaLebW6vBljALm4IX4IYkesZFlKxb us5qHEifZHLZhC/gkmpl6kcqKm8D4gYoo5z9Bv7KDdBtHlESFIEulCpsE/pVz8umXFh0 K43zZBU79mnX27nYG6H0VWahijaaj308SjLfQ30cGLmkXWAEfN1I6apAsK+khY2rBe6L Rdl2TX9iNZbAbUk9Vd9dmMdLBEM7a738Q84FZful1Gl0fFCUmP7Zmog4dU20zXDTywUJ XHUrNVMBJmsBey7KUlOh5Mboo6QF6u7zskJT8YgS64Rw10Ab4DAICHRDdQegTDy043Ir k/tw== X-Received: by 10.180.185.84 with SMTP id fa20mr5301473wic.49.1374850777696; Fri, 26 Jul 2013 07:59:37 -0700 (PDT) Received: from 6wind.com (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id o10sm5313279wiz.5.2013.07.26.07.59.34 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 26 Jul 2013 07:59:35 -0700 (PDT) Date: Fri, 26 Jul 2013 16:59:32 +0200 From: Adrien Mazarguil To: Damien Millescamps Message-ID: <20130726145932.GO7849@6wind.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Gm-Message-State: ALoCoQnqPm60JysSrOaW/gMrLe8B1XX0zQ4XH0vp53Xg63hMZ7NygfsJ97VVcBSsu1d2jx+ZXRTs 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 14:59:15 -0000 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 -- Adrien Mazarguil 6WIND