]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: reinitialize IRQs when MTU is modified
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Mon, 2 Mar 2020 03:07:17 +0000 (22:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:17:42 +0000 (07:17 +0100)
commitae49fc540b9f0a23fae732b61854cf33495cb719
tree2105afa31de645cd29448c2b57b01febbac98a1a
parent03e8c9962720c21f30dd704616d0b9f950270894
bnxt_en: reinitialize IRQs when MTU is modified

[ Upstream commit 6eb554f9c42e178725e119407742072f5304fd01 ]

MTU changes may affect the number of IRQs so we must call
bnxt_close_nic()/bnxt_open_nic() with the irq_re_init parameter
set to true.  The reason is that a larger MTU may require
aggregation rings not needed with smaller MTU.  We may not be
able to allocate the required number of aggregation rings and
so we reduce the number of channels which will change the number
of IRQs.  Without this patch, it may crash eventually in
pci_disable_msix() when the IRQs are not properly unwound.

Fixes: dfe047769e71 ("bnxt_en: New Broadcom ethernet driver.")
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c