The name could be confusing, get_queue_max() is to get the maximum number of entries for a virtqueue supported by this device. OK. It might be better to rename it to something like: get_vq_num_max() which is more consistent with the set_vq_num().
The name could be confusing, get_queue_max() is to get the maximum number of entries for a virtqueue supported by this device.