]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfe86851d613965b0713758a14ecebd81e7b6e2bf
treefd6c6fd8e8862102dad9a00b4de0e6a5e7db8608
parentc02a156084025453fe5c93d11dc2f7537ff86225
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: d8802af9ffdc ("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