kernel-aes67/drivers/vdpa/ifcvf
Zhu Lingshan 56d61ae558 vDPA/ifcvf: implement vdpa_config_ops.get_vq_num_min
IFCVF HW supports operation with vq size less than the max size,
as the spec required.

This commit implements vdpa_config_ops.get_vq_num_min to report
the minimal size of the virtqueues, which gives vDPA framework
a chance to reduce the vring size.

We need at least one descriptor to be functional, but it is better
no less than 64 to meet ceratin performance requirements.
Actually the framework would allocate at least a PAGE for the vq.

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Message-Id: <20240202163905.8834-11-lingshan.zhu@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2024-03-19 02:45:50 -04:00
..
Makefile
ifcvf_base.c vDPA/ifcvf: get_max_vq_size to return max size 2024-03-19 02:45:50 -04:00
ifcvf_base.h vDPA/ifcvf: implement vdpa_config_ops.get_vq_num_min 2024-03-19 02:45:50 -04:00
ifcvf_main.c vDPA/ifcvf: implement vdpa_config_ops.get_vq_num_min 2024-03-19 02:45:50 -04:00