diff options
author | Emil Tantilov <emil.s.tantilov@intel.com> | 2010-07-01 16:05:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-05 21:50:55 -0400 |
commit | 396e799c3ac29f970c40bde87b76f4652c06df76 (patch) | |
tree | c1eb2f147cd6f9610e90711e96e450ba89cb19df /drivers/net/ixgbe/ixgbe_main.c | |
parent | 4478a9cdf007a0418755a8a4016af8352fb1c1f3 (diff) |
ixgbe: use netif_<level> instead of netdev_<level>
This patch restores the ability to set msglvl through ethtool.
The issue was introduced by:
commit 849c45423c0c108e08d67644728cc9b0ed225fa1
CC: Joe Perches <joe@perches.com>
Reported-by: Joe Perches <joe@perches.com>
Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe_main.c')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 79 |
1 files changed, 41 insertions, 38 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index ebc4b04fdef2..55099a50cca4 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -696,7 +696,7 @@ static inline bool ixgbe_check_tx_hang(struct ixgbe_adapter *adapter, | |||
696 | /* detected Tx unit hang */ | 696 | /* detected Tx unit hang */ |
697 | union ixgbe_adv_tx_desc *tx_desc; | 697 | union ixgbe_adv_tx_desc *tx_desc; |
698 | tx_desc = IXGBE_TX_DESC_ADV(*tx_ring, eop); | 698 | tx_desc = IXGBE_TX_DESC_ADV(*tx_ring, eop); |
699 | e_err("Detected Tx Unit Hang\n" | 699 | e_err(drv, "Detected Tx Unit Hang\n" |
700 | " Tx Queue <%d>\n" | 700 | " Tx Queue <%d>\n" |
701 | " TDH, TDT <%x>, <%x>\n" | 701 | " TDH, TDT <%x>, <%x>\n" |
702 | " next_to_use <%x>\n" | 702 | " next_to_use <%x>\n" |
@@ -812,8 +812,8 @@ static bool ixgbe_clean_tx_irq(struct ixgbe_q_vector *q_vector, | |||
812 | if (adapter->detect_tx_hung) { | 812 | if (adapter->detect_tx_hung) { |
813 | if (ixgbe_check_tx_hang(adapter, tx_ring, i)) { | 813 | if (ixgbe_check_tx_hang(adapter, tx_ring, i)) { |
814 | /* schedule immediate reset if we believe we hung */ | 814 | /* schedule immediate reset if we believe we hung */ |
815 | e_info("tx hang %d detected, resetting adapter\n", | 815 | e_info(probe, "tx hang %d detected, resetting " |
816 | adapter->tx_timeout_count + 1); | 816 | "adapter\n", adapter->tx_timeout_count + 1); |
817 | ixgbe_tx_timeout(adapter->netdev); | 817 | ixgbe_tx_timeout(adapter->netdev); |
818 | } | 818 | } |
819 | } | 819 | } |
@@ -1652,8 +1652,8 @@ static void ixgbe_check_overtemp_task(struct work_struct *work) | |||
1652 | return; | 1652 | return; |
1653 | break; | 1653 | break; |
1654 | } | 1654 | } |
1655 | e_crit("Network adapter has been stopped because it " | 1655 | e_crit(drv, "Network adapter has been stopped because it has " |
1656 | "has over heated. Restart the computer. If the problem " | 1656 | "over heated. Restart the computer. If the problem " |
1657 | "persists, power off the system and replace the " | 1657 | "persists, power off the system and replace the " |
1658 | "adapter\n"); | 1658 | "adapter\n"); |
1659 | /* write to clear the interrupt */ | 1659 | /* write to clear the interrupt */ |
@@ -1667,7 +1667,7 @@ static void ixgbe_check_fan_failure(struct ixgbe_adapter *adapter, u32 eicr) | |||
1667 | 1667 | ||
1668 | if ((adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) && | 1668 | if ((adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) && |
1669 | (eicr & IXGBE_EICR_GPI_SDP1)) { | 1669 | (eicr & IXGBE_EICR_GPI_SDP1)) { |
1670 | e_crit("Fan has stopped, replace the adapter\n"); | 1670 | e_crit(probe, "Fan has stopped, replace the adapter\n"); |
1671 | /* write to clear the interrupt */ | 1671 | /* write to clear the interrupt */ |
1672 | IXGBE_WRITE_REG(hw, IXGBE_EICR, IXGBE_EICR_GPI_SDP1); | 1672 | IXGBE_WRITE_REG(hw, IXGBE_EICR, IXGBE_EICR_GPI_SDP1); |
1673 | } | 1673 | } |
@@ -2153,7 +2153,7 @@ static int ixgbe_request_msix_irqs(struct ixgbe_adapter *adapter) | |||
2153 | handler, 0, adapter->name[vector], | 2153 | handler, 0, adapter->name[vector], |
2154 | adapter->q_vector[vector]); | 2154 | adapter->q_vector[vector]); |
2155 | if (err) { | 2155 | if (err) { |
2156 | e_err("request_irq failed for MSIX interrupt: " | 2156 | e_err(probe, "request_irq failed for MSIX interrupt " |
2157 | "Error: %d\n", err); | 2157 | "Error: %d\n", err); |
2158 | goto free_queue_irqs; | 2158 | goto free_queue_irqs; |
2159 | } | 2159 | } |
@@ -2163,7 +2163,7 @@ static int ixgbe_request_msix_irqs(struct ixgbe_adapter *adapter) | |||
2163 | err = request_irq(adapter->msix_entries[vector].vector, | 2163 | err = request_irq(adapter->msix_entries[vector].vector, |
2164 | ixgbe_msix_lsc, 0, adapter->name[vector], netdev); | 2164 | ixgbe_msix_lsc, 0, adapter->name[vector], netdev); |
2165 | if (err) { | 2165 | if (err) { |
2166 | e_err("request_irq for msix_lsc failed: %d\n", err); | 2166 | e_err(probe, "request_irq for msix_lsc failed: %d\n", err); |
2167 | goto free_queue_irqs; | 2167 | goto free_queue_irqs; |
2168 | } | 2168 | } |
2169 | 2169 | ||
@@ -2349,7 +2349,7 @@ static int ixgbe_request_irq(struct ixgbe_adapter *adapter) | |||
2349 | } | 2349 | } |
2350 | 2350 | ||
2351 | if (err) | 2351 | if (err) |
2352 | e_err("request_irq failed, Error %d\n", err); | 2352 | e_err(probe, "request_irq failed, Error %d\n", err); |
2353 | 2353 | ||
2354 | return err; | 2354 | return err; |
2355 | } | 2355 | } |
@@ -2420,7 +2420,7 @@ static void ixgbe_configure_msi_and_legacy(struct ixgbe_adapter *adapter) | |||
2420 | map_vector_to_rxq(adapter, 0, 0); | 2420 | map_vector_to_rxq(adapter, 0, 0); |
2421 | map_vector_to_txq(adapter, 0, 0); | 2421 | map_vector_to_txq(adapter, 0, 0); |
2422 | 2422 | ||
2423 | e_info("Legacy interrupt IVAR setup done\n"); | 2423 | e_info(hw, "Legacy interrupt IVAR setup done\n"); |
2424 | } | 2424 | } |
2425 | 2425 | ||
2426 | /** | 2426 | /** |
@@ -3316,7 +3316,7 @@ static inline void ixgbe_rx_desc_queue_enable(struct ixgbe_adapter *adapter, | |||
3316 | msleep(1); | 3316 | msleep(1); |
3317 | } | 3317 | } |
3318 | if (k >= IXGBE_MAX_RX_DESC_POLL) { | 3318 | if (k >= IXGBE_MAX_RX_DESC_POLL) { |
3319 | e_err("RXDCTL.ENABLE on Rx queue %d not set within " | 3319 | e_err(drv, "RXDCTL.ENABLE on Rx queue %d not set within " |
3320 | "the polling period\n", rxr); | 3320 | "the polling period\n", rxr); |
3321 | } | 3321 | } |
3322 | ixgbe_release_rx_desc(&adapter->hw, adapter->rx_ring[rxr], | 3322 | ixgbe_release_rx_desc(&adapter->hw, adapter->rx_ring[rxr], |
@@ -3446,7 +3446,7 @@ static int ixgbe_up_complete(struct ixgbe_adapter *adapter) | |||
3446 | } while (--wait_loop && | 3446 | } while (--wait_loop && |
3447 | !(txdctl & IXGBE_TXDCTL_ENABLE)); | 3447 | !(txdctl & IXGBE_TXDCTL_ENABLE)); |
3448 | if (!wait_loop) | 3448 | if (!wait_loop) |
3449 | e_err("Could not enable Tx Queue %d\n", j); | 3449 | e_err(drv, "Could not enable Tx Queue %d\n", j); |
3450 | } | 3450 | } |
3451 | } | 3451 | } |
3452 | 3452 | ||
@@ -3494,7 +3494,7 @@ static int ixgbe_up_complete(struct ixgbe_adapter *adapter) | |||
3494 | if (adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) { | 3494 | if (adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) { |
3495 | u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); | 3495 | u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); |
3496 | if (esdp & IXGBE_ESDP_SDP1) | 3496 | if (esdp & IXGBE_ESDP_SDP1) |
3497 | e_crit("Fan has stopped, replace the adapter\n"); | 3497 | e_crit(drv, "Fan has stopped, replace the adapter\n"); |
3498 | } | 3498 | } |
3499 | 3499 | ||
3500 | /* | 3500 | /* |
@@ -3523,7 +3523,7 @@ static int ixgbe_up_complete(struct ixgbe_adapter *adapter) | |||
3523 | } else { | 3523 | } else { |
3524 | err = ixgbe_non_sfp_link_config(hw); | 3524 | err = ixgbe_non_sfp_link_config(hw); |
3525 | if (err) | 3525 | if (err) |
3526 | e_err("link_config FAILED %d\n", err); | 3526 | e_err(probe, "link_config FAILED %d\n", err); |
3527 | } | 3527 | } |
3528 | 3528 | ||
3529 | for (i = 0; i < adapter->num_tx_queues; i++) | 3529 | for (i = 0; i < adapter->num_tx_queues; i++) |
@@ -3977,12 +3977,12 @@ static inline bool ixgbe_set_fcoe_queues(struct ixgbe_adapter *adapter) | |||
3977 | adapter->num_tx_queues = 1; | 3977 | adapter->num_tx_queues = 1; |
3978 | #ifdef CONFIG_IXGBE_DCB | 3978 | #ifdef CONFIG_IXGBE_DCB |
3979 | if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) { | 3979 | if (adapter->flags & IXGBE_FLAG_DCB_ENABLED) { |
3980 | e_info("FCoE enabled with DCB\n"); | 3980 | e_info(probe, "FCoE enabled with DCB\n"); |
3981 | ixgbe_set_dcb_queues(adapter); | 3981 | ixgbe_set_dcb_queues(adapter); |
3982 | } | 3982 | } |
3983 | #endif | 3983 | #endif |
3984 | if (adapter->flags & IXGBE_FLAG_RSS_ENABLED) { | 3984 | if (adapter->flags & IXGBE_FLAG_RSS_ENABLED) { |
3985 | e_info("FCoE enabled with RSS\n"); | 3985 | e_info(probe, "FCoE enabled with RSS\n"); |
3986 | if ((adapter->flags & IXGBE_FLAG_FDIR_HASH_CAPABLE) || | 3986 | if ((adapter->flags & IXGBE_FLAG_FDIR_HASH_CAPABLE) || |
3987 | (adapter->flags & IXGBE_FLAG_FDIR_PERFECT_CAPABLE)) | 3987 | (adapter->flags & IXGBE_FLAG_FDIR_PERFECT_CAPABLE)) |
3988 | ixgbe_set_fdir_queues(adapter); | 3988 | ixgbe_set_fdir_queues(adapter); |
@@ -4633,8 +4633,8 @@ int ixgbe_init_interrupt_scheme(struct ixgbe_adapter *adapter) | |||
4633 | } | 4633 | } |
4634 | 4634 | ||
4635 | e_dev_info("Multiqueue %s: Rx Queue count = %u, Tx Queue count = %u\n", | 4635 | e_dev_info("Multiqueue %s: Rx Queue count = %u, Tx Queue count = %u\n", |
4636 | (adapter->num_rx_queues > 1) ? "Enabled" : "Disabled", | 4636 | (adapter->num_rx_queues > 1) ? "Enabled" : "Disabled", |
4637 | adapter->num_rx_queues, adapter->num_tx_queues); | 4637 | adapter->num_rx_queues, adapter->num_tx_queues); |
4638 | 4638 | ||
4639 | set_bit(__IXGBE_DOWN, &adapter->state); | 4639 | set_bit(__IXGBE_DOWN, &adapter->state); |
4640 | 4640 | ||
@@ -4711,7 +4711,7 @@ static void ixgbe_sfp_task(struct work_struct *work) | |||
4711 | "supported module.\n"); | 4711 | "supported module.\n"); |
4712 | unregister_netdev(adapter->netdev); | 4712 | unregister_netdev(adapter->netdev); |
4713 | } else { | 4713 | } else { |
4714 | e_info("detected SFP+: %d\n", hw->phy.sfp_type); | 4714 | e_info(probe, "detected SFP+: %d\n", hw->phy.sfp_type); |
4715 | } | 4715 | } |
4716 | /* don't need this routine any more */ | 4716 | /* don't need this routine any more */ |
4717 | clear_bit(__IXGBE_SFP_MODULE_NOT_FOUND, &adapter->state); | 4717 | clear_bit(__IXGBE_SFP_MODULE_NOT_FOUND, &adapter->state); |
@@ -4891,7 +4891,7 @@ int ixgbe_setup_tx_resources(struct ixgbe_adapter *adapter, | |||
4891 | err: | 4891 | err: |
4892 | vfree(tx_ring->tx_buffer_info); | 4892 | vfree(tx_ring->tx_buffer_info); |
4893 | tx_ring->tx_buffer_info = NULL; | 4893 | tx_ring->tx_buffer_info = NULL; |
4894 | e_err("Unable to allocate memory for the Tx descriptor ring\n"); | 4894 | e_err(probe, "Unable to allocate memory for the Tx descriptor ring\n"); |
4895 | return -ENOMEM; | 4895 | return -ENOMEM; |
4896 | } | 4896 | } |
4897 | 4897 | ||
@@ -4913,7 +4913,7 @@ static int ixgbe_setup_all_tx_resources(struct ixgbe_adapter *adapter) | |||
4913 | err = ixgbe_setup_tx_resources(adapter, adapter->tx_ring[i]); | 4913 | err = ixgbe_setup_tx_resources(adapter, adapter->tx_ring[i]); |
4914 | if (!err) | 4914 | if (!err) |
4915 | continue; | 4915 | continue; |
4916 | e_err("Allocation for Tx Queue %u failed\n", i); | 4916 | e_err(probe, "Allocation for Tx Queue %u failed\n", i); |
4917 | break; | 4917 | break; |
4918 | } | 4918 | } |
4919 | 4919 | ||
@@ -4938,7 +4938,8 @@ int ixgbe_setup_rx_resources(struct ixgbe_adapter *adapter, | |||
4938 | if (!rx_ring->rx_buffer_info) | 4938 | if (!rx_ring->rx_buffer_info) |
4939 | rx_ring->rx_buffer_info = vmalloc(size); | 4939 | rx_ring->rx_buffer_info = vmalloc(size); |
4940 | if (!rx_ring->rx_buffer_info) { | 4940 | if (!rx_ring->rx_buffer_info) { |
4941 | e_err("vmalloc allocation failed for the Rx desc ring\n"); | 4941 | e_err(probe, "vmalloc allocation failed for the Rx " |
4942 | "descriptor ring\n"); | ||
4942 | goto alloc_failed; | 4943 | goto alloc_failed; |
4943 | } | 4944 | } |
4944 | memset(rx_ring->rx_buffer_info, 0, size); | 4945 | memset(rx_ring->rx_buffer_info, 0, size); |
@@ -4951,7 +4952,8 @@ int ixgbe_setup_rx_resources(struct ixgbe_adapter *adapter, | |||
4951 | &rx_ring->dma, GFP_KERNEL); | 4952 | &rx_ring->dma, GFP_KERNEL); |
4952 | 4953 | ||
4953 | if (!rx_ring->desc) { | 4954 | if (!rx_ring->desc) { |
4954 | e_err("Memory allocation failed for the Rx desc ring\n"); | 4955 | e_err(probe, "Memory allocation failed for the Rx " |
4956 | "descriptor ring\n"); | ||
4955 | vfree(rx_ring->rx_buffer_info); | 4957 | vfree(rx_ring->rx_buffer_info); |
4956 | goto alloc_failed; | 4958 | goto alloc_failed; |
4957 | } | 4959 | } |
@@ -4984,7 +4986,7 @@ static int ixgbe_setup_all_rx_resources(struct ixgbe_adapter *adapter) | |||
4984 | err = ixgbe_setup_rx_resources(adapter, adapter->rx_ring[i]); | 4986 | err = ixgbe_setup_rx_resources(adapter, adapter->rx_ring[i]); |
4985 | if (!err) | 4987 | if (!err) |
4986 | continue; | 4988 | continue; |
4987 | e_err("Allocation for Rx Queue %u failed\n", i); | 4989 | e_err(probe, "Allocation for Rx Queue %u failed\n", i); |
4988 | break; | 4990 | break; |
4989 | } | 4991 | } |
4990 | 4992 | ||
@@ -5083,7 +5085,7 @@ static int ixgbe_change_mtu(struct net_device *netdev, int new_mtu) | |||
5083 | if ((new_mtu < 68) || (max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE)) | 5085 | if ((new_mtu < 68) || (max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE)) |
5084 | return -EINVAL; | 5086 | return -EINVAL; |
5085 | 5087 | ||
5086 | e_info("changing MTU from %d to %d\n", netdev->mtu, new_mtu); | 5088 | e_info(probe, "changing MTU from %d to %d\n", netdev->mtu, new_mtu); |
5087 | /* must set new MTU before calling down or up */ | 5089 | /* must set new MTU before calling down or up */ |
5088 | netdev->mtu = new_mtu; | 5090 | netdev->mtu = new_mtu; |
5089 | 5091 | ||
@@ -5597,7 +5599,7 @@ static void ixgbe_fdir_reinit_task(struct work_struct *work) | |||
5597 | set_bit(__IXGBE_FDIR_INIT_DONE, | 5599 | set_bit(__IXGBE_FDIR_INIT_DONE, |
5598 | &(adapter->tx_ring[i]->reinit_state)); | 5600 | &(adapter->tx_ring[i]->reinit_state)); |
5599 | } else { | 5601 | } else { |
5600 | e_err("failed to finish FDIR re-initialization, " | 5602 | e_err(probe, "failed to finish FDIR re-initialization, " |
5601 | "ignored adding FDIR ATR filters\n"); | 5603 | "ignored adding FDIR ATR filters\n"); |
5602 | } | 5604 | } |
5603 | /* Done FDIR Re-initialization, enable transmits */ | 5605 | /* Done FDIR Re-initialization, enable transmits */ |
@@ -5669,7 +5671,7 @@ static void ixgbe_watchdog_task(struct work_struct *work) | |||
5669 | flow_tx = !!(rmcs & IXGBE_RMCS_TFCE_802_3X); | 5671 | flow_tx = !!(rmcs & IXGBE_RMCS_TFCE_802_3X); |
5670 | } | 5672 | } |
5671 | 5673 | ||
5672 | e_info("NIC Link is Up %s, Flow Control: %s\n", | 5674 | e_info(drv, "NIC Link is Up %s, Flow Control: %s\n", |
5673 | (link_speed == IXGBE_LINK_SPEED_10GB_FULL ? | 5675 | (link_speed == IXGBE_LINK_SPEED_10GB_FULL ? |
5674 | "10 Gbps" : | 5676 | "10 Gbps" : |
5675 | (link_speed == IXGBE_LINK_SPEED_1GB_FULL ? | 5677 | (link_speed == IXGBE_LINK_SPEED_1GB_FULL ? |
@@ -5687,7 +5689,7 @@ static void ixgbe_watchdog_task(struct work_struct *work) | |||
5687 | adapter->link_up = false; | 5689 | adapter->link_up = false; |
5688 | adapter->link_speed = 0; | 5690 | adapter->link_speed = 0; |
5689 | if (netif_carrier_ok(netdev)) { | 5691 | if (netif_carrier_ok(netdev)) { |
5690 | e_info("NIC Link is Down\n"); | 5692 | e_info(drv, "NIC Link is Down\n"); |
5691 | netif_carrier_off(netdev); | 5693 | netif_carrier_off(netdev); |
5692 | } | 5694 | } |
5693 | } | 5695 | } |
@@ -5863,8 +5865,9 @@ static bool ixgbe_tx_csum(struct ixgbe_adapter *adapter, | |||
5863 | break; | 5865 | break; |
5864 | default: | 5866 | default: |
5865 | if (unlikely(net_ratelimit())) { | 5867 | if (unlikely(net_ratelimit())) { |
5866 | e_warn("partial checksum but " | 5868 | e_warn(probe, "partial checksum " |
5867 | "proto=%x!\n", skb->protocol); | 5869 | "but proto=%x!\n", |
5870 | skb->protocol); | ||
5868 | } | 5871 | } |
5869 | break; | 5872 | break; |
5870 | } | 5873 | } |
@@ -6472,7 +6475,7 @@ static void __devinit ixgbe_probe_vf(struct ixgbe_adapter *adapter, | |||
6472 | adapter->flags |= IXGBE_FLAG_SRIOV_ENABLED; | 6475 | adapter->flags |= IXGBE_FLAG_SRIOV_ENABLED; |
6473 | err = pci_enable_sriov(adapter->pdev, adapter->num_vfs); | 6476 | err = pci_enable_sriov(adapter->pdev, adapter->num_vfs); |
6474 | if (err) { | 6477 | if (err) { |
6475 | e_err("Failed to enable PCI sriov: %d\n", err); | 6478 | e_err(probe, "Failed to enable PCI sriov: %d\n", err); |
6476 | goto err_novfs; | 6479 | goto err_novfs; |
6477 | } | 6480 | } |
6478 | /* If call to enable VFs succeeded then allocate memory | 6481 | /* If call to enable VFs succeeded then allocate memory |
@@ -6496,8 +6499,8 @@ static void __devinit ixgbe_probe_vf(struct ixgbe_adapter *adapter, | |||
6496 | } | 6499 | } |
6497 | 6500 | ||
6498 | /* Oh oh */ | 6501 | /* Oh oh */ |
6499 | e_err("Unable to allocate memory for VF Data Storage - SRIOV " | 6502 | e_err(probe, "Unable to allocate memory for VF Data Storage - " |
6500 | "disabled\n"); | 6503 | "SRIOV disabled\n"); |
6501 | pci_disable_sriov(adapter->pdev); | 6504 | pci_disable_sriov(adapter->pdev); |
6502 | 6505 | ||
6503 | err_novfs: | 6506 | err_novfs: |
@@ -6667,7 +6670,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, | |||
6667 | if (adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) { | 6670 | if (adapter->flags & IXGBE_FLAG_FAN_FAIL_CAPABLE) { |
6668 | u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); | 6671 | u32 esdp = IXGBE_READ_REG(hw, IXGBE_ESDP); |
6669 | if (esdp & IXGBE_ESDP_SDP1) | 6672 | if (esdp & IXGBE_ESDP_SDP1) |
6670 | e_crit("Fan has stopped, replace the adapter\n"); | 6673 | e_crit(probe, "Fan has stopped, replace the adapter\n"); |
6671 | } | 6674 | } |
6672 | 6675 | ||
6673 | /* reset_hw fills in the perm_addr as well */ | 6676 | /* reset_hw fills in the perm_addr as well */ |
@@ -6698,7 +6701,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, | |||
6698 | 6701 | ||
6699 | ixgbe_probe_vf(adapter, ii); | 6702 | ixgbe_probe_vf(adapter, ii); |
6700 | 6703 | ||
6701 | netdev->features = NETIF_F_SG | | 6704 | netdev->features = NETIF_F_SG | |
6702 | NETIF_F_IP_CSUM | | 6705 | NETIF_F_IP_CSUM | |
6703 | NETIF_F_HW_VLAN_TX | | 6706 | NETIF_F_HW_VLAN_TX | |
6704 | NETIF_F_HW_VLAN_RX | | 6707 | NETIF_F_HW_VLAN_RX | |
@@ -6851,7 +6854,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, | |||
6851 | } | 6854 | } |
6852 | #endif | 6855 | #endif |
6853 | if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED) { | 6856 | if (adapter->flags & IXGBE_FLAG_SRIOV_ENABLED) { |
6854 | e_info("IOV is enabled with %d VFs\n", adapter->num_vfs); | 6857 | e_info(probe, "IOV is enabled with %d VFs\n", adapter->num_vfs); |
6855 | for (i = 0; i < adapter->num_vfs; i++) | 6858 | for (i = 0; i < adapter->num_vfs; i++) |
6856 | ixgbe_vf_configuration(pdev, (i | 0x10000000)); | 6859 | ixgbe_vf_configuration(pdev, (i | 0x10000000)); |
6857 | } | 6860 | } |
@@ -6999,7 +7002,7 @@ static pci_ers_result_t ixgbe_io_slot_reset(struct pci_dev *pdev) | |||
6999 | int err; | 7002 | int err; |
7000 | 7003 | ||
7001 | if (pci_enable_device_mem(pdev)) { | 7004 | if (pci_enable_device_mem(pdev)) { |
7002 | e_err("Cannot re-enable PCI device after reset.\n"); | 7005 | e_err(probe, "Cannot re-enable PCI device after reset.\n"); |
7003 | result = PCI_ERS_RESULT_DISCONNECT; | 7006 | result = PCI_ERS_RESULT_DISCONNECT; |
7004 | } else { | 7007 | } else { |
7005 | pci_set_master(pdev); | 7008 | pci_set_master(pdev); |
@@ -7037,7 +7040,7 @@ static void ixgbe_io_resume(struct pci_dev *pdev) | |||
7037 | 7040 | ||
7038 | if (netif_running(netdev)) { | 7041 | if (netif_running(netdev)) { |
7039 | if (ixgbe_up(adapter)) { | 7042 | if (ixgbe_up(adapter)) { |
7040 | e_info("ixgbe_up failed after reset\n"); | 7043 | e_info(probe, "ixgbe_up failed after reset\n"); |
7041 | return; | 7044 | return; |
7042 | } | 7045 | } |
7043 | } | 7046 | } |