From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from dpdk.org (dpdk.org [92.243.14.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 75A09A04B5;
	Mon,  2 Dec 2019 16:42:04 +0100 (CET)
Received: from [92.243.14.124] (localhost [127.0.0.1])
	by dpdk.org (Postfix) with ESMTP id 46D291BE83;
	Mon,  2 Dec 2019 16:42:04 +0100 (CET)
Received: from us-smtp-delivery-1.mimecast.com (us-smtp-2.mimecast.com
 [207.211.31.81]) by dpdk.org (Postfix) with ESMTP id D045C1B9B7
 for <dev@dpdk.org>; Mon,  2 Dec 2019 16:42:02 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
 s=mimecast20190719; t=1575301322;
 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=CeF+CjR51GGyKB9W+Sav3deyxrn+JSL1kVPSO3depL4=;
 b=W83VFS+87/u3gLIDC/iAZsLCQcNnvvf8khIIVxLMx7h5XY5U8CUEc2S0+yxTcPWnGLQyuk
 SNfOkYR3xIXTQJifiLNHFBDTDUduGlwjX78xnwKHcIbY1OGmZA4cPxh9ZlhwJ90EkcOIrR
 Wm/BRFP5ZO0ecsA3CxFUFnL2oEMeYo8=
Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com
 [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id
 us-mta-25-EkYGFuxeN2GZGOm1DUvyCA-1; Mon, 02 Dec 2019 10:41:59 -0500
Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com
 [10.5.11.12])
 (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by mimecast-mx01.redhat.com (Postfix) with ESMTPS id E546564A90;
 Mon,  2 Dec 2019 15:41:57 +0000 (UTC)
Received: from dmarchan.remote.csb (ovpn-205-88.brq.redhat.com [10.40.205.88])
 by smtp.corp.redhat.com (Postfix) with ESMTP id 883BB60C05;
 Mon,  2 Dec 2019 15:41:55 +0000 (UTC)
From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org
Cc: aconole@redhat.com, stable@dpdk.org,
 Harini Ramakrishnan <harini.ramakrishnan@microsoft.com>,
 Omar Cardona <ocardona@microsoft.com>, Anand Rawat <anand.rawat@intel.com>,
 Ranjit Menon <ranjit.menon@intel.com>
Date: Mon,  2 Dec 2019 16:41:46 +0100
Message-Id: <20191202154146.10600-1-david.marchand@redhat.com>
In-Reply-To: <20191202153559.9709-1-david.marchand@redhat.com>
References: <20191202153559.9709-1-david.marchand@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12
X-MC-Unique: EkYGFuxeN2GZGOm1DUvyCA-1
X-Mimecast-Spam-Score: 0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable
Subject: [dpdk-dev] [PATCH 1/4] eal/windows: fix cpuset macro name
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org
Sender: "dev" <dev-bounces@dpdk.org>

Fix the name of CPU_SETSIZE in hope we can reuse it in other parts of
the dpdk manipulating some rte_cpuset_t.

Fixes: 4dc2b4d2a4cd ("eal/windows: add headers for compatibility")
Cc: stable@dpdk.org

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
 lib/librte_eal/windows/eal/include/sched.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/librte_eal/windows/eal/include/sched.h b/lib/librte_eal/wi=
ndows/eal/include/sched.h
index 257060594c..29868c93d1 100644
--- a/lib/librte_eal/windows/eal/include/sched.h
+++ b/lib/librte_eal/windows/eal/include/sched.h
@@ -14,8 +14,8 @@
 extern "C" {
 #endif
=20
-#ifndef CPU_SET_SIZE
-#define CPU_SET_SIZE RTE_MAX_LCORE
+#ifndef CPU_SETSIZE
+#define CPU_SETSIZE RTE_MAX_LCORE
 #endif
=20
 #define _BITS_PER_SET (sizeof(long long) * 8)
@@ -26,7 +26,7 @@ extern "C" {
 #define _WHICH_BIT(b) ((b) & (_BITS_PER_SET - 1))
=20
 typedef struct _rte_cpuset_s {
-=09long long _bits[_NUM_SETS(CPU_SET_SIZE)];
+=09long long _bits[_NUM_SETS(CPU_SETSIZE)];
 } rte_cpuset_t;
=20
 #define CPU_SET(b, s) ((s)->_bits[_WHICH_SET(b)] |=3D (1LL << _WHICH_BIT(b=
)))
@@ -35,7 +35,7 @@ typedef struct _rte_cpuset_s {
 =09do {=09=09=09=09=09=09=09=09\
 =09=09unsigned int _i;=09=09=09=09=09\
 =09=09=09=09=09=09=09=09=09\
-=09=09for (_i =3D 0; _i < _NUM_SETS(CPU_SET_SIZE); _i++)=09\
+=09=09for (_i =3D 0; _i < _NUM_SETS(CPU_SETSIZE); _i++)=09=09\
 =09=09=09(s)->_bits[_i] =3D 0LL;=09=09=09=09\
 =09} while (0)
=20
--=20
2.23.0