Hi Stephen, >-----Original Message----- >From: Stephen Hemminger <step...@networkplumber.org> >Sent: Friday, August 13, 2021 9:07 PM >To: Vijay Kumar Srivastava <vsriv...@xilinx.com> >Cc: dev@dpdk.org; maxime.coque...@redhat.com; chenbo....@intel.com; >andrew.rybche...@oktetlabs.ru; Vijay Kumar Srivastava <vsriv...@xilinx.com> >Subject: Re: [dpdk-dev] [PATCH 01/10] vdpa/sfc: introduce Xilinx vDPA driver > >On Tue, 6 Jul 2021 22:14:09 +0530 >Vijay Srivastava <vijay.srivast...@xilinx.com> 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