qcacmn: Update mlo ctx stats API with xmit type

Update mlo ctx stats API with xmit type. MLO ctx ingress stats will
be stored as per the legacy/mlo xmit type.

Update stats incrementing mechanism on peer unmap.

Change-Id: I2f16b95e64e6a7697d18d9453e9f7c60631f80bb
CRs-Fixed: 3561679
此提交包含在:
Aman Mehta
2023-08-10 17:56:09 +05:30
提交者 Rahul Choudhary
父節點 15edfd0a13
當前提交 3694cff9dc
共有 6 個檔案被更改,包括 247 行新增21 行删除

查看文件

@@ -6402,13 +6402,20 @@ void dp_mon_peer_get_stats(struct dp_peer *peer, void *arg,
DP_UPDATE_MON_STATS(peer_stats, mon_peer_stats);
break;
}
case UPDATE_VDEV_STATS:
case UPDATE_VDEV_STATS_MLD:
{
struct cdp_vdev_stats *vdev_stats =
(struct cdp_vdev_stats *)arg;
DP_UPDATE_MON_STATS(vdev_stats, mon_peer_stats);
break;
}
case UPDATE_VDEV_STATS:
{
struct dp_vdev_stats *vdev_stats =
(struct dp_vdev_stats *)arg;
DP_UPDATE_MON_STATS(vdev_stats, mon_peer_stats);
break;
}
default:
dp_mon_err("Invalid stats_update_type: %u", type);
}