From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 02F94A00B8; Sun, 27 Oct 2019 14:35:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EC33B1BF1B; Sun, 27 Oct 2019 14:35:22 +0100 (CET) Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id 9B4F81BF0B for ; Sun, 27 Oct 2019 14:35:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572183321; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8KpWzMpTEAgpMHMtOL1r/EjsWHbUZnUFQO1VlczU8D0=; b=FExT8arVzHs19TiJHoe1iSjMYUK5mis/lztG44w/HIWKevlBBAXFPL5skOa7Iln/Yz5W1m 1VFbmldDccEOMfnCnf9PXrgtkaBt1bp823s67G1jpIqmAclaEF1BvzUT1CTGo0p6hONumX w0LLtoNWZMYDZb2L1G2P8KKTUEHb/gw= Received: from mail-vk1-f198.google.com (mail-vk1-f198.google.com [209.85.221.198]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-277-dHmugZ10OtenuuKjYOTf0A-1; Sun, 27 Oct 2019 09:35:19 -0400 Received: by mail-vk1-f198.google.com with SMTP id i207so2145063vke.21 for ; Sun, 27 Oct 2019 06:35:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MfPp6en1xiU+r1Kjp7utA1TyMm4DQ/iKidvjyaFejr4=; b=EVke/xlCBELdfMZ37uBhjaIX0lY6DHeY2nHRJ7sLTffyIW3iRnvU5cnfecfA8w/qXb jDWgM4Ssemc/xm8OR5ju3Pei9kf9xDwauJrJAkzyWdTu/BqQSqI2OLGsASkzX1HCt5R7 L13h5t0ZIDoVdAdgHJ9ZfHYO7lDKDh3kQ4oSJrVD3eJLaj+Bh7u/oq+Z/JjRZYwDb6+c ig6+W6yzcGzOx/AdJKfiE+ZFHEUzgVrrQPVMEBDliJt7ZezMK/+g8EbXKzTVQnM+sbdr ufl9Ib9IT2qzlKSPkICa40xBTg8nY/7oOLoBc/SNYV1JF82xbvEW1ijxpf6rAILpB79f NGqA== X-Gm-Message-State: APjAAAXX6M44NlyPcCXlTilF/8fL2gX8+iik0Yr8AfPMMHskFTte3Jc4 wyKyQcIG+QGCVQYe3cp0ePhBjVO9cNPVUe9xQZFGIpmonTuFlPYhh+5JHbx2Lp6UO4+v/BFng2m 6IcsLHa8u9JVpH6+Wt30= X-Received: by 2002:a67:7d95:: with SMTP id y143mr6863143vsc.39.1572183319220; Sun, 27 Oct 2019 06:35:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGmtgxCzwa36iOQL5NVSPOqhJvtbuorahYHLIvyGXGb0wugC1ysiI66co2nfLP0tyaSS7FkBRlxJZoNCo2Lp8= X-Received: by 2002:a67:7d95:: with SMTP id y143mr6863134vsc.39.1572183318999; Sun, 27 Oct 2019 06:35:18 -0700 (PDT) MIME-Version: 1.0 References: <20191011040709.8344-1-pbhagavatula@marvell.com> <20191017121001.2546-1-pbhagavatula@marvell.com> In-Reply-To: <20191017121001.2546-1-pbhagavatula@marvell.com> From: David Marchand Date: Sun, 27 Oct 2019 14:35:08 +0100 Message-ID: To: Pavan Nikhilesh Cc: "Yigit, Ferruh" , Jerin Jacob Kollanukkaran , Declan Doherty , Gage Eads , Olivier Matz , dev X-MC-Unique: dHmugZ10OtenuuKjYOTf0A-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [PATCH v2 1/2] app/test: use RTE_DIM instead of ARRAY_SIZE 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Oct 17, 2019 at 2:10 PM wrote: > > From: Pavan Nikhilesh > > Use RTE_DIM instead of re-defining ARRAY_SIZE. > > Signed-off-by: Pavan Nikhilesh > Acked-by: Gage Eads Applied, thanks. I had a similar patch in store :-). If you want to continue on this topic, look at other files in app/test: $ git grep -l sizeof.*sizeof.*\\[ app/test app/test/test.c app/test/test_cmdline_etheraddr.c app/test/test_cmdline_ipaddr.c app/test/test_cmdline_num.c app/test/test_cmdline_portlist.c app/test/test_cmdline_string.c app/test/test_debug.c app/test/test_eal_flags.c app/test/test_errno.c app/test/test_lpm.c app/test/test_lpm6.c app/test/test_lpm6_data.h app/test/test_malloc.c app/test/test_memcpy.c app/test/test_memcpy_perf.c app/test/test_mp_secondary.c app/test/test_pdump.c app/test/test_pmd_ring_perf.c app/test/test_ring_perf.c app/test/test_timer_secondary.c --=20 David Marchand