]> git.droids-corp.org - dpdk.git/blobdiff - examples/eventdev_pipeline/main.c
test/telemetry: fix typo at beginning of line
[dpdk.git] / examples / eventdev_pipeline / main.c
index 4ac5821539f405a8b4017f6e9a15aa9d628fc29c..823f8b51c22a960af8d3d4f9b27cee04afb8f025 100644 (file)
@@ -296,7 +296,8 @@ signal_handler(int signum)
                RTE_ETH_FOREACH_DEV(portid) {
                        rte_event_eth_rx_adapter_stop(portid);
                        rte_event_eth_tx_adapter_stop(portid);
-                       rte_eth_dev_stop(portid);
+                       if (rte_eth_dev_stop(portid) < 0)
+                               printf("Failed to stop port %u", portid);
                }
 
                rte_eal_mp_wait_lcore();
@@ -395,7 +396,7 @@ main(int argc, char **argv)
        }
 
        int worker_idx = 0;
-       RTE_LCORE_FOREACH_SLAVE(lcore_id) {
+       RTE_LCORE_FOREACH_WORKER(lcore_id) {
                if (lcore_id >= MAX_NUM_CORE)
                        break;