qcacmn: Use next link_desc instead of msdu_count
MSDU count is not reliable in all cases.Hence it is better to check whether next_link_desc is valid or not and then free the MSDUs in the next descriptor and subsequently release both the current and next link descriptor back to HW. Change-Id: Ie5ea3be547f9aed6673293221f6b47661cd92cce
Cette révision appartient à :
@@ -3846,6 +3846,23 @@ void hal_rx_get_next_msdu_link_desc_buf_addr_info(
|
||||
*next_addr_info = msdu_link->next_msdu_link_desc_addr_info;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_clear_next_msdu_link_desc_buf_addr_info(): clear next msdu link desc
|
||||
* buffer addr info
|
||||
* @link_desc_va: pointer to current msdu link Desc
|
||||
*
|
||||
* return: None
|
||||
*/
|
||||
static inline
|
||||
void hal_rx_clear_next_msdu_link_desc_buf_addr_info(void *link_desc_va)
|
||||
{
|
||||
struct rx_msdu_link *msdu_link = link_desc_va;
|
||||
|
||||
if (msdu_link)
|
||||
qdf_mem_zero(&msdu_link->next_msdu_link_desc_addr_info,
|
||||
sizeof(msdu_link->next_msdu_link_desc_addr_info));
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_is_buf_addr_info_valid(): check is the buf_addr_info valid
|
||||
*
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur