qcacmn: add extra stats pdev and vdev lvl

stats added for descriptor alloc fail and tx outstanding too many

Change-Id: Ie2c676979f21e8f0ab217e8c666a8cdf3efbf7f1
This commit is contained in:
Ruben Columbus
2020-12-08 18:16:17 -08:00
committed by snandini
parent 86f4aa6017
commit 60e9a2d116
3 changed files with 9 additions and 0 deletions

View File

@@ -128,6 +128,7 @@ dp_tx_limit_check(struct dp_vdev *vdev)
pdev->num_tx_allowed) {
dp_tx_info("queued packets are more than max tx, drop the frame");
DP_STATS_INC(vdev, tx_i.dropped.desc_na.num, 1);
DP_STATS_INC(vdev, tx_i.dropped.desc_na_exc_outstand.num, 1);
return true;
}
return false;
@@ -870,8 +871,10 @@ struct dp_tx_desc_s *dp_tx_prepare_desc_single(struct dp_vdev *vdev,
/* Allocate software Tx descriptor */
tx_desc = dp_tx_desc_alloc(soc, desc_pool_id);
if (qdf_unlikely(!tx_desc)) {
DP_STATS_INC(vdev, tx_i.dropped.desc_na.num, 1);
DP_STATS_INC(vdev, tx_i.dropped.desc_na_exc_alloc_fail.num, 1);
return NULL;
}