qcacmn: gracefully handle error packets on partner soc
Ideally in MLO, Rx buffers should be routed to error rings of the SOC which owns the RX buffer or link desc incase of any error or fragment But in case of HW issue if the packets are routed to partner soc. Handle gracefully instead of assert Change-Id: Ia56188808dfd034e960e1c1345de8f760e4b05f1 CRs-Fixed: 3327959
Esse commit está contido em:

commit de
Madan Koyyalamudi

pai
f0811fb133
commit
86f7649e19
@@ -658,6 +658,30 @@ dp_rx_replensih_soc_get(struct dp_soc *soc, uint8_t chip_id)
|
||||
return replenish_soc;
|
||||
}
|
||||
|
||||
struct dp_soc *
|
||||
dp_soc_get_by_idle_bm_id(struct dp_soc *soc, uint8_t idle_bm_id)
|
||||
{
|
||||
struct dp_soc_be *be_soc = dp_get_be_soc_from_dp_soc(soc);
|
||||
struct dp_mlo_ctxt *mlo_ctxt = be_soc->ml_ctxt;
|
||||
struct dp_soc *partner_soc = NULL;
|
||||
uint8_t chip_id;
|
||||
|
||||
if (!be_soc->mlo_enabled || !mlo_ctxt)
|
||||
return soc;
|
||||
|
||||
for (chip_id = 0; chip_id < WLAN_MAX_MLO_CHIPS; chip_id++) {
|
||||
partner_soc = dp_mlo_get_soc_ref_by_chip_id(mlo_ctxt, chip_id);
|
||||
|
||||
if (!partner_soc)
|
||||
continue;
|
||||
|
||||
if (partner_soc->idle_link_bm_id == idle_bm_id)
|
||||
return partner_soc;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef WLAN_MCAST_MLO
|
||||
void dp_mcast_mlo_iter_ptnr_soc(struct dp_soc_be *be_soc,
|
||||
dp_ptnr_soc_iter_func func,
|
||||
|
Referência em uma nova issue
Block a user