mirror of https://gitee.com/openkylin/linux.git
i40e: remove chatty log messages
Don't complain when we disable queues that are already disable, or enable them when they're already enabled. This removes a bunch of bogus log messages that we see at every VF reset. Change-Id: Ia127be572abdccc48a53d8c43f8a07b8bb920de1 Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
88f6563d73
commit
fda972f6e9
|
@ -2990,21 +2990,11 @@ static int i40e_vsi_control_tx(struct i40e_vsi *vsi, bool enable)
|
||||||
} while (j-- && ((tx_reg >> I40E_QTX_ENA_QENA_REQ_SHIFT)
|
} while (j-- && ((tx_reg >> I40E_QTX_ENA_QENA_REQ_SHIFT)
|
||||||
^ (tx_reg >> I40E_QTX_ENA_QENA_STAT_SHIFT)) & 1);
|
^ (tx_reg >> I40E_QTX_ENA_QENA_STAT_SHIFT)) & 1);
|
||||||
|
|
||||||
if (enable) {
|
/* Skip if the queue is already in the requested state */
|
||||||
/* is STAT set ? */
|
if (enable && (tx_reg & I40E_QTX_ENA_QENA_STAT_MASK))
|
||||||
if ((tx_reg & I40E_QTX_ENA_QENA_STAT_MASK)) {
|
continue;
|
||||||
dev_info(&pf->pdev->dev,
|
if (!enable && !(tx_reg & I40E_QTX_ENA_QENA_STAT_MASK))
|
||||||
"Tx %d already enabled\n", i);
|
continue;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
/* is !STAT set ? */
|
|
||||||
if (!(tx_reg & I40E_QTX_ENA_QENA_STAT_MASK)) {
|
|
||||||
dev_info(&pf->pdev->dev,
|
|
||||||
"Tx %d already disabled\n", i);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* turn on/off the queue */
|
/* turn on/off the queue */
|
||||||
if (enable)
|
if (enable)
|
||||||
|
|
Loading…
Reference in New Issue