From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) by dpdk.org (Postfix) with ESMTP id C1F972BB4 for ; Mon, 3 Jul 2017 15:48:59 +0200 (CEST) Received: by mail-wr0-f179.google.com with SMTP id 77so234757303wrb.1 for ; Mon, 03 Jul 2017 06:48:59 -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=VqEQdN6gZaCifpXpc+jChUu7BhrxZIzreuwFw7W8zsQ=; b=AlI1kPoTMP1IxoO4iOiQycbgysZjOd+ckFb0cDiW7FHbA7l6XZPMOVsSdV8Z79vdUL 2/gmZSaCahxWkdEwLVaruz21/nDXnYyuyhCsHWvzUntiN6HbPzHAuenkJLLMmtr+4jJe iXGS4qm8RPICj4lFpO6c9U32wNmS6qbmzXtijc33rkgjtbKsmwmK9cTsg2/PuBKsTUOL 06tVxUGHCt/6eCZuoNc7zqDZLobnYrYDMmkfw70c6wrL7+wm69fmdu4u/OLPjYOBgWWT aPNnf5zm0JjZNwhB9PjIO2VduwgUNxFbyuwqpmzZj+OkNHWZMmD94F0NG8ojLmZnmIH7 xz2A== 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=VqEQdN6gZaCifpXpc+jChUu7BhrxZIzreuwFw7W8zsQ=; b=jvCgTCvbuGMMU0lgKVdYUMA4UpzwJhNP/+Ibs/BqjXI4MdKCo+nkc6U06g2Wfm99wO HvSO+0jkDOSeBLA1Jx8nbGXyM695vM1MYU74O+mHgokBfKiRltHzHC1xzVUlajhpDJh9 ei2iCZpL1Cdnn05NJq/6SJ1Q6taVqJ4eDCJe24lCBqzIVWY0Yy3aR8noS+GpHfxDzfND Nug1RO7qon8xphYGt406v0uCfBJXfW7AdMQHUi5q1vdtZGBDEcnsAgmfw90allNKasia jx79ueLmB8bKVmmVweo4M8iLlb2macfGdqO7B2XtJLGioNcA4K8siqVm469f9wjdxDjr ZCmg== X-Gm-Message-State: AKS2vOz2/9vbL32k6KjoAaEB3zhxGvWLLdZK0Qom2KPLuGDEkOAx5UxS 9q3eoy419spcW8gK X-Received: by 10.223.165.86 with SMTP id j22mr30510123wrb.147.1499089739397; Mon, 03 Jul 2017 06:48:59 -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 137sm21172864wmm.29.2017.07.03.06.48.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jul 2017 06:48:58 -0700 (PDT) Date: Mon, 3 Jul 2017 15:48:51 +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: <20170703134851.GB18305@autoinstall.dev.6wind.com> References: <20170628230403.10142-1-yskoh@mellanox.com> <90ab9a936b4cd6187fcb83d6225b68cf06dfcb68.1498850005.git.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: <90ab9a936b4cd6187fcb83d6225b68cf06dfcb68.1498850005.git.yskoh@mellanox.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v2 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: Mon, 03 Jul 2017 13:49:00 -0000 On Fri, Jun 30, 2017 at 12:23:29PM -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 > --- Already acked in V1, please keep the ack in the unchanged commits. Acked-by: Nelio Laranjeiro -- Nélio Laranjeiro 6WIND