net/mlx5: optimize stack memory in probe