net/mlx5: improve stack usage during link update