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
此提交包含在:
@@ -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;
|
||||
}
|
||||
|
新增問題並參考
封鎖使用者