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 37C7BA04B5 for ; Mon, 2 Dec 2019 16:42:03 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1AE6A1BDFD; Mon, 2 Dec 2019 16:42:03 +0100 (CET) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 1BBF81B9B7 for ; Mon, 2 Dec 2019 16:42:01 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575301320; 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=CIgktmFGMNIy+oWhBTLIeJAnFVx/+2hu0ZpsT9c8FimVTZkzDClYDaAINYtKvZVLc1RDZT Z1i+lEN7lXBlsT52VKujLTbkrw+tUx+0KR7Xe597ORAgKetMFxmOuIr0+MFN90/UcMJOra Cxhwul5qFWBNRoWOn5okXcH51ZbFYQU= 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 To: dev@dpdk.org Cc: aconole@redhat.com, stable@dpdk.org, Harini Ramakrishnan , Omar Cardona , Anand Rawat , Ranjit Menon 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-stable] [PATCH 1/4] eal/windows: fix cpuset macro name X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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 --- 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