diff options
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index 68903bf06cf..f1daa9a8be0 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -772,15 +772,22 @@ netxen_check_options(struct netxen_adapter *adapter) | |||
772 | if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { | 772 | if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) { |
773 | adapter->msix_supported = !!use_msi_x; | 773 | adapter->msix_supported = !!use_msi_x; |
774 | adapter->rss_supported = !!use_msi_x; | 774 | adapter->rss_supported = !!use_msi_x; |
775 | } else if (adapter->fw_version >= NETXEN_VERSION_CODE(3, 4, 336)) { | 775 | } else { |
776 | switch (adapter->ahw.board_type) { | 776 | u32 flashed_ver = 0; |
777 | case NETXEN_BRDTYPE_P2_SB31_10G: | 777 | netxen_rom_fast_read(adapter, |
778 | case NETXEN_BRDTYPE_P2_SB31_10G_CX4: | 778 | NX_FW_VERSION_OFFSET, (int *)&flashed_ver); |
779 | adapter->msix_supported = !!use_msi_x; | 779 | flashed_ver = NETXEN_DECODE_VERSION(flashed_ver); |
780 | adapter->rss_supported = !!use_msi_x; | 780 | |
781 | break; | 781 | if (flashed_ver >= NETXEN_VERSION_CODE(3, 4, 336)) { |
782 | default: | 782 | switch (adapter->ahw.board_type) { |
783 | break; | 783 | case NETXEN_BRDTYPE_P2_SB31_10G: |
784 | case NETXEN_BRDTYPE_P2_SB31_10G_CX4: | ||
785 | adapter->msix_supported = !!use_msi_x; | ||
786 | adapter->rss_supported = !!use_msi_x; | ||
787 | break; | ||
788 | default: | ||
789 | break; | ||
790 | } | ||
784 | } | 791 | } |
785 | } | 792 | } |
786 | 793 | ||