Skip to content

Commit 6f2ce45

Browse files
Nick Childkuba-moo
authored andcommitted
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: 6831582 ("ibmvnic: Toggle between queue types in affinity mapping") Signed-off-by: Nick Child <[email protected]> Reviewed-by: Pavan Chebbi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent bce9045 commit 6f2ce45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/ibm/ibmvnic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,10 @@ static void ibmvnic_set_affinity(struct ibmvnic_adapter *adapter)
296296

297297
rc = __netif_set_xps_queue(adapter->netdev,
298298
cpumask_bits(queue->affinity_mask),
299-
i, XPS_CPUS);
299+
i_txqs - 1, XPS_CPUS);
300300
if (rc)
301301
netdev_warn(adapter->netdev, "%s: Set XPS on queue %d failed, rc = %d.\n",
302-
__func__, i, rc);
302+
__func__, i_txqs - 1, rc);
303303
}
304304

305305
out:

0 commit comments

Comments
 (0)