qcacmn: increment vdev refcount for search by id

Add new API dp_vdev_get_ref_by_id() which will return vdev
pointer by holding a reference. Caller of this API has
to ensure that this reference is released by calling
dp_vdev_unref_delete() API

New lock soc->vdev_map_lock is introduced to protect
vdev id to object array

Change-Id: I883e328932e35ef31254125492dbae20cebe0e00
This commit is contained in:
Chaithanya Garrepalli
2020-08-12 18:07:51 +05:30
committed by snandini
parent afac78b33d
commit a718007f03
11 changed files with 468 additions and 289 deletions

File diff suppressed because it is too large Load Diff