net/mlx4_core: use swap() in mlx4_make_profile()