From: Radu Nicolau Date: Thu, 1 Nov 2018 11:20:32 +0000 (+0000) Subject: app/testpmd: fix port status for new bonded devices X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0ae8071784f353f426fd8ad9bbab2fe0ba39a670;p=dpdk.git app/testpmd: fix port status for new bonded devices Set port status to stopped for newly added devices. Fixes: 2950a769315e ("bond: testpmd support") Cc: stable@dpdk.org Signed-off-by: Radu Nicolau Acked-by: Bernard Iremonger --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index c38367981e..5e08a1b9b9 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -5977,6 +5977,8 @@ static void cmd_create_bonded_device_parsed(void *parsed_result, nb_ports = rte_eth_dev_count_avail(); reconfig(port_id, res->socket); rte_eth_promiscuous_enable(port_id); + ports[port_id].need_setup = 0; + ports[port_id].port_status = RTE_PORT_STOPPED; } }