net/mlx5: ft: Check prio and chain sanity for ft offload
authorPaul Blakey <paulb@mellanox.com>
Tue, 26 Nov 2019 12:15:00 +0000 (14:15 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 16 Jan 2020 23:48:58 +0000 (15:48 -0800)
commit82270e12544ee76ea9a3117a769a6d466a2e646b
tree26fe27a504beedcf0e77e586f5143b624f7f3d3e
parente66cbc961cfe375f977b3bfae13abec4df8c8521
net/mlx5: ft: Check prio and chain sanity for ft offload

Before changing the chain from original chain to ft offload chain,
make sure user doesn't actually use chains.

While here, normalize the prio range to that which we support.

Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c