Re: [dpdk-dev] [PATCH v2 1/1] net/hinic: use mutex replace spin lock
On 7/5/2019 7:47 AM, Ziyang Xuan wrote: > Using spin lock to protect critical resources > of sending mgmt messages. This will make high > CPU usage for rte_delay_ms when sending mgmt > messages frequently. We can use mutex to protect > the critical resources and usleep to reduce CPU > usage while k
Re: [dpdk-dev] [PATCH v2 1/1] net/hinic: use mutex replace spin lock
2019-07-09
Thread
Xuanziyang (William, Chip Application Design Logic and Hardware Development Dept IT_Products & Solutions)
> On 7/5/2019 7:47 AM, Ziyang Xuan wrote: > > Using spin lock to protect critical resources of sending mgmt > > messages. This will make high CPU usage for rte_delay_ms when sending > > mgmt messages frequently. We can use mutex to protect the critical > > resources and usleep to reduce CPU usage w
Re: [dpdk-dev] [PATCH v2 1/1] net/hinic: use mutex replace spin lock
On 7/5/2019 7:47 AM, Ziyang Xuan wrote: > Using spin lock to protect critical resources > of sending mgmt messages. This will make high > CPU usage for rte_delay_ms when sending mgmt > messages frequently. We can use mutex to protect > the critical resources and usleep to reduce CPU > usage while k
[dpdk-dev] [PATCH v2 1/1] net/hinic: use mutex replace spin lock
Using spin lock to protect critical resources of sending mgmt messages. This will make high CPU usage for rte_delay_ms when sending mgmt messages frequently. We can use mutex to protect the critical resources and usleep to reduce CPU usage while keep functioning properly. Signed-off-by: Ziyang Xua