]> git.droids-corp.org - dpdk.git/commit
vdpa/mlx5: pre-create virtq at probing time
authorLi Zhang <lizh@nvidia.com>
Sat, 18 Jun 2022 09:02:49 +0000 (12:02 +0300)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 21 Jun 2022 09:18:15 +0000 (11:18 +0200)
commit7f2de21244e2c7754a1510e6cc43a9a9526ef316
tree26f32e2cfba9a1bcfe2746b2bf4676c73e033708
parent2ac90aec21420716e257928409d1359f87db8645
vdpa/mlx5: pre-create virtq at probing time

dev_config operation is called in LM progress.
LM time is very critical because all
the VM packets are dropped directly at that time.

Move the virtq creation to probe time and
only modify the configuration later in
the dev_config stage using the new ability
to modify virtq.

This optimization accelerates the LM process and
reduces its time by 70%.

Signed-off-by: Li Zhang <lizh@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
doc/guides/rel_notes/release_22_07.rst
drivers/vdpa/mlx5/mlx5_vdpa.h
drivers/vdpa/mlx5/mlx5_vdpa_lm.c
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c