DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] app/testpmd: fix port status for new bonded devices
@ 2018-11-01 11:20 Radu Nicolau
  2018-11-01 12:11 ` Iremonger, Bernard
  0 siblings, 1 reply; 3+ messages in thread
From: Radu Nicolau @ 2018-11-01 11:20 UTC (permalink / raw)
  To: dev
  Cc: wenzhuo.lu, jingjing.wu, bernard.iremonger, declan.doherty,
	chas3, Radu Nicolau, stable

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>
---
 app/test-pmd/cmdline.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 1050fde..a29c6cc 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -5976,6 +5976,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;
 	}
 
 }
-- 
2.7.5

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-11-02 20:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-01 11:20 [dpdk-dev] [PATCH] app/testpmd: fix port status for new bonded devices Radu Nicolau
2018-11-01 12:11 ` Iremonger, Bernard
2018-11-02 20:37   ` [dpdk-dev] [dpdk-stable] " Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).