qcacmn: get sw_exception from reo dest ring descriptor
sw_exception bit will be marked in reo dest ring descriptor for FW re-injected frame, get this bit and save it in skb->cb, this bit value can be used for FISA further check. there is no reo_dest_indication field in reo dest ring on beryllium, so share same cb member for sw_exception and reo_dest_indication. Change-Id: I2321121be7dda68ed19faca177d868c7e8ba1dbf CRs-Fixed: 3056156
This commit is contained in:
@@ -454,4 +454,17 @@ static inline uintptr_t hal_rx_get_reo_desc_va(void *reo_desc)
|
||||
return (uintptr_t)va_from_desc;
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_sw_exception_get_be() - Get sw_exception bit value from REO Desc
|
||||
* @reo_desc: REO2SW ring descriptor pointer
|
||||
*
|
||||
* sw_exception bit might not exist in reo destination ring descriptor
|
||||
* for some chipset, so just restrict this function for BE only.
|
||||
*
|
||||
* Return: sw_exception bit value
|
||||
*/
|
||||
static inline uint8_t hal_rx_sw_exception_get_be(void *reo_desc)
|
||||
{
|
||||
return HAL_RX_GET(reo_desc, REO_DESTINATION_RING, SW_EXCEPTION);
|
||||
}
|
||||
#endif /* _HAL_BE_RX_H_ */
|
||||
|
Reference in New Issue
Block a user