summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadu Nicolau <radu.nicolau@intel.com>2018-11-01 11:20:32 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2018-11-05 15:01:25 +0100
commit0ae8071784f353f426fd8ad9bbab2fe0ba39a670 (patch)
tree2a6c4e44cf18bb7fd0cfc3e0394f9cbf2b3bafc4
parent25b85ae5db74820aab71e07f88e01c3d93932eff (diff)
downloaddpdk-0ae8071784f353f426fd8ad9bbab2fe0ba39a670.zip
dpdk-0ae8071784f353f426fd8ad9bbab2fe0ba39a670.tar.gz
dpdk-0ae8071784f353f426fd8ad9bbab2fe0ba39a670.tar.xz
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 <radu.nicolau@intel.com> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
-rw-r--r--app/test-pmd/cmdline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index c383679..5e08a1b 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;
}
}