net/mlx5: allocate list memory in create function