[dpdk-dev] [PATCH 1/6] ring: change head and tail to pointer-width size

Burakov, Anatoly anatoly.burakov at intel.com
Fri Jan 11 11:40:19 CET 2019


<...>

> + * Copyright(c) 2016-2019 Intel Corporation
>    */
>   
>   /**
> @@ -88,7 +88,7 @@ rte_event_ring_enqueue_burst(struct rte_event_ring *r,
>   		const struct rte_event *events,
>   		unsigned int n, uint16_t *free_space)
>   {
> -	uint32_t prod_head, prod_next;
> +	uintptr_t prod_head, prod_next;

I would also question the use of uinptr_t. I think semnatically, size_t 
is more appropriate.

-- 
Thanks,
Anatoly


More information about the dev mailing list