Since a virtq configuration may be changed in disable state it is better to recreate a virtq becoming enabled. This series adding this behaviour to the mlx5 driver for vDPA.
v2: 1. Address Maxime comments: - returning -1 for out of range error. - commit massage spelling. 2. rebase. Matan Azrad (3): vdpa/mlx5: manage virtqs by array vdpa/mlx5: separate virtq stop vdpa/mlx5: recreate a virtq becoming enabled drivers/vdpa/mlx5/mlx5_vdpa.c | 47 +++++++-------- drivers/vdpa/mlx5/mlx5_vdpa.h | 54 +++++++++++++++-- drivers/vdpa/mlx5/mlx5_vdpa_lm.c | 57 ++++++++---------- drivers/vdpa/mlx5/mlx5_vdpa_steer.c | 103 ++++++++++++++++---------------- drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 113 +++++++++++++++++++++++++++--------- 5 files changed, 231 insertions(+), 143 deletions(-) -- 1.8.3.1