From: Michal Jastrzebski Date: Fri, 6 Mar 2015 07:38:59 +0000 (+0100) Subject: app/testpmd: fix bond port creation X-Git-Tag: spdx-start~9475 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=7143d8fd4aa5e59a40078d34b733609d2827e374;p=dpdk.git app/testpmd: fix bond port creation 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 Acked-by: Pablo de Lara --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index c8312beb16..8b0ac85a5f 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; } }