]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Don't unlock fte while still using it
authorMark Bloch <markb@mellanox.com>
Mon, 5 Sep 2016 10:58:04 +0000 (10:58 +0000)
committerLeon Romanovsky <leon@kernel.org>
Sun, 30 Oct 2016 13:43:14 +0000 (15:43 +0200)
commit1dc2858fbfc7417561af352845f956dfc0d13319
tree476fe30fe410fa518c6847067ae798926f97b8d3
parentd53099114ada0ef748988e326ddd59004ebceb5f
net/mlx5: Don't unlock fte while still using it

When adding a new rule to an fte, we need to hold the fte lock
until we add that rule to the fte and increase the fte ref count.

Fixes: a216b0485768 ("net/mlx5_core: Introduce flow steering API")
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c