From: Bruce Richardson Date: Tue, 9 Apr 2019 10:55:38 +0000 (+0100) Subject: examples/l2fwd-cat: fix build on FreeBSD X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d51e5ec7b1a52e841f006794a2451266c3209b50;p=dpdk.git examples/l2fwd-cat: fix build on FreeBSD The definition of CPU_AND differs from Linux to BSD, so we need to use RTE_CPU_AND instead. Fixes: f6baccbc2b3b ("examples/l2fwd-cat: add sample application for PQoS CAT and CDP") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson Reviewed-by: David Marchand Acked-by: Luca Boccassi --- diff --git a/examples/l2fwd-cat/cat.c b/examples/l2fwd-cat/cat.c index a6081e6766..502c6b3278 100644 --- a/examples/l2fwd-cat/cat.c +++ b/examples/l2fwd-cat/cat.c @@ -345,7 +345,7 @@ check_cpus_overlapping(void) for (i = 0; i < m_config_count; i++) { for (j = i + 1; j < m_config_count; j++) { - CPU_AND(&mask, + RTE_CPU_AND(&mask, &m_config[i].cpumask, &m_config[j].cpumask);