net/mlx5: E-Switch, Enable restore table only if reg_c1 is supported
authorPaul Blakey <paulb@mellanox.com>
Wed, 18 Mar 2020 08:55:12 +0000 (10:55 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Mar 2020 06:18:54 +0000 (23:18 -0700)
commit60acc105cbc23c525ddb6fed595cac4796c0040b
treefd6c6fd8e8862102dad9a00b4de0e6a5e7db8608
parent046826c878bd9c6d0db2de2787ac5dc354b467a2
net/mlx5: E-Switch, Enable restore table only if reg_c1 is supported

Reg c0/c1 matching, rewrite of regs c0/c1, and copy header of regs c1,B
is needed for the restore table to function, might not be supported by
firmware, and creation of the restore table or the copy header will
fail.

Check reg_c1 loopback support, as firmware which supports this,
should have all of the above.

Fixes: 11b717d61526 ("net/mlx5: E-Switch, Get reg_c0 value on CQE")
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c