Hi Stephen, >-----Original Message----- >From: Stephen Hemminger <[email protected]> >Sent: Friday, August 13, 2021 9:07 PM >To: Vijay Kumar Srivastava <[email protected]> >Cc: [email protected]; [email protected]; [email protected]; >[email protected]; Vijay Kumar Srivastava <[email protected]> >Subject: Re: [dpdk-dev] [PATCH 01/10] vdpa/sfc: introduce Xilinx vDPA driver > >On Tue, 6 Jul 2021 22:14:09 +0530 >Vijay Srivastava <[email protected]> wrote: > >> +static pthread_mutex_t sfc_vdpa_adapter_list_lock = >PTHREAD_MUTEX_INITIALIZER; >> + > >Why do you need a pthread_mutex when simple DPDK spin lock will do? rte_spinlock_lock is being used in the subsequent patches. Only for the adapter list (sfc_vdpa_adapter_list) pthread_mutex is being used.
Regards, Vijay

