Re: [dpdk-dev] [PATCH v2] vhost: fix vid allocation race

2021-02-03 Thread Maxime Coquelin
On 2/1/21 9:48 AM, Peng He wrote: > vhost_new_device might be called in different threads at the same time. > thread 1(config thread) > rte_vhost_driver_start >->vhost_user_start_client >->vhost_user_add_connection > -> vhost_n

Re: [dpdk-dev] [PATCH v2] vhost: fix vid allocation race

2021-02-02 Thread Xia, Chenbo
Hi Peng, > -Original Message- > From: Peng He > Sent: Monday, February 1, 2021 4:49 PM > To: dev@dpdk.org; Xia, Chenbo > Cc: sta...@dpdk.org > Subject: [PATCH v2] vhost: fix vid allocation race > > vhost_new_device might be called in different threads at the same time. > thread 1(config

[dpdk-dev] [PATCH v2] vhost: fix vid allocation race

2021-02-01 Thread Peng He
vhost_new_device might be called in different threads at the same time. thread 1(config thread) rte_vhost_driver_start ->vhost_user_start_client ->vhost_user_add_connection -> vhost_new_device thread 2(vhost-events) vhost_u