vdpa/mlx5: separate virtq stop
authorMatan Azrad <matan@mellanox.com>
Sun, 26 Apr 2020 12:07:35 +0000 (12:07 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 5 May 2020 13:54:26 +0000 (15:54 +0200)
commit7497873f23e73e4421ae44c1182c85bf98b0f95b
treeac1b153fa2b1f0cd5a64ec34101000a04b5eb3fb
parentc2eb33aaf967f3fce96d8112a5f515b048a9ce07
vdpa/mlx5: separate virtq stop

In live migration, before logging the virtq, the driver queries the
virtq indexes after moving it to suspend mode.

Separate this method to new function mlx5_vdpa_virtq_stop as a
preparation for reusing.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/mlx5/mlx5_vdpa.h
drivers/vdpa/mlx5/mlx5_vdpa_lm.c
drivers/vdpa/mlx5/mlx5_vdpa_virtq.c