diff options
author | Wu Zongyong <wuzongyong@linux.alibaba.com> | 2021-10-29 12:14:45 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-11-01 11:30:35 +0300 |
commit | 3b970a5842c9114c82e60744c84a7d06ee51b6f9 (patch) | |
tree | f66900975c7e1c5bffd7ec67da3b67acfc9db6c1 /drivers/vdpa/vdpa.c | |
parent | 5bbfea1eacdf584d0d159e38c01ee190162706d9 (diff) | |
download | linux-3b970a5842c9114c82e60744c84a7d06ee51b6f9.tar.xz |
vdpa: add new callback get_vq_num_min in vdpa_config_ops
This callback is optional. For vdpa devices that not support to change
virtqueue size, get_vq_num_min and get_vq_num_max will return the same
value, so that users can choose a correct value for that device.
Suggested-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Wu Zongyong <wuzongyong@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Link: https://lore.kernel.org/r/f4af5b0abd660d9a29ab6b2f67bd6df10284a230.1635493219.git.wuzongyong@linux.alibaba.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vdpa/vdpa.c')
0 files changed, 0 insertions, 0 deletions