ibmvnic: Update XPS assignments during affinity binding
authorNick Child <nnac123@linux.ibm.com>
Thu, 10 Nov 2022 21:32:18 +0000 (15:32 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Nov 2022 10:47:07 +0000 (10:47 +0000)
commitdf8f66d02df7b44516635edbc8c17b1311cfa0d8
tree3a1bccf3406fd5b21789491d0f632bda8c1e3e75
parent92125c3a602454824d70edb1b2abb382811cab4f
ibmvnic: Update XPS assignments during affinity binding

Transmit Packet Steering (XPS) maps cpu numbers to transmit
queues. By running the same connection on the same set of cpu's,
contention for the queue and cache miss rate can be minimized.
When assigning a cpu mask for a tranmit queues irq number, assign
the same cpu mask as the set of cpu's that XPS should use for that
queue.

Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: Dany Madden <drt@linux.ibm.com>
Signed-off-by: Nick Child <nnac123@linux.ibm.com>
Reviewed-by: Rick Lindsley <ricklind@linux.ibm.com>
Reviewed-by: Haren Myneni <haren@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c