qcacmn: Count htc packets failed or not freed in misclist

HTC packets were mapped but not unmapped or freed. As part of
hdd_wlan_stop_modules(), all nbufs will be freed in misclist
and TxQueue.
Adding debug change to count number of htc packets failed to
send and count number of nbufs in misclist are skipped when
freeing them.

Change-Id: I868621a67cf89d9b84e202843990f576973ec334
CRs-Fixed: 2807407
This commit is contained in:
Ananya Gupta
2020-11-05 09:34:03 +05:30
zatwierdzone przez snandini
rodzic a958936486
commit ea977dc41c
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@@ -621,7 +621,8 @@ static inline QDF_STATUS DP_HTT_SEND_HTC_PKT(struct htt_soc *soc,
status = htc_send_pkt(soc->htc_soc, &pkt->htc_pkt);
if (status == QDF_STATUS_SUCCESS)
htt_htc_misc_pkt_list_add(soc, pkt);
else
soc->stats.fail_count++;
return status;
}
@@ -643,6 +644,7 @@ htt_htc_misc_pkt_pool_free(struct htt_soc *soc)
if (htc_packet_get_magic_cookie(&(pkt->u.pkt.htc_pkt)) !=
HTC_PACKET_MAGIC_COOKIE) {
pkt = next;
soc->stats.skip_count++;
continue;
}
netbuf = (qdf_nbuf_t) (pkt->u.pkt.htc_pkt.pNetBufContext);
@@ -659,6 +661,8 @@ htt_htc_misc_pkt_pool_free(struct htt_soc *soc)
}
soc->htt_htc_pkt_misclist = NULL;
HTT_TX_MUTEX_RELEASE(&soc->htt_tx_mutex);
dp_info("HTC Packets, fail count = %d, skip count = %d",
soc->stats.fail_count, soc->stats.skip_count);
}
/*