History

net/mlx5e: Avoid unbounded peer devices when unpairing TC hairpin rules

If the peer device was already unbound, then do not attempt to modify it's resources, otherwise we will crash on dereferencing non-existing device.

Alaa Hleihel committed 8 years ago

Commit 4d8fcf21 parent 43955a46 files · +71 −3Browse files

Showing the changes to include/linux (1 of 6 files). Show all

Unified · Split

include/linux/mlx5/transobj.h+2−0
@@ -90,6 +90,8 @@ struct mlx5_hairpin { · 89 unmodified lines
9090
9191 u32 *rqn;
9292 u32 *sqn;
93+
94+ bool peer_gone;
9395 };
9496
9597 struct mlx5_hairpin *