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

2022-05-18 Thread Stephen Hemminger
On Thu, 19 May 2022 09:19:59 +0800 Wenjun Wu wrote: > if (dev->data->dev_conf.rxmode.offloads & > - RTE_ETH_RX_OFFLOAD_TIMESTAMP) { > - if (iavf_get_phc_time(adapter)) { > - PMD_DRV_LOG(ERR, "get physical time failed"); > - goto er

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

2022-05-18 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