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

@@ -4347,7 +4347,7 @@ void dp_peer_stats_update_protocol_cnt(struct cdp_soc_t *soc_hdl,
struct dp_soc *soc = cdp_soc_t_to_dp_soc(soc_hdl);
struct dp_vdev *vdev;
vdev = dp_vdev_get_ref_by_id(soc, vdev_id);
vdev = dp_vdev_get_ref_by_id(soc, vdev_id, DP_MOD_ID_GENERIC_STATS);
if (!vdev)
return;
@@ -4355,7 +4355,7 @@ void dp_peer_stats_update_protocol_cnt(struct cdp_soc_t *soc_hdl,
dp_vdev_peer_stats_update_protocol_cnt(vdev, nbuf, NULL,
is_egress, is_rx);
dp_vdev_unref_delete(soc, vdev);
dp_vdev_unref_delete(soc, vdev, DP_MOD_ID_GENERIC_STATS);
}
#endif