1
0
Fork 0
alistair23-linux/drivers/net/ethernet/qlogic
Manish Chopra 760e9fd4f7 netxen_nic: fix MSI/MSI-x interrupts
[ Upstream commit a2bc221b97 ]

For all PCI functions on the netxen_nic adapter, interrupt
mode (INTx or MSI) configuration is dependent on what has
been configured by the PCI function zero in the shared
interrupt register, as these adapters do not support mixed
mode interrupts among the functions of a given adapter.

Logic for setting MSI/MSI-x interrupt mode in the shared interrupt
register based on PCI function id zero check is not appropriate for
all family of netxen adapters, as for some of the netxen family
adapters PCI function zero is not really meant to be probed/loaded
in the host but rather just act as a management function on the device,
which caused all the other PCI functions on the adapter to always use
legacy interrupt (INTx) mode instead of choosing MSI/MSI-x interrupt mode.

This patch replaces that check with port number so that for all
type of adapters driver attempts for MSI/MSI-x interrupt modes.

Fixes: b37eb210c0 ("netxen_nic: Avoid mixed mode interrupts")
Signed-off-by: Manish Chopra <manishc@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Link: https://lore.kernel.org/r/20210107101520.6735-1-manishc@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-01-23 15:57:57 +01:00
..
netxen netxen_nic: fix MSI/MSI-x interrupts 2021-01-23 15:57:57 +01:00
qed qed: fix error return code in qed_iwarp_ll2_start() 2020-11-24 13:28:59 +01:00
qede qede: fix offload for IPIP tunnel packets 2021-01-12 20:16:12 +01:00
qlcnic qlcnic: Fix error code in probe 2020-12-30 11:51:28 +01:00
Kconfig qed: select CONFIG_CRC32 2021-01-17 14:05:36 +01:00
Makefile qlge: Move drivers/net/ethernet/qlogic/qlge/ to drivers/staging/qlge/ 2019-07-23 11:29:40 -07:00
qla3xxx.c net: qlogic: Fix error paths in ql_alloc_large_buffers() 2019-12-31 16:41:27 +01:00
qla3xxx.h