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 <michalx.k.jastrzebski@intel.com> Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
parent
4468635fdd
commit
7143d8fd4a
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user