]> 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)
commit2f454d618ddbc87fdb8015d14e4870d1a6940b31
tree48bcdfb1e9b5039247386be24f4d69fbefefd396
parent37e166ff8efda87aa282daf19894549afd9b5edd
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: ec8fe1917c64 ("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