[PATCH] app/flow-perf: replace RTE_BE32/16 with rte_cpu_to_be_32/16 for variables
Wisam Monther
wisamm at nvidia.com
Mon Mar 27 12:29:38 CEST 2023
Hi,
> -----Original Message-----
> From: Harold Huang <baymaxhuang at gmail.com>
> Sent: Sunday, March 12, 2023 4:00 AM
> To: dev at dpdk.org
> Cc: Harold Huang <baymaxhuang at gmail.com>; Wisam Monther
> <wisamm at nvidia.com>
> Subject: [PATCH] app/flow-perf: replace RTE_BE32/16 with
> rte_cpu_to_be_32/16 for variables
>
> In DPDK, the macros RTE_BE32 or RTE_BE16 are usually used for constant
> values. And functions such as rte_cpu_to_be_32 or
> rte_cpu_to_be_16 are optimized for variables.
>
> Signed-off-by: Harold Huang <baymaxhuang at gmail.com>
> ---
> app/test-flow-perf/actions_gen.c | 28 ++++++++++++++--------------
> app/test-flow-perf/items_gen.c | 2 +-
> 2 files changed, 15 insertions(+), 15 deletions(-)
>
Indeed your change is in the correct files and I agree that it's need to be done,
But you are not doing it for all RTE_BE32 and RTE_BE16 in the app or the same files
After quick search I see:
app/test-flow-perf/items_gen.c:12
app/test-flow-perf/actions_gen.c:29
While you are doing the change only for:
app/test-flow-perf/items_gen.c:1
app/test-flow-perf/actions_gen.c:14
Can you please extend your fix for all needed vars.
BRs,
Wisam Jaddo
More information about the dev
mailing list