]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Fix steering memory leak
authorMaor Gottlieb <maorg@mellanox.com>
Tue, 5 Dec 2017 11:45:21 +0000 (13:45 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 19 Dec 2017 21:24:04 +0000 (23:24 +0200)
commitf5a9deed2236d301b03c6577f6097477f23af6ea
tree434287d248e440eadfc4ce5a328bdf38f7f77ad4
parent3816b343786b283a43183371e6a1107b129592e1
net/mlx5: Fix steering memory leak

Flow steering priority and namespace are software only objects that
didn't have the proper destructors and were not freed during steering
cleanup.

Fix it by adding destructor functions for these objects.

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