[dpdk-stable] [dpdk-dev] [PATCH] lib/librte_timer:fix corruption with reset

Stephen Hemminger stephen at networkplumber.org
Tue Jul 7 18:09:18 CEST 2020


On Tue,  7 Jul 2020 14:03:20 +0500
Sarosh Arif <sarosh.arif at emumba.com> wrote:

> +	struct rte_timer_data *timer_data;
> +	TIMER_DATA_VALID_GET_OR_ERR_RET(default_data_id, timer_data, -EINVAL);
> +
> +	if (tim->status.state == RTE_TIMER_RUNNING &&	\
> +	(tim->status.owner != (uint16_t)tim_lcore ||	\
> +	tim != timer_data->priv_timer[tim_lcore].running_tim))
> +		return -1;
> +

This is code not a macro.
Look at checkpatch output, no \ in code.


More information about the stable mailing list