On 12/10/2019 5:03 PM, Ilya Maximets wrote:
> On 10.12.2019 15:56, Eli Britstein wrote:
>> On 12/10/2019 4:53 PM, Ilya Maximets wrote:
>>> On 08.12.2019 14:22, Eli Britstein wrote:
>>>> Flow deletion and dumping for statistics collection are called from
>>>> different threads. As a pre-step towards collecting HW statistics,
>>>> protect the UFID map by mutex to make it thread safe.
>>>>
>>>> Signed-off-by: Eli Britstein <el...@mellanox.com>
>>>> ---
>>>>    lib/netdev-offload-dpdk.c | 7 ++++++-
>>>>    1 file changed, 6 insertions(+), 1 deletion(-)
>>>>
>>> This patch is not needed as you have to hold global datapath port
>>> mutex while calling netdev-offload-dpdk functions.  This module
>>> is not thread safe at all.
>>>
>>> See 
>>> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F1207077%2F&amp;data=02%7C01%7Celibr%40mellanox.com%7C7882b1cc0bde4a628f1308d77d821054%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C637115869897963087&amp;sdata=WYDwU88eZXD3iSNB9RUyyoNRqC4c8WJhr06%2Fh70%2Fvxw%3D&amp;reserved=0
>>>  .
>> That's right, but in next commits, reading the stats using
>> netdev_flow_get is done from another thread. This commit is a pre-step
>> towards it. see the commit msg.
> You have to hold dp->port_mutex while calling netdev_flow_get().
OK.
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to