]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix error handling when adding flow rules
authorVlad Buslov <vladbu@mellanox.com>
Tue, 6 Feb 2018 08:52:19 +0000 (10:52 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 20 Feb 2018 20:53:00 +0000 (12:53 -0800)
commit3f5d322bca6bf77ab3d2dad08591797577602bc6
tree6f65fff261bafdc22a73b564d4d3a454dee184b3
parenta8c5b6094107a3e2219f620fbc7aef145d87263a
net/mlx5: Fix error handling when adding flow rules

If building match list or adding existing fg fails when
node is locked, function returned without unlocking it.
This happened if node version changed or adding existing fg
returned with EAGAIN after jumping to search_again_locked label.

Fixes: c3b2221ab081 ("net/mlx5: Support multiple updates of steering rules in parallel")
Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c