aboutsummaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorXuan Zhuo2022-08-01 14:38:57 +0800
committerMichael S. Tsirkin2022-08-11 04:06:41 -0400
commit762faee5a2678559d3dc09d95f8f2c54cd0466a7 (patch)
tree12ebcbc60dac1024a247552d6fd11fa1aaf933a7 /virt
parentfe3dc04e31aa51f91dc7f741a5f76cc4817eb5b4 (diff)
virtio_net: set the default max ring size by find_vqs()
Use virtio_find_vqs_ctx_size() to specify the maximum ring size of tx, rx at the same time. | rx/tx ring size ------------------------------------------- speed == UNKNOWN or < 10G| 1024 speed < 40G | 4096 speed >= 40G | 8192 Call virtnet_update_settings() once before calling init_vqs() to update speed. Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20220801063902.129329-38-xuanzhuo@linux.alibaba.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions