net/mlx5: Add forward compatible support for the FTE match data
authorYishai Hadas <yishaih@mellanox.com>
Tue, 19 Jun 2018 12:09:48 +0000 (15:09 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Tue, 24 Jul 2018 05:50:30 +0000 (08:50 +0300)
commit2aada6c0c96e55e3b3f5024d164b9575382de6b8
tree73cc2583c415ac96adbef38c786f6c0584b48df4
parent048f31437ac5da336cf08e13f5fdc8add6a9bb16
net/mlx5: Add forward compatible support for the FTE match data

Use the PRM size including the reserved when working with the FTE
match data.

This comes to support forward compatibility for cases that current
reserved data will be exposed by the firmware by an application that
uses the DEVX API without changing the kernel.

Also drop some driver checks around the match criteria leaving the work
for firmware to enable forward compatibility for future bits there.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c