]> git.karo-electronics.de Git - linux-beck.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)
commit0fd758d6112f867b2cc6df0f6a856048ff99b211
tree476fe30fe410fa518c6847067ae798926f97b8d3
parentbd77bf1cb595477528f06f5c52f913f70acd73bb
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: 0c56b97503fd ("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