git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/tap: fix fd leak on creation failure
[dpdk.git]
/
examples
/
l2fwd-event
/
l2fwd_poll.c
diff --git
a/examples/l2fwd-event/l2fwd_poll.c
b/examples/l2fwd-event/l2fwd_poll.c
index
cc96b14
..
2033c65
100644
(file)
--- 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
#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 ||
/* 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++;
poll_rsrc->lcore_queue_conf[rx_lcore_id].n_rx_port ==
rsrc->rx_queue_per_lcore) {
rx_lcore_id++;