qcacmn: Add hal_rx_tlv_get_tcp_chksum API
Implement hal_rx_tlv_get_tcp_chksum API to retrieve tcp_udp_checksum value based on the chipset. Change-Id: Ifab970f10af06f8c0cdbd14d57cb66b49bae1648 CRs-Fixed: 2522133
This commit is contained in:

zatwierdzone przez
nshrivas

rodzic
1059fae62c
commit
5c5d409000
@@ -943,6 +943,18 @@ hal_rx_msdu_get_flow_params_8074v2(uint8_t *buf,
|
||||
*flow_index = HAL_RX_MSDU_END_FLOW_IDX_GET(msdu_end);
|
||||
}
|
||||
|
||||
/**
|
||||
* hal_rx_tlv_get_tcp_chksum_8074v2() - API to get tcp checksum
|
||||
* @buf: rx_tlv_hdr
|
||||
*
|
||||
* Return: tcp checksum
|
||||
*/
|
||||
static uint16_t
|
||||
hal_rx_tlv_get_tcp_chksum_8074v2(uint8_t *buf)
|
||||
{
|
||||
return HAL_RX_TLV_GET_TCP_CHKSUM(buf);
|
||||
}
|
||||
|
||||
struct hal_hw_txrx_ops qca8074v2_hal_hw_txrx_ops = {
|
||||
|
||||
/* init and setup */
|
||||
@@ -1028,6 +1040,7 @@ struct hal_hw_txrx_ops qca8074v2_hal_hw_txrx_ops = {
|
||||
hal_rx_msdu_fse_metadata_get_8074v2,
|
||||
hal_rx_msdu_cce_metadata_get_8074v2,
|
||||
hal_rx_msdu_get_flow_params_8074v2,
|
||||
hal_rx_tlv_get_tcp_chksum_8074v2,
|
||||
};
|
||||
|
||||
struct hal_hw_srng_config hw_srng_table_8074v2[] = {
|
||||
|
@@ -322,6 +322,14 @@ UNIFIED_RX_MSDU_DETAILS_2_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_OFFSET))
|
||||
RX_MSDU_END_16_CCE_METADATA_MASK, \
|
||||
RX_MSDU_END_16_CCE_METADATA_LSB))
|
||||
|
||||
#define HAL_RX_TLV_GET_TCP_CHKSUM(buf) \
|
||||
(_HAL_MS( \
|
||||
(*_OFFSET_TO_WORD_PTR(&(((struct rx_pkt_tlvs *)(buf))->\
|
||||
msdu_end_tlv.rx_msdu_end), \
|
||||
RX_MSDU_END_1_TCP_UDP_CHKSUM_OFFSET)), \
|
||||
RX_MSDU_END_1_TCP_UDP_CHKSUM_MASK, \
|
||||
RX_MSDU_END_1_TCP_UDP_CHKSUM_LSB))
|
||||
|
||||
/*
|
||||
* hal_rx_msdu_start_nss_get_8074v2(): API to get the NSS
|
||||
* Interval from rx_msdu_start
|
||||
|
Reference in New Issue
Block a user