Signed-off-by: Isaac Boukris <ibouk...@gmail.com> --- app/dumpcap/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/app/dumpcap/main.c b/app/dumpcap/main.c index d57db0589a..88cec43086 100644 --- a/app/dumpcap/main.c +++ b/app/dumpcap/main.c @@ -830,11 +830,12 @@ static void enable_pdump(struct rte_ring *r, struct rte_mempool *mp) intf->opts.promisc_mode = false; } else { ret = rte_eth_promiscuous_enable(intf->port); - if (ret != 0) + if (ret != 0) { fprintf(stderr, "port %u set promiscuous enable failed: %d\n", intf->port, ret); - intf->opts.promisc_mode = false; + intf->opts.promisc_mode = false; + } } } ++count; -- 2.43.2