> -----Original Message-----
> From: Thomas Monjalon <[email protected]>
> Sent: Sunday, July 19, 2020 13:08
> To: [email protected]
> Cc: Raslan Darawsheh <[email protected]>; Shiri Kuzin
> <[email protected]>; [email protected]; Matan Azrad
> <[email protected]>; Shahaf Shuler <[email protected]>; Slava
> Ovsiienko <[email protected]>; Ray Kinsella <[email protected]>;
> Neil Horman <[email protected]>
> Subject: [PATCH] common/mlx5: fix CPU detection for PCI relaxed ordering
>
> The detection of the CPU was done in a constructor and shared in a global
> variable.
>
> This variable may not be visible in the net PMD because it was not exported
> as part of the .map file.
> It is fixed by exporting a function, which is cleaner than a variable.
>
> By checking the CPU only at the first call of the function, doing the check
> in a
> constructor becomes useless.
> Note: the priority of the constructor was probably irrelevant.
>
> At the same time, the comments are reworded or dropped if useless.
>
> Fixes: 4c204fe5e5d2 ("common/mlx5: disable relaxed ordering in unsuitable
> CPUs")
> Cc: [email protected]
> Cc: [email protected]
>
> Signed-off-by: Thomas Monjalon <[email protected]>
Acked-by: Viacheslav Ovsiienko <[email protected]>