[dpdk-dev] [PATCH v5 02/10] eal: add thread attributes

Stephen Hemminger stephen at networkplumber.org
Tue Mar 30 23:14:01 CEST 2021


On Mon, 29 Mar 2021 15:40:32 -0700
Narcisa Ana Maria Vasile <navasile at linux.microsoft.com> wrote:

> +
> +int
> +rte_thread_attr_set_priority(rte_thread_attr_t *thread_attr,
> +			     enum rte_thread_priority priority)
> +{
> +	if (thread_attr == NULL) {
> +		RTE_LOG(DEBUG, EAL,
> +			"Unable to set priority attribute, invalid parameter\n");
> +		return EINVAL;
> +	}
> +
> +	thread_attr->priority = priority;
> +	return 0;
> +}

For Linux, shouldn't this be ENOTSUPP since not supported.


More information about the dev mailing list