qcacmn: Add hal_rx_msdu_fse_metadata_get API
Implement hal_rx_msdu_fse_metadata API per chipset as the macro to retrieve the fse_metadata value is chipset dependent. Change-Id: Iae7f532460b5203af2f95c504a6941c0b18b665e CRs-Fixed: 2522133
This commit is contained in:

committed by
nshrivas

parent
b5ec9d28ee
commit
905312efaa
@@ -891,6 +891,21 @@ static bool hal_rx_msdu_flow_idx_timeout_6390(uint8_t *buf)
|
||||
return HAL_RX_MSDU_END_FLOW_IDX_TIMEOUT_GET(msdu_end);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_msdu_fse_metadata_get_6390: API to get FSE metadata
|
||||
* from rx_msdu_end TLV
|
||||
* @buf: pointer to the start of RX PKT TLV headers
|
||||
*
|
||||
* Return: fse metadata value from MSDU END TLV
|
||||
*/
|
||||
static uint32_t hal_rx_msdu_fse_metadata_get_6390(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_FSE_METADATA_GET(msdu_end);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qca6390_hal_hw_txrx_ops = {
|
||||
/* init and setup */
|
||||
hal_srng_dst_hw_init_generic,
|
||||
@@ -971,6 +986,7 @@ struct hal_hw_txrx_ops qca6390_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_flow_idx_get_6390,
|
||||
hal_rx_msdu_flow_idx_invalid_6390,
|
||||
hal_rx_msdu_flow_idx_timeout_6390,
|
||||
hal_rx_msdu_fse_metadata_get_6390,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_6390[] = {
|
||||
|
@@ -317,6 +317,12 @@ UNIFIED_RX_MSDU_DETAILS_2_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_OFFSET))
|
||||
RX_MSDU_END_5_FLOW_IDX_TIMEOUT_OFFSET)), \
|
||||
RX_MSDU_END_5_FLOW_IDX_TIMEOUT_MASK, \
|
||||
RX_MSDU_END_5_FLOW_IDX_TIMEOUT_LSB))
|
||||
|
||||
#define HAL_RX_MSDU_END_FSE_METADATA_GET(_rx_msdu_end) \
|
||||
(_HAL_MS((*_OFFSET_TO_WORD_PTR(_rx_msdu_end, \
|
||||
RX_MSDU_END_15_FSE_METADATA_OFFSET)), \
|
||||
RX_MSDU_END_15_FSE_METADATA_MASK, \
|
||||
RX_MSDU_END_15_FSE_METADATA_LSB))
|
||||
/*
|
||||
* hal_rx_msdu_start_nss_get_6390(): API to get the NSS
|
||||
* Interval from rx_msdu_start
|
||||
|
Reference in New Issue
Block a user