X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl2fwd-event%2Fl2fwd_poll.c;h=2033c65e54b1199c34c2844943050ef9e0ccc1b1;hb=b1ea86a07cbce6d5b0a9b05a4e0c0fbbe56ad20d;hp=cc96b14cb624579e654066492763e7e4c8ee6f87;hpb=4ff457986f760a9d96a2bc82e3f24f2817cd33aa;p=dpdk.git diff --git a/examples/l2fwd-event/l2fwd_poll.c b/examples/l2fwd-event/l2fwd_poll.c index cc96b14cb6..2033c65e54 100644 --- a/examples/l2fwd-event/l2fwd_poll.c +++ b/examples/l2fwd-event/l2fwd_poll.c @@ -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++;