qcacmn: Add support of HW Link ID

Add support of HW Link ID in PeerMetaData.
Retrieve the HW Link ID in both Rx per packet
path and RX Error path, store it in nbuf cb.
Use the stored value from nbuf while updating
MLO peer link statistics.

Change-Id: I11596d44fe8557af568fd399d0c0a04d2b887b2a
CRs-Fixed: 3397721
This commit is contained in:
Kenvish Butani
2023-01-21 12:36:55 +05:30
committed by Madan Koyyalamudi
parent ee22464bee
commit 4c88b99fe7
11 changed files with 85 additions and 14 deletions

View File

@@ -2417,6 +2417,15 @@ dp_rx_wbm_err_process(struct dp_intr *int_ctx, struct dp_soc *soc,
continue;
}
if (txrx_peer && txrx_peer->is_mld_peer) {
link_id = ((dp_rx_peer_mdata_link_id_get(
soc,
peer_meta_data)) + 1);
if (link_id < 1 || link_id > DP_MAX_MLO_LINKS)
link_id = 0;
} else
link_id = 0;
if (wbm_err_info.wbm_err_src == HAL_RX_WBM_ERR_SRC_REO) {
if (wbm_err_info.reo_psh_rsn
== HAL_RX_WBM_REO_PSH_RSN_ERROR) {