From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro Subject: Re: [PATCH v2 1/5] net/mlx5: change indexing for Tx SW ring Date: Mon, 3 Jul 2017 15:48:51 +0200 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-Transfer-Encoding: 8bit Cc: ferruh.yigit@intel.com, dev@dpdk.org, adrien.mazarguil@6wind.com To: Yongseok Koh 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) Content-Disposition: inline In-Reply-To: <90ab9a936b4cd6187fcb83d6225b68cf06dfcb68.1498850005.git.yskoh@mellanox.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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