qcacmn: Reset the inv bit in ring desc cookie for jumbo pkts
When a msdu scattered across multiple nbufs is received in REO2SW ring and the remaining nbufs are not yet available in the ring, loop in dp_rx_process is exited without resetting the invalid bit in the ring desc cookie. This will result in an incorrect assertion failure when the same entry is processed the next time. Fix is to reset the invalid bit in ring desc cookie when the loop is exited in the above msdu scattered scenario. Change-Id: Ie5cfa1fb8ea1db4b7a0a4837545ecbfdfbb8719a CRs-Fixed: 2916296
This commit is contained in:

committed by
snandini

parent
9b74a6bc2a
commit
69e696c423
@@ -287,6 +287,14 @@ enum hal_rx_ret_buf_manager {
|
||||
(BUFFER_ADDR_INFO_1_SW_BUFFER_COOKIE_OFFSET >> 2))) |= \
|
||||
HAL_RX_COOKIE_INVALID_MASK)
|
||||
|
||||
/*
|
||||
* macro to reset the invalid bit for sw cookie
|
||||
*/
|
||||
#define HAL_RX_BUF_COOKIE_INVALID_RESET(buff_addr_info) \
|
||||
((*(((unsigned int *)buff_addr_info) + \
|
||||
(BUFFER_ADDR_INFO_1_SW_BUFFER_COOKIE_OFFSET >> 2))) &= \
|
||||
~HAL_RX_COOKIE_INVALID_MASK)
|
||||
|
||||
/*
|
||||
* macro to set the cookie into the rxdma ring entry
|
||||
*/
|
||||
@@ -390,6 +398,11 @@ enum hal_rx_ret_buf_manager {
|
||||
(((struct reo_destination_ring *) \
|
||||
reo_desc)->buf_or_link_desc_addr_info)))
|
||||
|
||||
#define HAL_RX_REO_BUF_COOKIE_INVALID_RESET(reo_desc) \
|
||||
(HAL_RX_BUF_COOKIE_INVALID_RESET(& \
|
||||
(((struct reo_destination_ring *) \
|
||||
reo_desc)->buf_or_link_desc_addr_info)))
|
||||
|
||||
#define HAL_RX_MPDU_SEQUENCE_NUMBER_GET(mpdu_info_ptr) \
|
||||
((mpdu_info_ptr \
|
||||
[RX_MPDU_DESC_INFO_0_MPDU_SEQUENCE_NUMBER_OFFSET >> 2] & \
|
||||
|
Reference in New Issue
Block a user