Re: [dpdk-dev] [PATCH] net/mlx5: optimize critical section in device free

2020-07-22 Thread Raslan Darawsheh
Hi, > -Original Message- > From: dev On Behalf Of Michael Baum > Sent: Tuesday, July 21, 2020 3:04 PM > To: dev@dpdk.org > Cc: Matan Azrad ; Slava Ovsiienko > > Subject: [dpdk-dev] [PATCH] net/mlx5: optimize critical section in device free > > When PMD releas

[dpdk-dev] [PATCH] net/mlx5: optimize critical section in device free

2020-07-21 Thread Michael Baum
When PMD releases shared IB device context, It locks the mlx5_ibv_list_mutex lock throughout the function so that it does not happen while removing a device from the list, another process will try to insert another device into it. On the other hand, having removed the device from the list even if i