From: Pavan Nikhilesh Date: Mon, 3 Feb 2020 04:46:18 +0000 (+0530) Subject: examples/l2fwd-event: fix core allocation in poll mode X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c3a09b17db781469e7fe321e6babb1bda1dd91e6;p=dpdk.git examples/l2fwd-event: fix core allocation in poll mode Skip master lcore when assigning cores to rx_queues as it is only used to print stats. Fixes: 4ff457986f76 ("examples/l2fwd-event: add default poll mode routines") Cc: stable@dpdk.org Signed-off-by: Pavan Nikhilesh --- diff --git a/examples/l2fwd-event/l2fwd_poll.c b/examples/l2fwd-event/l2fwd_poll.c index a3a3835582..2033c65e54 100644 --- a/examples/l2fwd-event/l2fwd_poll.c +++ b/examples/l2fwd-event/l2fwd_poll.c @@ -116,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++;