app/testpmd: fix port status for new bonded devices
Checks
Commit Message
Set port status to stopped for newly added devices.
Fixes: 2950a769315e ("bond: testpmd support")
Cc: stable@dpdk.org
Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
---
app/test-pmd/cmdline.c | 2 ++
1 file changed, 2 insertions(+)
Comments
> -----Original Message-----
> From: Nicolau, Radu
> Sent: Thursday, November 1, 2018 11:21 AM
> To: dev@dpdk.org
> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing
> <jingjing.wu@intel.com>; Iremonger, Bernard <bernard.iremonger@intel.com>;
> Doherty, Declan <declan.doherty@intel.com>; chas3@att.com; Nicolau, Radu
> <radu.nicolau@intel.com>; stable@dpdk.org
> Subject: [PATCH] app/testpmd: fix port status for new bonded devices
>
> Set port status to stopped for newly added devices.
>
> Fixes: 2950a769315e ("bond: testpmd support")
> Cc: stable@dpdk.org
>
> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
On 11/1/2018 12:11 PM, Iremonger, Bernard wrote:
>> -----Original Message-----
>> From: Nicolau, Radu
>> Sent: Thursday, November 1, 2018 11:21 AM
>> To: dev@dpdk.org
>> Cc: Lu, Wenzhuo <wenzhuo.lu@intel.com>; Wu, Jingjing
>> <jingjing.wu@intel.com>; Iremonger, Bernard <bernard.iremonger@intel.com>;
>> Doherty, Declan <declan.doherty@intel.com>; chas3@att.com; Nicolau, Radu
>> <radu.nicolau@intel.com>; stable@dpdk.org
>> Subject: [PATCH] app/testpmd: fix port status for new bonded devices
>>
>> Set port status to stopped for newly added devices.
>>
>> Fixes: 2950a769315e ("bond: testpmd support")
>> Cc: stable@dpdk.org
>>
>> Signed-off-by: Radu Nicolau <radu.nicolau@intel.com>
>
> Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
Applied to dpdk-next-net/master, thanks.
@@ -5976,6 +5976,8 @@ static void cmd_create_bonded_device_parsed(void *parsed_result,
nb_ports = rte_eth_dev_count_avail();
reconfig(port_id, res->socket);
rte_eth_promiscuous_enable(port_id);
+ ports[port_id].need_setup = 0;
+ ports[port_id].port_status = RTE_PORT_STOPPED;
}
}