]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80ea67f077654645ba97418330fcd4ec053d8427
tree48bcdfb1e9b5039247386be24f4d69fbefefd396
parente40a0c58f7b27e7fba3761b6b5494f8ef2898a61
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: 08893db24614 ("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