]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-event/l2fwd_poll.c
examples/fips_validation: fix string token for CT length
[dpdk.git] / examples / l2fwd-event / l2fwd_poll.c
index cc96b14cb624579e654066492763e7e4c8ee6f87..2033c65e54b1199c34c2844943050ef9e0ccc1b1 100644 (file)
@@ -1,3 +1,7 @@
+/* SPDX-License-Identifier: BSD-3-Clause
+ * Copyright(C) 2019 Marvell International Ltd.
+ */
+
 #include "l2fwd_poll.h"
 
 static inline void
@@ -112,6 +116,7 @@ l2fwd_poll_lcore_config(struct l2fwd_resources *rsrc)
 
                /* get the lcore_id for this port */
                while (rte_lcore_is_enabled(rx_lcore_id) == 0 ||
+                      rx_lcore_id == rte_get_master_lcore() ||
                       poll_rsrc->lcore_queue_conf[rx_lcore_id].n_rx_port ==
                       rsrc->rx_queue_per_lcore) {
                        rx_lcore_id++;