Skip to content

Commit 40a252c

Browse files
elic307iSaeed Mahameed
authored andcommitted
net/mlx5: Fix wrong comment
A control irq may be allocated from the parent device's pool in case there is no SF dedicated pool. This could happen when there are not enough vectors available for SFs. Signed-off-by: Eli Cohen <[email protected]> Reviewed-by: Shay Drory <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Reviewed-by: Jacob Keller <[email protected]>
1 parent b94616d commit 40a252c

File tree

1 file changed

+3
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+3
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/pci_irq.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,9 @@ struct mlx5_irq *mlx5_ctrl_irq_request(struct mlx5_core_dev *dev)
394394
return ERR_PTR(-ENOMEM);
395395
cpumask_copy(req_mask, cpu_online_mask);
396396
if (!mlx5_irq_pool_is_sf_pool(pool)) {
397-
/* In case we are allocating a control IRQ for PF/VF */
397+
/* In case we are allocating a control IRQ from a pci device's pool.
398+
* This can happen also for a SF if the SFs pool is empty.
399+
*/
398400
if (!pool->xa_num_irqs.max) {
399401
cpumask_clear(req_mask);
400402
/* In case we only have a single IRQ for PF/VF */

0 commit comments

Comments
 (0)