qcacmn: Add hal_rx_msdu_cce_metadata_get API
Implement hal_rx_msdu_cce_metadata API per chipset as the macro to retrieve the cce_metadata value is chipset dependent. Change-Id: Icd87d4ac32be78d69b24da106381a7669c86ada6 CRs-Fixed: 2522133
This commit is contained in:

committed by
nshrivas

parent
905312efaa
commit
8fc894afc8
@@ -906,6 +906,22 @@ static uint32_t hal_rx_msdu_fse_metadata_get_8074v1(uint8_t *buf)
|
||||
return HAL_RX_MSDU_END_FSE_METADATA_GET(msdu_end);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_msdu_cce_metadata_get_8074v1: API to get CCE metadata
|
||||
* from rx_msdu_end TLV
|
||||
* @buf: pointer to the start of RX PKT TLV headers
|
||||
*
|
||||
* Return: cce_metadata
|
||||
*/
|
||||
static uint16_t
|
||||
hal_rx_msdu_cce_metadata_get_8074v1(uint8_t *buf)
|
||||
{
|
||||
struct rx_pkt_tlvs *pkt_tlvs = (struct rx_pkt_tlvs *)buf;
|
||||
struct rx_msdu_end *msdu_end = &pkt_tlvs->msdu_end_tlv.rx_msdu_end;
|
||||
|
||||
return HAL_RX_MSDU_END_CCE_METADATA_GET(msdu_end);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qca8074_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -988,6 +1004,7 @@ struct hal_hw_txrx_ops qca8074_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_flow_idx_invalid_8074v1,
|
||||
hal_rx_msdu_flow_idx_timeout_8074v1,
|
||||
hal_rx_msdu_fse_metadata_get_8074v1,
|
||||
hal_rx_msdu_cce_metadata_get_8074v1,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_8074[] = {
|
||||
|
Reference in New Issue
Block a user