diff options
Diffstat (limited to 'drivers/net/ethernet/intel/igbvf/netdev.c')
-rw-r--r-- | drivers/net/ethernet/intel/igbvf/netdev.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/ethernet/intel/igbvf/netdev.c b/drivers/net/ethernet/intel/igbvf/netdev.c index 217c143686d2..8ec74b07f940 100644 --- a/drivers/net/ethernet/intel/igbvf/netdev.c +++ b/drivers/net/ethernet/intel/igbvf/netdev.c | |||
@@ -55,6 +55,11 @@ static const char igbvf_driver_string[] = | |||
55 | static const char igbvf_copyright[] = | 55 | static const char igbvf_copyright[] = |
56 | "Copyright (c) 2009 - 2012 Intel Corporation."; | 56 | "Copyright (c) 2009 - 2012 Intel Corporation."; |
57 | 57 | ||
58 | #define DEFAULT_MSG_ENABLE (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK) | ||
59 | static int debug = -1; | ||
60 | module_param(debug, int, 0); | ||
61 | MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)"); | ||
62 | |||
58 | static int igbvf_poll(struct napi_struct *napi, int budget); | 63 | static int igbvf_poll(struct napi_struct *napi, int budget); |
59 | static void igbvf_reset(struct igbvf_adapter *); | 64 | static void igbvf_reset(struct igbvf_adapter *); |
60 | static void igbvf_set_interrupt_capability(struct igbvf_adapter *); | 65 | static void igbvf_set_interrupt_capability(struct igbvf_adapter *); |
@@ -2649,7 +2654,7 @@ static int __devinit igbvf_probe(struct pci_dev *pdev, | |||
2649 | adapter->flags = ei->flags; | 2654 | adapter->flags = ei->flags; |
2650 | adapter->hw.back = adapter; | 2655 | adapter->hw.back = adapter; |
2651 | adapter->hw.mac.type = ei->mac; | 2656 | adapter->hw.mac.type = ei->mac; |
2652 | adapter->msg_enable = (1 << NETIF_MSG_DRV | NETIF_MSG_PROBE) - 1; | 2657 | adapter->msg_enable = netif_msg_init(debug, DEFAULT_MSG_ENABLE); |
2653 | 2658 | ||
2654 | /* PCI config space info */ | 2659 | /* PCI config space info */ |
2655 | 2660 | ||
@@ -2726,14 +2731,14 @@ static int __devinit igbvf_probe(struct pci_dev *pdev, | |||
2726 | netdev->addr_len); | 2731 | netdev->addr_len); |
2727 | } | 2732 | } |
2728 | 2733 | ||
2729 | if (!is_valid_ether_addr(netdev->perm_addr)) { | 2734 | if (!is_valid_ether_addr(netdev->dev_addr)) { |
2730 | dev_err(&pdev->dev, "Invalid MAC Address: %pM\n", | 2735 | dev_err(&pdev->dev, "Invalid MAC Address: %pM\n", |
2731 | netdev->dev_addr); | 2736 | netdev->dev_addr); |
2732 | err = -EIO; | 2737 | err = -EIO; |
2733 | goto err_hw_init; | 2738 | goto err_hw_init; |
2734 | } | 2739 | } |
2735 | 2740 | ||
2736 | memcpy(netdev->perm_addr, adapter->hw.mac.addr, netdev->addr_len); | 2741 | memcpy(netdev->perm_addr, netdev->dev_addr, netdev->addr_len); |
2737 | 2742 | ||
2738 | setup_timer(&adapter->watchdog_timer, &igbvf_watchdog, | 2743 | setup_timer(&adapter->watchdog_timer, &igbvf_watchdog, |
2739 | (unsigned long) adapter); | 2744 | (unsigned long) adapter); |