summaryrefslogtreecommitdiff
path: root/examples/l2fwd-cat
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2019-04-09 11:55:38 +0100
committerThomas Monjalon <thomas@monjalon.net>2019-04-17 18:10:34 +0200
commitd51e5ec7b1a52e841f006794a2451266c3209b50 (patch)
tree8926b7a00582ca795910a427ae3467d9592e81f1 /examples/l2fwd-cat
parent9d03815f56876f16997bc7136029842903ee842b (diff)
downloaddpdk-d51e5ec7b1a52e841f006794a2451266c3209b50.zip
dpdk-d51e5ec7b1a52e841f006794a2451266c3209b50.tar.gz
dpdk-d51e5ec7b1a52e841f006794a2451266c3209b50.tar.xz
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 <bruce.richardson@intel.com> Reviewed-by: David Marchand <david.marchand@redhat.com> Acked-by: Luca Boccassi <bluca@debian.org>
Diffstat (limited to 'examples/l2fwd-cat')
-rw-r--r--examples/l2fwd-cat/cat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/l2fwd-cat/cat.c b/examples/l2fwd-cat/cat.c
index a6081e6..502c6b3 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);