]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: use irq_update_affinity_hint()
authorMohammad Heib <mheib@redhat.com>
Wed, 6 Nov 2024 18:08:11 +0000 (20:08 +0200)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Nov 2024 23:31:03 +0000 (15:31 -0800)
commitfcf42409c6e15e47186de8bb051176aaf92c597a
tree448ae9316fbbd43f58d3cd314af80e1d5d8429fd
parent8b9a7bd4d6c83300e50bb1d7071c6032a07e2fed
bnxt_en: use irq_update_affinity_hint()

irq_set_affinity_hint() is deprecated, Use irq_update_affinity_hint()
instead. This removes the side-effect of actually applying the affinity.

The driver does not really need to worry about spreading its IRQs across
CPUs. The core code already takes care of that. when the driver applies the
affinities by itself, it breaks the users' expectations:

 1. The user configures irqbalance with IRQBALANCE_BANNED_CPULIST in
    order to prevent IRQs from being moved to certain CPUs that run a
    real-time workload.

 2. bnxt_en device reopening will resets the affinity
    in bnxt_open().

 3. bnxt_en has no idea about irqbalance's config, so it may move an IRQ to
    a banned CPU. The real-time workload suffers unacceptable latency.

Signed-off-by: Mohammad Heib <mheib@redhat.com>
Reviewed-by: Andy Gospodarek <gospo@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Link: https://patch.msgid.link/20241106180811.385175-1-mheib@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c