]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95d3b3afc06a92218cc03f9518c3c27d9b2f518d
tree6c5bd1fe59cb38ad96f1d42704e58525ce4c69eb
parentfe86851d613965b0713758a14ecebd81e7b6e2bf
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