diff options
Diffstat (limited to 'drivers/net/netxen/netxen_nic_main.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index e1d30d7f2071..33fac32e0d9f 100644 --- a/drivers/net/netxen/netxen_nic_main.c +++ b/drivers/net/netxen/netxen_nic_main.c | |||
@@ -38,7 +38,7 @@ | |||
38 | #include <linux/sysfs.h> | 38 | #include <linux/sysfs.h> |
39 | #include <linux/aer.h> | 39 | #include <linux/aer.h> |
40 | 40 | ||
41 | MODULE_DESCRIPTION("QLogic/NetXen (1/10) GbE Converged Ethernet Driver"); | 41 | MODULE_DESCRIPTION("QLogic/NetXen (1/10) GbE Intelligent Ethernet Driver"); |
42 | MODULE_LICENSE("GPL"); | 42 | MODULE_LICENSE("GPL"); |
43 | MODULE_VERSION(NETXEN_NIC_LINUX_VERSIONID); | 43 | MODULE_VERSION(NETXEN_NIC_LINUX_VERSIONID); |
44 | MODULE_FIRMWARE(NX_UNIFIED_ROMIMAGE_NAME); | 44 | MODULE_FIRMWARE(NX_UNIFIED_ROMIMAGE_NAME); |
@@ -762,8 +762,6 @@ netxen_check_options(struct netxen_adapter *adapter) | |||
762 | if (adapter->fw_version >= NETXEN_VERSION_CODE(4, 0, 222)) | 762 | if (adapter->fw_version >= NETXEN_VERSION_CODE(4, 0, 222)) |
763 | adapter->capabilities = NXRD32(adapter, CRB_FW_CAPABILITIES_1); | 763 | adapter->capabilities = NXRD32(adapter, CRB_FW_CAPABILITIES_1); |
764 | 764 | ||
765 | adapter->flags &= ~NETXEN_NIC_LRO_ENABLED; | ||
766 | |||
767 | if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { | 765 | if (adapter->ahw.port_type == NETXEN_NIC_XGBE) { |
768 | adapter->num_rxd = DEFAULT_RCV_DESCRIPTORS_10G; | 766 | adapter->num_rxd = DEFAULT_RCV_DESCRIPTORS_10G; |
769 | adapter->num_jumbo_rxd = MAX_JUMBO_RCV_DESCRIPTORS_10G; | 767 | adapter->num_jumbo_rxd = MAX_JUMBO_RCV_DESCRIPTORS_10G; |
@@ -990,7 +988,7 @@ __netxen_nic_up(struct netxen_adapter *adapter, struct net_device *netdev) | |||
990 | if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) | 988 | if (NX_IS_REVISION_P3(adapter->ahw.revision_id)) |
991 | netxen_config_intr_coalesce(adapter); | 989 | netxen_config_intr_coalesce(adapter); |
992 | 990 | ||
993 | if (adapter->capabilities & NX_FW_CAPABILITY_HW_LRO) | 991 | if (netdev->features & NETIF_F_LRO) |
994 | netxen_config_hw_lro(adapter, NETXEN_NIC_LRO_ENABLED); | 992 | netxen_config_hw_lro(adapter, NETXEN_NIC_LRO_ENABLED); |
995 | 993 | ||
996 | netxen_napi_enable(adapter); | 994 | netxen_napi_enable(adapter); |
@@ -1277,6 +1275,7 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1277 | int i = 0, err; | 1275 | int i = 0, err; |
1278 | int pci_func_id = PCI_FUNC(pdev->devfn); | 1276 | int pci_func_id = PCI_FUNC(pdev->devfn); |
1279 | uint8_t revision_id; | 1277 | uint8_t revision_id; |
1278 | u32 val; | ||
1280 | 1279 | ||
1281 | if (pdev->revision >= NX_P3_A0 && pdev->revision <= NX_P3_B1) { | 1280 | if (pdev->revision >= NX_P3_A0 && pdev->revision <= NX_P3_B1) { |
1282 | pr_warning("%s: chip revisions between 0x%x-0x%x " | 1281 | pr_warning("%s: chip revisions between 0x%x-0x%x " |
@@ -1352,8 +1351,9 @@ netxen_nic_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
1352 | break; | 1351 | break; |
1353 | } | 1352 | } |
1354 | 1353 | ||
1355 | if (reset_devices) { | 1354 | if (adapter->portnum == 0) { |
1356 | if (adapter->portnum == 0) { | 1355 | val = NXRD32(adapter, NX_CRB_DEV_REF_COUNT); |
1356 | if (val != 0xffffffff && val != 0) { | ||
1357 | NXWR32(adapter, NX_CRB_DEV_REF_COUNT, 0); | 1357 | NXWR32(adapter, NX_CRB_DEV_REF_COUNT, 0); |
1358 | adapter->need_fw_reset = 1; | 1358 | adapter->need_fw_reset = 1; |
1359 | } | 1359 | } |