common/mlx5: adjust PRM struct size on Windows
authorTal Shnaiderman <talshn@nvidia.com>
Mon, 28 Dec 2020 09:54:27 +0000 (11:54 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:07 +0000 (16:03 +0100)
commite961c8e31e9660876b16adca596dafe419aa5d1b
tree22fb62c929cb2a35eeefac4d859353ecfc12c4cf
parent7fb1c77b681c4a3b58eb254b9475b862cad799ae
common/mlx5: adjust PRM struct size on Windows

Add reserved size to PRM 'struct mlx5_ifc_fte_match_param_bits' for non
Linux OS.  Windows drivers require this extension since their expected
size should match the actual struct size. Linux drivers do not require
this extension and already use calculations based on the shorter size.
Use a static assert to verify that the PRM fte_match_param struct size
remains correct.

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_prm.h
drivers/common/mlx5/windows/mlx5_glue.c