qcacmn: Get vdev stats based on arch

With Single Netdev Unified and Hybrid Mode,
the calculation of vdev stats is changed as
per the mode. For LI platforms the path
to get vdev stats is still same while for
BE the vdev stats config path is different.
Introduced Arch ops to handle this diversion.

Change-Id: If4f0f49e78d35126942cd3f1872a5856e4d0f5ba
CRs-Fixed: 3482567
此提交包含在:
Kenvish Butani
2023-04-28 12:40:45 +05:30
提交者 Madan Koyyalamudi
父節點 6f869404f6
當前提交 c0fe52d4c6
共有 8 個檔案被更改,包括 50 行新增25 行删除

查看文件

@@ -8661,7 +8661,7 @@ void dp_update_vdev_stats_on_peer_unmap(struct dp_vdev *vdev,
uint8_t link_id = 0;
struct dp_pdev *pdev = vdev->pdev;
if (soc && soc->arch_ops.dp_get_vdev_stats_for_unmap_peer)
if (soc->arch_ops.dp_get_vdev_stats_for_unmap_peer)
soc->arch_ops.dp_get_vdev_stats_for_unmap_peer(vdev,
peer,
&vdev_stats);