qcacmn: Add VDEV refcount debug support

Add debug support for VDEV refcount to take
refcount by module id and decrement corresponding
refcount with same module id

Change-Id: I15c075816994ba70155fefbc0bce208b20fb9a59
This commit is contained in:
Chaithanya Garrepalli
2020-08-14 18:04:40 +05:30
committed by snandini
parent a718007f03
commit ddc9e59e8f
12 changed files with 291 additions and 169 deletions

View File

@@ -1876,7 +1876,7 @@ void dp_rx_deliver_to_stack_no_peer(struct dp_soc *soc, qdf_nbuf_t nbuf)
goto deliver_fail;
vdev_id = QDF_NBUF_CB_RX_VDEV_ID(nbuf);
vdev = dp_vdev_get_ref_by_id(soc, vdev_id);
vdev = dp_vdev_get_ref_by_id(soc, vdev_id, DP_MOD_ID_RX);
if (!vdev || vdev->delete.pending || !vdev->osif_rx)
goto deliver_fail;
@@ -1902,7 +1902,7 @@ void dp_rx_deliver_to_stack_no_peer(struct dp_soc *soc, qdf_nbuf_t nbuf)
vdev->osif_rx(vdev->osif_vdev, nbuf))
goto deliver_fail;
DP_STATS_INC(soc, rx.err.pkt_delivered_no_peer, 1);
dp_vdev_unref_delete(soc, vdev);
dp_vdev_unref_delete(soc, vdev, DP_MOD_ID_RX);
return;
}
@@ -1911,7 +1911,7 @@ deliver_fail:
QDF_NBUF_CB_RX_PKT_LEN(nbuf));
qdf_nbuf_free(nbuf);
if (vdev)
dp_vdev_unref_delete(soc, vdev);
dp_vdev_unref_delete(soc, vdev, DP_MOD_ID_RX);
}
#else
static inline