[dpdk-dev] [PATCH v3 1/2] eal: fix side effects in align mul macros

Stephen Hemminger stephen at networkplumber.org
Tue Jul 4 18:01:26 CEST 2023


On Tue, 11 May 2021 01:10:06 +0530
<pbhagavatula at marvell.com> wrote:

> Avoid expanding parameters inside the macro multiple times.
> For example:
> 	RTE_ALIGN_MUL_NEAR(rte_rdtsc() - start, CYC_PER_10MHZ);
> Here rte_rdtsc() call is expanded multiple times in the macro
> causing it to return different values that leads to unintended
> side effects.

This was already fixed.


More information about the dev mailing list