]> 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)
commite682ad11b5ff5c9b4eb5eba5d1454842214d79b2
treefd6c6fd8e8862102dad9a00b4de0e6a5e7db8608
parentc908b91bbc500a21a114b772f2f85fcfa8160381
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: d9e1cfef2de9 ("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