diff options
Diffstat (limited to 'examples/l4fwd/lcore.h')
-rw-r--r-- | examples/l4fwd/lcore.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/l4fwd/lcore.h b/examples/l4fwd/lcore.h index ac2fbbd..7ae1943 100644 --- a/examples/l4fwd/lcore.h +++ b/examples/l4fwd/lcore.h @@ -24,8 +24,8 @@ * IPv4 destination lookup callback. */ static int -lpm4_dst_lookup(void *data, const struct in_addr *addr, - struct tle_dest *res) +lpm4_dst_lookup(void *data, __rte_unused uint64_t sdata, + const struct in_addr *addr, struct tle_dest *res) { int32_t rc; uint32_t idx; @@ -47,8 +47,8 @@ lpm4_dst_lookup(void *data, const struct in_addr *addr, * IPv6 destination lookup callback. */ static int -lpm6_dst_lookup(void *data, const struct in6_addr *addr, - struct tle_dest *res) +lpm6_dst_lookup(void *data, __rte_unused uint64_t sdata, + const struct in6_addr *addr, struct tle_dest *res) { int32_t rc; dpdk_lpm6_idx_t idx; @@ -478,7 +478,7 @@ netfe_lcore_fill(struct lcore_prm prm[RTE_MAX_LCORE], return -EINVAL; } - if (rte_get_master_lcore() != lc && + if (rte_get_main_lcore() != lc && rte_eal_get_lcore_state(lc) == RUNNING) { RTE_LOG(ERR, USER1, "%s(line=%u): lcore %u already in use\n", |