eal/windows: fix cpuset macro name
authorDavid Marchand <david.marchand@redhat.com>
Mon, 2 Dec 2019 15:41:46 +0000 (16:41 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 20 Jan 2020 23:39:21 +0000 (00:39 +0100)
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

index 2570605..29868c9 100644 (file)
@@ -14,8 +14,8 @@
 extern "C" {
 #endif
 
-#ifndef CPU_SET_SIZE
-#define CPU_SET_SIZE RTE_MAX_LCORE
+#ifndef CPU_SETSIZE
+#define CPU_SETSIZE RTE_MAX_LCORE
 #endif
 
 #define _BITS_PER_SET (sizeof(long long) * 8)
@@ -26,7 +26,7 @@ extern "C" {
 #define _WHICH_BIT(b) ((b) & (_BITS_PER_SET - 1))
 
 typedef struct _rte_cpuset_s {
-       long long _bits[_NUM_SETS(CPU_SET_SIZE)];
+       long long _bits[_NUM_SETS(CPU_SETSIZE)];
 } rte_cpuset_t;
 
 #define CPU_SET(b, s) ((s)->_bits[_WHICH_SET(b)] |= (1LL << _WHICH_BIT(b)))
@@ -35,7 +35,7 @@ typedef struct _rte_cpuset_s {
        do {                                                            \
                unsigned int _i;                                        \
                                                                        \
-               for (_i = 0; _i < _NUM_SETS(CPU_SET_SIZE); _i++)        \
+               for (_i = 0; _i < _NUM_SETS(CPU_SETSIZE); _i++)         \
                        (s)->_bits[_i] = 0LL;                           \
        } while (0)