]> 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)
commitbee2629f5f81f3a0b26b9e0a3c7d9d6e8a5e7ae3
tree476fe30fe410fa518c6847067ae798926f97b8d3
parent6a1245c9166ae62fb54fa90a65f12ce9865b0891
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: 49028cad2eee ("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