[PATCH 5.18 211/339] net/mlx5: Fix mlx5_get_next_dev() peer device matching