![virtio vhost 适配器支持 RSS(接收方缩放)](https://linux22.com/image/222623/virtio%20vhost%20%E9%80%82%E9%85%8D%E5%99%A8%E6%94%AF%E6%8C%81%20RSS%EF%BC%88%E6%8E%A5%E6%94%B6%E6%96%B9%E7%BC%A9%E6%94%BE%EF%BC%89.png)
我正在运行 KVM guest(debian buster,内核 v6.1.36),其 vhost 接口配置如下:
<interface type='bridge'>
<mac address='52:54:00:b4:26:1b'/>
<source bridge='ovsbr0'/>
<virtualport type='openvswitch'>
<parameters interfaceid='7002497c-4352-4da9-a686-c039135d5348'/>
</virtualport>
<target dev='eth1'/>
<model type='virtio'/>
<driver name='vhost' queues='8' rx_queue_size='1024' tx_queue_size='1024'/>
<alias name='net1'/>
<address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/>
</interface>
来宾节点显示了对该接口的多队列支持:
$ ethtool -l eth1
Channel parameters for eth1:
Pre-set maximums:
RX: n/a
TX: n/a
Other: n/a
Combined: 8
Current hardware settings:
RX: n/a
TX: n/a
Other: n/a
Combined: 8
但传入流量由唯一的一个队列处理:
$ ethtool -S eth1|egrep "rx_queue_._packets"
rx_queue_0_packets: 0
rx_queue_1_packets: 0
rx_queue_2_packets: 0
rx_queue_3_packets: 1187
rx_queue_4_packets: 0
rx_queue_5_packets: 0
rx_queue_6_packets: 0
rx_queue_7_packets: 1870640
我被告知 RSS 支持对于 virtio 来说有点新,但这里我们在客户 VyOS 系统上有 6.1.36。你们知道是否有办法判断 virtio 虚拟主机适配器是否应该支持 RSS?如果是的话 - 哪个内核版本或/和可能的 qemu 版本?
谢谢你,亚历克斯