net/mlx5: E-Switch, Enable chains only if regs loopback is enabled
authorPaul Blakey <paulb@mellanox.com>
Wed, 18 Mar 2020 09:43:06 +0000 (11:43 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 26 Mar 2020 06:18:57 +0000 (23:18 -0700)
commit7983a675ba65c5f8dae7532dcd91a40adc237da8
tree6c5bd1fe59cb38ad96f1d42704e58525ce4c69eb
parent60acc105cbc23c525ddb6fed595cac4796c0040b
net/mlx5: E-Switch, Enable chains only if regs loopback is enabled

Register c0 loopback is needed to fully support chains and prios.

Enable chains and prio only if loopback (of reg c1 which came together
with c0), is enabled. To be able to check that, move enabling of loopback
before eswitch chains init.

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
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c