|
@@ -6826,12 +6826,12 @@ static void i40e_reset_and_rebuild(struct i40e_pf *pf, bool reinit)
|
|
if (ret)
|
|
if (ret)
|
|
goto end_core_reset;
|
|
goto end_core_reset;
|
|
|
|
|
|
- /* driver is only interested in link up/down and module qualification
|
|
|
|
- * reports from firmware
|
|
|
|
|
|
+ /* The driver only wants link up/down and module qualification
|
|
|
|
+ * reports from firmware. Note the negative logic.
|
|
*/
|
|
*/
|
|
ret = i40e_aq_set_phy_int_mask(&pf->hw,
|
|
ret = i40e_aq_set_phy_int_mask(&pf->hw,
|
|
- I40E_AQ_EVENT_LINK_UPDOWN |
|
|
|
|
- I40E_AQ_EVENT_MODULE_QUAL_FAIL, NULL);
|
|
|
|
|
|
+ ~(I40E_AQ_EVENT_LINK_UPDOWN |
|
|
|
|
+ I40E_AQ_EVENT_MODULE_QUAL_FAIL), NULL);
|
|
if (ret)
|
|
if (ret)
|
|
dev_info(&pf->pdev->dev, "set phy mask fail, err %s aq_err %s\n",
|
|
dev_info(&pf->pdev->dev, "set phy mask fail, err %s aq_err %s\n",
|
|
i40e_stat_str(&pf->hw, ret),
|
|
i40e_stat_str(&pf->hw, ret),
|
|
@@ -10961,12 +10961,12 @@ static int i40e_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- /* driver is only interested in link up/down and module qualification
|
|
|
|
- * reports from firmware
|
|
|
|
|
|
+ /* The driver only wants link up/down and module qualification
|
|
|
|
+ * reports from firmware. Note the negative logic.
|
|
*/
|
|
*/
|
|
err = i40e_aq_set_phy_int_mask(&pf->hw,
|
|
err = i40e_aq_set_phy_int_mask(&pf->hw,
|
|
- I40E_AQ_EVENT_LINK_UPDOWN |
|
|
|
|
- I40E_AQ_EVENT_MODULE_QUAL_FAIL, NULL);
|
|
|
|
|
|
+ ~(I40E_AQ_EVENT_LINK_UPDOWN |
|
|
|
|
+ I40E_AQ_EVENT_MODULE_QUAL_FAIL), NULL);
|
|
if (err)
|
|
if (err)
|
|
dev_info(&pf->pdev->dev, "set phy mask fail, err %s aq_err %s\n",
|
|
dev_info(&pf->pdev->dev, "set phy mask fail, err %s aq_err %s\n",
|
|
i40e_stat_str(&pf->hw, err),
|
|
i40e_stat_str(&pf->hw, err),
|