net/mlx5: E-Switch: Fix using fwd and modify when firmware doesn't support it
authorPaul Blakey <paulb@mellanox.com>
Sun, 1 Mar 2020 14:12:00 +0000 (16:12 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 18 Mar 2020 02:41:15 +0000 (19:41 -0700)
commit0b3a8b6b53406f2d890cda369aa9d61e30bc4162
tree48bcdfb1e9b5039247386be24f4d69fbefefd396
parent9d3faa51bef05d21e908f2c1bd932a5cfac59b63
net/mlx5: E-Switch: Fix using fwd and modify when firmware doesn't support it

Currently, if firmware doesn't support fwd and modify, driver fails
initializing eswitch chains while entering switchdev mode.

Instead, on such cases, disable the chains and prio feature (as we can't
restore the chain on miss) and the usage of fwd and modify.

Fixes: 8f1e0b97cc70 ("net/mlx5: E-Switch, Mark miss packets with new chain id mapping")
Signed-off-by: Paul Blakey <paulb@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads_chains.c