[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20230224183659.2a7bfeea@kernel.org>
Date: Fri, 24 Feb 2023 18:36:59 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Nick Child <nnac123@...ux.ibm.com>
Cc: netdev@...r.kernel.org, bjking1@...ux.ibm.com, haren@...ux.ibm.com,
ricklind@...ibm.com
Subject: Re: [PATCH net-next] ibmvnic: Assign XPS map to correct queue index
On Thu, 23 Feb 2023 09:39:44 -0600 Nick Child wrote:
> 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@...ux.ibm.com>
Applied, thanks!
> I am a little surprised that __netif_set_xps_queue() did not complain that some
> index values were greater than the number of tx queues. Though maybe the function
> assumes that the developers are wise enough :)
>
> Should __netif_set_xps_queue() have a check that index < dev->num_tx_queues?
Seems reasonable. Let's wait for the merge window to be over and feel
free to send a patch.
Powered by blists - more mailing lists