qtnfmac: modify full Tx queue error reporting
Under heavy load it is normal that h/w Tx queue is almost full all the time and reclaim should be done before transmitting next packet. Warning still should be reported as well as s/w Tx queues should be stopped in the case when reclaim failed. Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
063848c3e1
commit
e9931f984d
@ -643,11 +643,11 @@ static int qtnf_tx_queue_ready(struct qtnf_pcie_bus_priv *priv)
|
|||||||
{
|
{
|
||||||
if (!CIRC_SPACE(priv->tx_bd_w_index, priv->tx_bd_r_index,
|
if (!CIRC_SPACE(priv->tx_bd_w_index, priv->tx_bd_r_index,
|
||||||
priv->tx_bd_num)) {
|
priv->tx_bd_num)) {
|
||||||
pr_err_ratelimited("reclaim full Tx queue\n");
|
|
||||||
qtnf_pcie_data_tx_reclaim(priv);
|
qtnf_pcie_data_tx_reclaim(priv);
|
||||||
|
|
||||||
if (!CIRC_SPACE(priv->tx_bd_w_index, priv->tx_bd_r_index,
|
if (!CIRC_SPACE(priv->tx_bd_w_index, priv->tx_bd_r_index,
|
||||||
priv->tx_bd_num)) {
|
priv->tx_bd_num)) {
|
||||||
|
pr_warn_ratelimited("reclaim full Tx queue\n");
|
||||||
priv->tx_full_count++;
|
priv->tx_full_count++;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user