Skip to content

Commit b8b9dd5

Browse files
Nitesh Narayan LalKAGA-KOKO
authored andcommitted
be2net: Use irq_update_affinity_hint()
The driver uses irq_set_affinity_hint() to update the affinity_hint mask that is consumed by the userspace to distribute the interrupts. However, under the hood irq_set_affinity_hint() also applies the provided cpumask (if not NULL) as the affinity for the given interrupt which is an undocumented side effect. To remove this side effect irq_set_affinity_hint() has been marked as deprecated and new interfaces have been introduced. Hence, replace the irq_set_affinity_hint() with the new interface irq_update_affinity_hint() that only updates the affinity_hint pointer. Signed-off-by: Nitesh Narayan Lal <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent cb39ca9 commit b8b9dd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/emulex/benet/be_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3491,7 +3491,7 @@ static int be_msix_register(struct be_adapter *adapter)
34913491
if (status)
34923492
goto err_msix;
34933493

3494-
irq_set_affinity_hint(vec, eqo->affinity_mask);
3494+
irq_update_affinity_hint(vec, eqo->affinity_mask);
34953495
}
34963496

34973497
return 0;
@@ -3552,7 +3552,7 @@ static void be_irq_unregister(struct be_adapter *adapter)
35523552
/* MSIx */
35533553
for_all_evt_queues(adapter, eqo, i) {
35543554
vec = be_msix_vec_get(adapter, eqo);
3555-
irq_set_affinity_hint(vec, NULL);
3555+
irq_update_affinity_hint(vec, NULL);
35563556
free_irq(vec, eqo);
35573557
}
35583558

0 commit comments

Comments
 (0)