|
|
@@ -93,8 +93,8 @@ MODULE_DEVICE_TABLE(pci, i40e_pci_tbl);
|
|
|
|
|
|
#define I40E_MAX_VF_COUNT 128
|
|
|
static int debug = -1;
|
|
|
-module_param(debug, int, 0);
|
|
|
-MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all)");
|
|
|
+module_param(debug, uint, 0);
|
|
|
+MODULE_PARM_DESC(debug, "Debug level (0=none,...,16=all), Debug mask (0x8XXXXXXX)");
|
|
|
|
|
|
MODULE_AUTHOR("Intel Corporation, <e1000-devel@lists.sourceforge.net>");
|
|
|
MODULE_DESCRIPTION("Intel(R) Ethernet Connection XL710 Network Driver");
|
|
|
@@ -8511,15 +8511,6 @@ static int i40e_sw_init(struct i40e_pf *pf)
|
|
|
int err = 0;
|
|
|
int size;
|
|
|
|
|
|
- pf->msg_enable = netif_msg_init(I40E_DEFAULT_MSG_ENABLE,
|
|
|
- (NETIF_MSG_DRV|NETIF_MSG_PROBE|NETIF_MSG_LINK));
|
|
|
- if (debug != -1 && debug != I40E_DEFAULT_MSG_ENABLE) {
|
|
|
- if (I40E_DEBUG_USER & debug)
|
|
|
- pf->hw.debug_mask = debug;
|
|
|
- pf->msg_enable = netif_msg_init((debug & ~I40E_DEBUG_USER),
|
|
|
- I40E_DEFAULT_MSG_ENABLE);
|
|
|
- }
|
|
|
-
|
|
|
/* Set default capability flags */
|
|
|
pf->flags = I40E_FLAG_RX_CSUM_ENABLED |
|
|
|
I40E_FLAG_MSI_ENABLED |
|
|
|
@@ -10825,10 +10816,12 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|
|
mutex_init(&hw->aq.asq_mutex);
|
|
|
mutex_init(&hw->aq.arq_mutex);
|
|
|
|
|
|
- if (debug != -1) {
|
|
|
- pf->msg_enable = pf->hw.debug_mask;
|
|
|
- pf->msg_enable = debug;
|
|
|
- }
|
|
|
+ pf->msg_enable = netif_msg_init(debug,
|
|
|
+ NETIF_MSG_DRV |
|
|
|
+ NETIF_MSG_PROBE |
|
|
|
+ NETIF_MSG_LINK);
|
|
|
+ if (debug < -1)
|
|
|
+ pf->hw.debug_mask = debug;
|
|
|
|
|
|
/* do a special CORER for clearing PXE mode once at init */
|
|
|
if (hw->revision_id == 0 &&
|