git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
examples/l3fwd: support config file for LPM/FIB
[dpdk.git]
/
examples
/
l2fwd-cat
/
cat.c
diff --git
a/examples/l2fwd-cat/cat.c
b/examples/l2fwd-cat/cat.c
index
a6081e6
..
77154c8
100644
(file)
--- 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++) {
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);
&m_config[i].cpumask,
&m_config[j].cpumask);
@@
-872,8
+872,7
@@
cat_fini(void)
#if PQOS_VERSION <= 103
memset(m_sockets, 0, sizeof(m_sockets));
#else
#if PQOS_VERSION <= 103
memset(m_sockets, 0, sizeof(m_sockets));
#else
- if (m_sockets != NULL)
- free(m_sockets);
+ free(m_sockets);
#endif
m_sock_count = 0;
memset(m_config, 0, sizeof(m_config));
#endif
m_sock_count = 0;
memset(m_config, 0, sizeof(m_config));