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

Stephen Hemminger stephen at networkplumber.org
Thu May 19 17:27:21 CEST 2022


On Thu, 19 May 2022 15:33:34 +0800
Wenjun Wu <wenjun1.wu at intel.com> wrote:

>  
> +	if (dev->data->dev_conf.rxmode.offloads &
> +	    RTE_ETH_RX_OFFLOAD_TIMESTAMP)
> +		rte_spinlock_init(&vf->phc_time_aq_lock);
> +

There is no reason this init needs to be only true with some flags.
Just always do it.


More information about the dev mailing list