vdpa/mlx5: support queue state operation
authorMatan Azrad <matan@mellanox.com>
Sun, 2 Feb 2020 16:03:49 +0000 (16:03 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 5 Feb 2020 08:51:21 +0000 (09:51 +0100)
commitaf72fdb546d5e8f7315fa25b7a47ab5450fe9bee
tree38c86677c40ccf776078d4a5bc5b7ea14dc89819
parenta5a1d98ddcc87eba930096a398ce23e92cf953ac
vdpa/mlx5: support queue state operation

Add support for set_vring_state operation.

Using DevX API the virtq state can be changed as described in PRM:
enable - move to ready state.
disable - move to suspend state.

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