RE: [PATCH v4] net/iavf: fix race condition for multi-cores

2022-05-22 Thread Zhang, Qi Z
> -Original Message- > From: Wu, Wenjun1 > Sent: Monday, May 23, 2022 12:49 PM > To: dev@dpdk.org; Wu, Jingjing ; Xing, Beilei > ; Zhang, Qi Z ; Su, Simei > > Cc: step...@networkplumber.org; Wu, Wenjun1 > Subject: [PATCH v4] net/iavf: fix race condition for m

[PATCH v4] net/iavf: fix race condition for multi-cores

2022-05-22 Thread Wenjun Wu
In multi-cores cases for RX timestamp offload, if packets arrive too fast, aq command to get phc time will be pended. This patch adds spinlock to fix this issue. To avoid phc time being frequently overwritten, move related variables to iavf_rx_queue structure, and each queue will handle timestamp