app/testpmd: fix port status for new bonded devices
Set port status to stopped for newly added devices.
Fixes: 2950a76931
("bond: testpmd support")
Cc: stable@dpdk.org
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
This commit is contained in:
parent
25b85ae5db
commit
0ae8071784
@ -5977,6 +5977,8 @@ static void cmd_create_bonded_device_parsed(void *parsed_result,
|
|||||||
nb_ports = rte_eth_dev_count_avail();
|
nb_ports = rte_eth_dev_count_avail();
|
||||||
reconfig(port_id, res->socket);
|
reconfig(port_id, res->socket);
|
||||||
rte_eth_promiscuous_enable(port_id);
|
rte_eth_promiscuous_enable(port_id);
|
||||||
|
ports[port_id].need_setup = 0;
|
||||||
|
ports[port_id].port_status = RTE_PORT_STOPPED;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user