qcacmn: Extract msdu end TLV information at once during Rx fast path
Rather than extracting msdu end pkt tlv information per field basis during fast data path, extract msdu end pkt tlv information at once and store in local structure. Change-Id: I0877ba4f824d480cc0851c72090f010852d0d203
This commit is contained in:

committed by
nshrivas

parent
fc4ac73e9b
commit
6997a37a1e
@@ -1291,6 +1291,30 @@ uint16_t hal_rx_get_rx_sequence_6490(uint8_t *buf)
|
||||
return HAL_RX_MPDU_GET_SEQUENCE_NUMBER(rx_mpdu_info);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_msdu_packet_metadata_get_6490(): API to get the
|
||||
* msdu information from rx_msdu_end TLV
|
||||
*
|
||||
* @ buf: pointer to the start of RX PKT TLV headers
|
||||
* @ hal_rx_msdu_metadata: pointer to the msdu info structure
|
||||
*/
|
||||
static void
|
||||
hal_rx_msdu_packet_metadata_get_6490(uint8_t *buf,
|
||||
void *msdu_pkt_metadata)
|
||||
{
|
||||
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;
|
||||
struct hal_rx_msdu_metadata *msdu_metadata =
|
||||
(struct hal_rx_msdu_metadata *)msdu_pkt_metadata;
|
||||
|
||||
msdu_metadata->l3_hdr_pad =
|
||||
HAL_RX_MSDU_END_L3_HEADER_PADDING_GET(msdu_end);
|
||||
msdu_metadata->sa_idx = HAL_RX_MSDU_END_SA_IDX_GET(msdu_end);
|
||||
msdu_metadata->da_idx = HAL_RX_MSDU_END_DA_IDX_GET(msdu_end);
|
||||
msdu_metadata->sa_sw_peer_id =
|
||||
HAL_RX_MSDU_END_SA_SW_PEER_ID_GET(msdu_end);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_get_window_address_6490(): Function to get hp/tp address
|
||||
* @hal_soc: Pointer to hal_soc
|
||||
@@ -1394,6 +1418,8 @@ struct hal_hw_txrx_ops qca6490_hal_hw_txrx_ops = {
|
||||
hal_rx_get_rx_sequence_6490,
|
||||
NULL,
|
||||
NULL,
|
||||
/* rx - msdu end fast path info fields */
|
||||
hal_rx_msdu_packet_metadata_get_6490,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_6490[] = {
|
||||
|
Reference in New Issue
Block a user