From 7143d8fd4aa5e59a40078d34b733609d2827e374 Mon Sep 17 00:00:00 2001 From: Michal Jastrzebski Date: Fri, 6 Mar 2015 08:38:59 +0100 Subject: [PATCH] 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 --- 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 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; } } -- 2.20.1