add support for FreeBSD 13.1

This commit is contained in:
quackerd 2022-05-17 01:07:18 -04:00
parent 025a453103
commit 597541b76a

View File

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