From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f172.google.com (mail-wr0-f172.google.com [209.85.128.172]) by dpdk.org (Postfix) with ESMTP id 7B739532C for ; Fri, 30 Jun 2017 14:20:46 +0200 (CEST) Received: by mail-wr0-f172.google.com with SMTP id k67so202872804wrc.2 for ; Fri, 30 Jun 2017 05:20:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=BfOLX+QmkOa8dr9jfFZ299Xhm3u9F1xzVvvQFO/JjZc=; b=TArRB4kUQAoT0KcUkaI7bGZ/YnAZ9H9Jlt65BbHaku8UToRJYtjIJ6gwqyOVaDih8W ZschygrxZc7XnR5HEvbMQFv3t2NxMGJ0V1qZmv0fjKrUmNQyD0rHdvSVtJiaMspu+MNw ++Df3n9x+/6Lfm9QScM4BtDKbgiOsvv4NFeA78JMV1+hXYUEN2bbbYjjKEbRt+5XMrzP KHTqLDtI8m8FxN5y4tzP/3W6T4xO/A9jMa3OSXqHBPcLifZwMdPvLiuaXTXpNQyNogeb bfi7rLYPzuCD5QHuN97k9yjoa8YRrA5HhZd4jpeDqAcH6S7kA0DZ/BBrRql4SwJ9l/qL P93Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=BfOLX+QmkOa8dr9jfFZ299Xhm3u9F1xzVvvQFO/JjZc=; b=q2xO/plx2TciztD+gUr8eJedGl9/QUMDkgTQM0gKznmgwIm9f38haPsButvhA9UTFU Z8mz1egEQXFiSNjo+hZvwCtzhQpyW8Zha/YPTSdB7JSNzx9EmLk5Umsku9/DWY2fV28Y 42qjm7V1lAue/m3VO/Eg5c5I/0La1JFwPWxaGPYthvWj8CZpBVW5WelwMcMs1EwSsSN/ OltsXKoqaIAhEebGYVbvRiwLZfgAJ6liXNvDi9/oOB5bRT23B1l1V0UEEkAV8IMW0WhC jnqcWzKRiTdRbGd9bH7SB4qt6VS4bm45mXlIHwhBga5b2RfP/HGHwCK2ENKdmDUXFKY/ 3VPA== X-Gm-Message-State: AKS2vOxQPuQVyiGP6sUG6ALIX/7p0rS2C6zYZbG+iEOwdjUw22AF153I r/BjG7sCSC2qgEumRtsbPg== X-Received: by 10.223.135.29 with SMTP id a29mr26670606wra.138.1498825245843; Fri, 30 Jun 2017 05:20:45 -0700 (PDT) Received: from autoinstall.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id m123sm4656505wmb.3.2017.06.30.05.20.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Jun 2017 05:20:42 -0700 (PDT) Date: Fri, 30 Jun 2017 14:20:35 +0200 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro To: Yongseok Koh Cc: ferruh.yigit@intel.com, dev@dpdk.org, adrien.mazarguil@6wind.com Message-ID: <20170630122035.GN18305@autoinstall.dev.6wind.com> References: <20170628230403.10142-1-yskoh@mellanox.com> <20170628230403.10142-2-yskoh@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170628230403.10142-2-yskoh@mellanox.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH 1/5] net/mlx5: change indexing for Tx SW ring 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: Fri, 30 Jun 2017 12:20:46 -0000 On Wed, Jun 28, 2017 at 04:03:59PM -0700, Yongseok Koh wrote: > For Tx SW ring (txq->elts[]), indexes are kept and used in > txq->elts_head/tail. Because of this, one entry must always be left unused > and it also makes code complex. Changed to store counters instead of > indexes in order to make the code simpler and to reduce a few calculations. > > Signed-off-by: Yongseok Koh Acked-by: Nelio Laranjeiro -- Nélio Laranjeiro 6WIND