summaryrefslogtreecommitdiff
path: root/examples/ipv4_multicast
diff options
context:
space:
mode:
authorIntel <intel.com>2013-06-03 00:00:00 +0000
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-09-17 14:16:09 +0200
commitcdfd5dbb90b05e198b436f97f0ba320d7cd7d8ad (patch)
treea9a26c2b7b4dc9f2f64acb2ee9c2efa268f10671 /examples/ipv4_multicast
parent5c95261dbf79b5b03314b5477a3f3088a6934796 (diff)
downloaddpdk-cdfd5dbb90b05e198b436f97f0ba320d7cd7d8ad.zip
dpdk-cdfd5dbb90b05e198b436f97f0ba320d7cd7d8ad.tar.gz
dpdk-cdfd5dbb90b05e198b436f97f0ba320d7cd7d8ad.tar.xz
examples: work only on defined lcores
Signed-off-by: Intel
Diffstat (limited to 'examples/ipv4_multicast')
-rw-r--r--examples/ipv4_multicast/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c
index 3b91011..f9304d1 100644
--- a/examples/ipv4_multicast/main.c
+++ b/examples/ipv4_multicast/main.c
@@ -464,7 +464,7 @@ send_timeout_burst(struct lcore_queue_conf *qconf)
}
/* main processing loop */
-static __attribute__((noreturn)) int
+static int
main_loop(__rte_unused void *dummy)
{
struct rte_mbuf *pkts_burst[MAX_PKT_BURST];
@@ -480,7 +480,7 @@ main_loop(__rte_unused void *dummy)
if (qconf->n_rx_queue == 0) {
RTE_LOG(INFO, IPv4_MULTICAST, "lcore %u has nothing to do\n",
lcore_id);
- while(1);
+ return 0;
}
RTE_LOG(INFO, IPv4_MULTICAST, "entering main loop on lcore %u\n",