]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commit
Windows PV drivers fail to set up RSS when vCPU index >= 8
authorMartin Harvey <Martin.Harvey@citrix.com>
Wed, 23 Mar 2022 10:33:47 +0000 (10:33 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Wed, 23 Mar 2022 17:08:09 +0000 (18:08 +0100)
commiteb83dbd5162d989e4c66966779d056c82ec97dd3
treeecfffd11a4e2248cb38cadc66d6e324a8a837c91
parent0e99483eeb8c01bb868f35f1177444f2e2211f0e
Windows PV drivers fail to set up RSS when vCPU index >= 8

The driver only supports at most 8 queues, however Windows
can decide to assign vCPU numbers starting from a non-zero
offset. E.g. vCPU 8,9,10,11 could get assigned to a device
if you have more than one NIC. The total number of vCPUs
used by a single device is still less than 8, but the vCPU
indexes themselves can be greater than 8. The code
previously incorrectly assumed that individual vCPU
indexes cannot exceed 8, however a 1:1 mapping between
vCPU indexes and queues seems to only exist when using
a single NIC.

Signed-off-by: Martin Harvey <martin.harvey@citrix.com>
Removed unncessary error handling and tidied up.

Signed-off-by: Paul Durrant <paul@xen.org>
src/xenvif/receiver.c