From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by dpdk.org (Postfix) with ESMTP id 97AECBE7C for ; Fri, 29 May 2015 20:41:34 +0200 (CEST) Received: by wifw1 with SMTP id w1so34672348wif.0 for ; Fri, 29 May 2015 11:41:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=9oTlPpxKGDg0JI9Zo1ECF4+KI0d4YcZHHZMV4D1q840=; b=gdcIbn3859BwaMFAC4T/USApWmJQKEJRpYvF6hSI/eE/72tq9ypgFzkXYtD3wwtKfe jih6gHpPvhpB3Z/WSpDKezX6dsyrAPrmKLnkisinGKAB2R3soxLh095S/Fr8zts13l5n cRe/VB/v2nxZYGLQP0b7jsdcV0lBb8fEEqrei4p8LrAFlZek3E3O9Dr6jpshHE4bntIr wO/EIJ1PCiqD52HmmBqXJekoNoxvxre/XUGHHEBHQDctya9e1qfPQG31/tHT/pZhN58R a3CAO3LbfDLHrA4umjtE/qphWxZyRKJHZGxQmtio4whD0O+rxCy+N8ctapFHhn/PAew0 oceA== X-Gm-Message-State: ALoCoQnyOctCBr6psWr8TXhSmW+YkSbounVvUMzweCWum/NvETzgxaVF9mBbSDhwXiPeLKkyr1Y0 X-Received: by 10.180.149.173 with SMTP id ub13mr9211640wib.23.1432924894513; Fri, 29 May 2015 11:41:34 -0700 (PDT) Received: from xps13.localnet (166.16.90.92.rev.sfr.net. [92.90.16.166]) by mx.google.com with ESMTPSA id q4sm9505489wja.24.2015.05.29.11.41.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 May 2015 11:41:33 -0700 (PDT) From: Thomas Monjalon To: Konstantin Ananyev Date: Fri, 29 May 2015 17:58:28 +0200 Message-ID: <2481789.3NrDQ1EcU4@xps13> Organization: 6WIND User-Agent: KMail/4.14.7 (Linux/4.0.1-1-ARCH; KDE/4.14.7; x86_64; ; ) In-Reply-To: <1432716005-21290-1-git-send-email-konstantin.ananyev@intel.com> References: <1432571266-25840-2-git-send-email-adrien.mazarguil@6wind.com> <1432716005-21290-1-git-send-email-konstantin.ananyev@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCHv3] mempool: fix pages computation to determine number of objects 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, 29 May 2015 18:41:35 -0000 2015-05-27 09:40, Konstantin Ananyev: > v3: > - Fixed typo in the commit message. > > v2: > - As suggested in comments use slightly different approach for the fix. > > In rte_mempool_obj_iter(), when element boundary coincides with page boundary, > even if a single page is required per object, a loop checks that the next page > is contiguous and drops the first one otherwise. > This commit checks subsequent pages only when several are required per object. > > Signed-off-by: Konstantin Ananyev Applied, thanks