From 597541b76a05f5f727325bb55a91e88dff36a9bd Mon Sep 17 00:00:00 2001 From: quackerd Date: Tue, 17 May 2022 01:07:18 -0400 Subject: [PATCH] add support for FreeBSD 13.1 --- lib/librte_eal/freebsd/include/rte_os.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/lib/librte_eal/freebsd/include/rte_os.h b/lib/librte_eal/freebsd/include/rte_os.h index ecb9d8d801..dcd32bfb5d 100644 --- a/lib/librte_eal/freebsd/include/rte_os.h +++ b/lib/librte_eal/freebsd/include/rte_os.h @@ -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