From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 0EDA7DE3 for ; Tue, 13 May 2014 16:32:35 +0200 (CEST) Received: by mail-wg0-f47.google.com with SMTP id x12so472255wgg.30 for ; Tue, 13 May 2014 07:32:43 -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=6sDt5MhRRjnh2X+LeLvLSNZMU0OOMhOVPjqxxjtUCmE=; b=hYK6NxHhoeZ9i1MPDHp25szEo+g66Q4mYrkpmuO3e9Qfv7i5VGUxmQhpoTTDdhzH4a UbKcrmecWXseh4Ph+19DlzyqssGqAv2dUY7v64UL+aAEZv6EoIVuzp/h7JEReg3VGaTx YJJuNM6YqYH+WJ0igDgPE0KgpmCx0bj2GiY8dd3OFEsERZcZn7sJblGb+3LVWYfKmXFl Yszc1maQrab26bVKKnOOgIrxMoEA1Nn5DFEJ+pjrVtIIX5BN173P+jTK+VVTz24Wz7QM cAZm2iF2YWJngyvMqrgWzAt4jG5DDnFcwyKYeYb6yX4d6JjiOUJo8djKfnDgrQD0mVAU ozFA== X-Gm-Message-State: ALoCoQncrjfWUnnLAedJNVpHsFLCFMoc/rW80jAKBFZrOOFVIQEoxbKMSuCPVhlFuhi0WZ2/aACy X-Received: by 10.194.92.7 with SMTP id ci7mr27622561wjb.7.1399991563175; Tue, 13 May 2014 07:32:43 -0700 (PDT) Received: from xps13.localnet (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id fu10sm22231852wib.11.2014.05.13.07.32.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 May 2014 07:32:42 -0700 (PDT) From: Thomas Monjalon To: Olivier Matz Date: Tue, 13 May 2014 16:32:40 +0200 Message-ID: <2285844.3zIKokJB5S@xps13> Organization: 6WIND User-Agent: KMail/4.13 (Linux/3.14.2-1-ARCH; KDE/4.13.0; x86_64; ; ) In-Reply-To: <2601191342CEEE43887BDE71AB9772580EFA4879@IRSMSX105.ger.corp.intel.com> References: <1399630493-26739-1-git-send-email-olivier.matz@6wind.com> <2601191342CEEE43887BDE71AB9772580EFA4879@IRSMSX105.ger.corp.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] [PATCH v2 0/2] ring: allow to init a rte_ring outside of an rte_memzone 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: Tue, 13 May 2014 14:32:36 -0000 > These 2 patches adds 2 new functions that permits to initialize and use > a rte_ring anywhere in memory. > > Before this patches, only rte_ring_create() was available. This function > allocates a rte_memzone (that cannot be freed) and initializes a ring > inside. > > This series allows to do the following: > size = rte_ring_get_memsize(1024); > r = malloc(size); > rte_ring_init(r, "my_ring", 1024, 0); > > > Changes included in v2: > - fix syntax for functions definitions in rte_ring_get_memsize() > - use RTE_ALIGN() to get nearest higher multiple of cache line size > - fix description of rte_ring_init() in doxygen comments > > Olivier Matz (2): > ring: introduce rte_ring_get_memsize() > ring: introduce rte_ring_init() Acked-by: Konstantin Ananyev Applied for version 1.7.0 -- Thomas