Merge branch 'releases' of https://git.quacker.org/d/numam-dpdk into releases

This commit is contained in:
quackerd 2022-05-27 04:24:22 +08:00
commit 4f93dbc0c0

View File

@ -17,17 +17,11 @@
typedef cpuset_t rte_cpuset_t; typedef cpuset_t rte_cpuset_t;
#define RTE_CPU_AND(dst, src1, src2) do \ #define RTE_CPU_AND(dst, src1, src2) do \
{ \ { \
cpuset_t tmp; \ CPU_AND(dst, src1, src2); \
CPU_COPY(src1, &tmp); \
CPU_AND(&tmp, src2); \
CPU_COPY(&tmp, dst); \
} while (0) } while (0)
#define RTE_CPU_OR(dst, src1, src2) do \ #define RTE_CPU_OR(dst, src1, src2) do \
{ \ { \
cpuset_t tmp; \ CPU_OR(dst, src1, src2); \
CPU_COPY(src1, &tmp); \
CPU_OR(&tmp, src2); \
CPU_COPY(&tmp, dst); \
} while (0) } while (0)
#define RTE_CPU_FILL(set) CPU_FILL(set) #define RTE_CPU_FILL(set) CPU_FILL(set)
@ -43,10 +37,7 @@ typedef cpuset_t rte_cpuset_t;
#else #else
#define RTE_CPU_NOT(dst, src) do \ #define RTE_CPU_NOT(dst, src) do \
{ \ { \
cpuset_t tmp; \ CPU_ANDNOT(dst, dst, src); \
CPU_FILL(&tmp); \
CPU_ANDNOT(&tmp, src); \
CPU_COPY(&tmp, dst); \
} while (0) } while (0)
#endif #endif