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
此提交包含在:
Chaithanya Garrepalli
2020-08-14 18:04:40 +05:30
提交者 snandini
父節點 a718007f03
當前提交 ddc9e59e8f
共有 12 個檔案被更改,包括 291 行新增169 行删除

查看文件

@@ -526,7 +526,8 @@ static inline bool
dp_tx_desc_thresh_reached(struct cdp_soc_t *soc_hdl, uint8_t vdev_id)
{
struct dp_soc *soc = cdp_soc_t_to_dp_soc(soc_hdl);
struct dp_vdev *vdev = dp_vdev_get_ref_by_id(soc, vdev_id);
struct dp_vdev *vdev = dp_vdev_get_ref_by_id(soc, vdev_id,
DP_MOD_ID_CDP);
struct dp_tx_desc_pool_s *pool;
bool status;
@@ -535,7 +536,7 @@ dp_tx_desc_thresh_reached(struct cdp_soc_t *soc_hdl, uint8_t vdev_id)
pool = vdev->pool;
status = dp_tx_is_threshold_reached(pool, pool->avail_desc);
dp_vdev_unref_delete(soc, vdev);
dp_vdev_unref_delete(soc, vdev, DP_MOD_ID_CDP);
return status;
}