[dpdk-stable] [18.08] app/testpmd: fix port status for new bonded devices
Kevin Traynor
ktraynor at redhat.com
Mon Nov 26 17:44:03 CET 2018
On 11/23/2018 11:12 AM, Radu Nicolau wrote:
> [ backported from upstream commit 0ae8071784f353f426fd8ad9bbab2fe0ba39a670 ]
>
Got it, thanks
> Set port status to stopped for newly added devices.
>
> Fixes: 2950a769315e ("bond: testpmd support")
>
> Signed-off-by: Radu Nicolau <radu.nicolau at intel.com>
> Acked-by: Bernard Iremonger <bernard.iremonger at 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 f71d963..6561783 100644
> --- a/app/test-pmd/cmdline.c
> +++ b/app/test-pmd/cmdline.c
> @@ -5296,6 +5296,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].port_status = RTE_PORT_STOPPED;
> }
>
> }
>
More information about the stable
mailing list