If domain config contains "rss" and/or "rss_hash_report" options for driver. Also if the qemu has device capabilities for RSS. Libvirt will create an NIC device command line with enabled "rss"/"hash". Signed-off-by: Andrew Melnychenko <andrew@xxxxxxxxxx> --- src/qemu/qemu_command.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 156af4caee..67a396a513 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -3495,6 +3495,16 @@ qemuBuildNicDevStr(virDomainDef *def, if (net->driver.virtio.tx_queue_size) virBufferAsprintf(&buf, ",tx_queue_size=%u", net->driver.virtio.tx_queue_size); + if (net->driver.virtio.rss == VIR_TRISTATE_SWITCH_ON) { + virBufferAsprintf(&buf, ",rss=%s", + virTristateSwitchTypeToString(net->driver.virtio.rss)); + } + + if (net->driver.virtio.rss_hash_report == VIR_TRISTATE_SWITCH_ON) { + virBufferAsprintf(&buf, ",hash=%s", + virTristateSwitchTypeToString(net->driver.virtio.rss_hash_report)); + } + if (net->mtu) virBufferAsprintf(&buf, ",host_mtu=%u", net->mtu); -- 2.31.1