Hi Maxime, Thanks for the suggestion, I'll send out a new version.
Regards, Xueming Li > -----Original Message----- > From: Maxime Coquelin <maxime.coque...@redhat.com> > Sent: Wednesday, April 20, 2022 11:03 PM > To: Xueming(Steven) Li <xuemi...@nvidia.com>; dev@dpdk.org > Cc: Matan Azrad <ma...@nvidia.com>; Slava Ovsiienko <viachesl...@nvidia.com> > Subject: Re: [PATCH v2 5/7] vdpa/mlx5: cache and reuse hardware resources > > > > On 2/24/22 16:50, Xueming Li wrote: > > During device suspend and resume, resources are not changed normally. > > When huge resources allocated to VM, like huge memory size or lots of > > "When huge resources were allocated" > > > queues, time spent on release and recreate became significant. > > > > To speed up, this patch reuse resoruces like VM MR and VirtQ memory if > > "reuses resources" > > > not changed. > > > > Signed-off-by: Xueming Li <xuemi...@nvidia.com> > > --- > > drivers/vdpa/mlx5/mlx5_vdpa.c | 11 ++++- > > drivers/vdpa/mlx5/mlx5_vdpa.h | 12 ++++- > > drivers/vdpa/mlx5/mlx5_vdpa_mem.c | 27 ++++++++++- > > drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 73 +++++++++++++++++++++-------- > > 4 files changed, 99 insertions(+), 24 deletions(-) > > > > Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com> > > Thanks, > Maxime