[dpdk-dev] [PATCH 25/25] eal: hide shared memory config

Stephen Hemminger stephen at networkplumber.org
Wed May 29 18:40:49 CEST 2019


On Wed, 29 May 2019 17:31:11 +0100
Anatoly Burakov <anatoly.burakov at intel.com> wrote:

> +static inline void
> +rte_eal_mcfg_wait_complete(struct rte_mem_config *mcfg)
> +{
> +	/* wait until shared mem_config finish initialising */
> +	while (mcfg->magic != RTE_MAGIC)
> +		rte_pause();
> +}
>

Not fast path, why is this inline?

> +#endif // EAL_MEMCFG_H

Avoid C++ style comments.


More information about the dev mailing list