qcacmn: Support to print AST entries of MLO peer

Add support to print AST entries of MLO peer.
MLO AST table is global across SOC and hence any print AST request
will print the MLO AST table

Change-Id: I07554606617f43a8806e1c7243ca69a0c8ce335e
CRs-Fixed: 3246520
This commit is contained in:
Santosh Anbu
2022-07-14 11:14:31 +05:30
committed by Madan Koyyalamudi
부모 4447eb57d1
커밋 e852941cea
4개의 변경된 파일66개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@@ -1565,6 +1565,28 @@ dp_mlo_peer_find_hash_add_be(struct dp_soc *soc, struct dp_peer *peer)
hash_list_elem);
qdf_spin_unlock_bh(&mld_hash_obj->mld_peer_hash_lock);
}
void dp_print_mlo_ast_stats_be(struct dp_soc *soc)
{
uint32_t index;
struct dp_peer *peer;
dp_mld_peer_hash_obj_t mld_hash_obj;
mld_hash_obj = dp_mlo_get_peer_hash_obj(soc);
if (!mld_hash_obj)
return;
qdf_spin_lock_bh(&mld_hash_obj->mld_peer_hash_lock);
for (index = 0; index < mld_hash_obj->mld_peer_hash.mask; index++) {
TAILQ_FOREACH(peer, &mld_hash_obj->mld_peer_hash.bins[index],
hash_list_elem) {
dp_print_peer_ast_entries(soc, peer, NULL);
}
}
qdf_spin_unlock_bh(&mld_hash_obj->mld_peer_hash_lock);
}
#endif
#if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP) && \
@@ -1822,4 +1844,5 @@ void dp_initialize_arch_ops_be(struct dp_arch_ops *arch_ops)
arch_ops->dp_find_peer_by_destmac = dp_find_peer_by_destmac_be;
dp_init_near_full_arch_ops_be(arch_ops);
arch_ops->get_rx_hash_key = dp_get_rx_hash_key_be;
arch_ops->print_mlo_ast_stats = dp_print_mlo_ast_stats_be;
}