qcacmn: Print re-queue message based on threshold

When packet tx fails at transport layer, packet is re-queued and given to
HIF layer again. In this change, print the warning message about re-queue
only when tx fails for 5 consecutive attempts due to no resources
available at HIF layer.
Since re-queuing is not fatal, it need not be printed on every attempt.

Change-Id: I00082470420e29dfe4fb7a745ac709a682ba032e
CRs-Fixed: 2621763
This commit is contained in:
Manoj Ekbote
2020-01-15 22:10:25 -08:00
committed by nshrivas
parent c6e9bd033c
commit 1c1ef8c2bd
4 changed files with 72 additions and 8 deletions

View File

@@ -726,6 +726,8 @@ static void reset_endpoint_states(HTC_TARGET *target)
INIT_HTC_PACKET_QUEUE(&pEndpoint->RxBufferHoldQueue);
pEndpoint->target = target;
pEndpoint->TxCreditFlowEnabled = (bool)htc_credit_flow;
pEndpoint->num_requeues_warn = 0;
pEndpoint->total_num_requeues = 0;
qdf_atomic_init(&pEndpoint->TxProcessCount);
}
}