DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] testpmd: bond port creation did not enable bond port
@ 2015-03-06  7:38 Michal Jastrzebski
  2015-03-06 10:32 ` De Lara Guarch, Pablo
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Jastrzebski @ 2015-03-06  7:38 UTC (permalink / raw)
  To: dev

When invoking creation of bonded device using:
create bonded device mode socket in testpmd the bonded port was not 
enabled at the end of cmd_create_bonded_device_parsed function.
This caused commands 'show port info' and 'show port stats' not working 
properly with bonding device. This patch fixed it. 

Signed-off-by: Michal Jastrzebski <michalx.k.jastrzebski@intel.com>
---
 app/test-pmd/cmdline.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index c8312be..8b0ac85 100644
--- a/app/test-pmd/cmdline.c
+++ b/app/test-pmd/cmdline.c
@@ -4050,6 +4050,7 @@ static void cmd_create_bonded_device_parsed(void *parsed_result,
 		nb_ports = rte_eth_dev_count();
 		reconfig(port_id, res->socket);
 		rte_eth_promiscuous_enable(port_id);
+		ports[port_id].enabled = 1;
 	}
 
 }
-- 
1.7.9.5

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

end of thread, other threads:[~2015-03-09 11:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-06  7:38 [dpdk-dev] [PATCH] testpmd: bond port creation did not enable bond port Michal Jastrzebski
2015-03-06 10:32 ` De Lara Guarch, Pablo
2015-03-09  9:12   ` Jiajia, SunX
2015-03-09 10:40   ` Thomas Monjalon

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).