Commit 083ba279 authored by Amit Kumar Salecha's avatar Amit Kumar Salecha Committed by David S. Miller

netxen: fix interrupt for NX2031

Signed-off-by: default avatarAmit Kumar Salecha <amit.salecha@qlogic.com>

For NX2031, msix is supported from fw version > 3.4.336.
This fw version check should take flash fw in consider instead of
running fw or fw from file.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e270299a
...@@ -772,15 +772,22 @@ netxen_check_options(struct netxen_adapter *adapter) ...@@ -772,15 +772,22 @@ netxen_check_options(struct netxen_adapter *adapter)
if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) {
adapter->msix_supported = !!use_msi_x; adapter->msix_supported = !!use_msi_x;
adapter->rss_supported = !!use_msi_x; adapter->rss_supported = !!use_msi_x;
} else if (adapter->fw_version >= NETXEN_VERSION_CODE(3, 4, 336)) { } else {
switch (adapter->ahw.board_type) { u32 flashed_ver = 0;
case NETXEN_BRDTYPE_P2_SB31_10G: netxen_rom_fast_read(adapter,
case NETXEN_BRDTYPE_P2_SB31_10G_CX4: NX_FW_VERSION_OFFSET, (int *)&flashed_ver);
adapter->msix_supported = !!use_msi_x; flashed_ver = NETXEN_DECODE_VERSION(flashed_ver);
adapter->rss_supported = !!use_msi_x;
break; if (flashed_ver >= NETXEN_VERSION_CODE(3, 4, 336)) {
default: switch (adapter->ahw.board_type) {
break; case NETXEN_BRDTYPE_P2_SB31_10G:
case NETXEN_BRDTYPE_P2_SB31_10G_CX4:
adapter->msix_supported = !!use_msi_x;
adapter->rss_supported = !!use_msi_x;
break;
default:
break;
}
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment