[PATCH v4] net/iavf: fix race condition for multi-cores
Zhang, Qi Z
qi.z.zhang at intel.com
Mon May 23 07:17:38 CEST 2022
> -----Original Message-----
> From: Wu, Wenjun1 <wenjun1.wu at intel.com>
> Sent: Monday, May 23, 2022 12:49 PM
> To: dev at dpdk.org; Wu, Jingjing <jingjing.wu at intel.com>; Xing, Beilei
> <beilei.xing at intel.com>; Zhang, Qi Z <qi.z.zhang at intel.com>; Su, Simei
> <simei.su at intel.com>
> Cc: stephen at networkplumber.org; Wu, Wenjun1 <wenjun1.wu at intel.com>
> Subject: [PATCH v4] net/iavf: fix race condition for multi-cores
>
> 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 calculation by itself.
>
> Fixes: 2a0a62f40af5 ("net/iavf: enable Rx timestamp on Flex Descriptor")
> Fixes: 33db16136e55 ("net/iavf: improve performance of Rx timestamp
> offload")
>
> Signed-off-by: Wenjun Wu <wenjun1.wu at intel.com>
Acked-by: Qi Zhang <qi.z.zhang at intel.com>
Applied to dpdk-next-net-intel.
Thanks
Qi
More information about the dev
mailing list