Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ibmvnic: Assign XPS map to correct queue index

When setting the XPS map value for TX queues, use the index of the
transmit queue.
Previously, the function was passing the index of the loop that iterates
over all queues (RX and TX). This was causing invalid XPS map values.

Fixes: 6831582937bd ("ibmvnic: Toggle between queue types in affinity mapping")
Signed-off-by: Nick Child <nnac123@linux.ibm.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://lore.kernel.org/r/20230223153944.44969-1-nnac123@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Nick Child and committed by
Jakub Kicinski
6f2ce45f bce90459

+2 -2
+2 -2
drivers/net/ethernet/ibm/ibmvnic.c
··· 296 296 297 297 rc = __netif_set_xps_queue(adapter->netdev, 298 298 cpumask_bits(queue->affinity_mask), 299 - i, XPS_CPUS); 299 + i_txqs - 1, XPS_CPUS); 300 300 if (rc) 301 301 netdev_warn(adapter->netdev, "%s: Set XPS on queue %d failed, rc = %d.\n", 302 - __func__, i, rc); 302 + __func__, i_txqs - 1, rc); 303 303 } 304 304 305 305 out: