diff options
author | 2022-01-06 16:40:18 +0200 | |
---|---|---|
committer | 2022-02-01 20:59:38 -0800 | |
commit | 04f8c12f031fcd0ffa0c72822eb665ceb2c872e7 (patch) | |
tree | 06268da0b4ae5b41c1f4071a47e06eae3a6fe7c3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch '40GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue (diff) | |
download | linux-dev-04f8c12f031fcd0ffa0c72822eb665ceb2c872e7.tar.xz linux-dev-04f8c12f031fcd0ffa0c72822eb665ceb2c872e7.zip |
net/mlx5: Bridge, take rtnl lock in init error handler
The mlx5_esw_bridge_cleanup() is expected to be called with rtnl lock
taken, which is true for mlx5e_rep_bridge_cleanup() function but not for
error handling code in mlx5e_rep_bridge_init(). Add missing rtnl
lock/unlock calls and extend both mlx5_esw_bridge_cleanup() and its dual
function mlx5_esw_bridge_init() with ASSERT_RTNL() to verify the invariant
from now on.
Fixes: 7cd6a54a8285 ("net/mlx5: Bridge, handle FDB events")
Fixes: 19e9bfa044f3 ("net/mlx5: Bridge, add offload infrastructure")
Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions