i40e: enable debug earlier
authorShannon Nelson <shannon.nelson@intel.com>
Fri, 17 Oct 2014 03:14:51 +0000 (03:14 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 3 Nov 2014 12:11:51 +0000 (04:11 -0800)
Check the debug module parameter earlier to be able to catch the early
configuration phase adminq messages.

Change-ID: Ic84fabd72393489bbf96042de770790a80fd8468
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Patrick Lu <patrick.lu@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c

index 6a481bfeb09d6773cefc465c36a37f498943cfd0..ea622676ebe76f17822369c70e1c8ddf98b60aa0 100644 (file)
@@ -9023,6 +9023,11 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
        hw->bus.func = PCI_FUNC(pdev->devfn);
        pf->instance = pfs_found;
 
+       if (debug != -1) {
+               pf->msg_enable = pf->hw.debug_mask;
+               pf->msg_enable = debug;
+       }
+
        /* do a special CORER for clearing PXE mode once at init */
        if (hw->revision_id == 0 &&
            (rd32(hw, I40E_GLLAN_RCTL_0) & I40E_GLLAN_RCTL_0_PXE_MODE_MASK)) {