[PATCH v7 2/6] eal: use request ID instead of pointers

Stephen Hemminger stephen at networkplumber.org
Fri Jun 26 17:08:12 CEST 2026


On Fri, 26 Jun 2026 11:33:57 +0100
Anatoly Burakov <anatoly.burakov at intel.com> wrote:

> @@ -1178,6 +1203,7 @@ rte_mp_request_async(struct rte_mp_msg *req, const struct timespec *ts,
>  	 * it, and put it on the queue if we don't send any requests.
>  	 */
>  	dummy->type = REQUEST_TYPE_ASYNC;
> +	dummy->id = ++next_request_id;
>  	dummy->request = copy;
>  	dummy->reply = NULL;
>  	dummy->async.param = param;
> -- 

Is there any chance of two async requests being generated on different threads.
Would be safer to use an atomic for this?


More information about the dev mailing list