qcacmn: Setup CDP interface for flushing RX queue
Refactor flush rx queue function call based on soc by adding an interface to CDP funtion indirection table. Change-Id: Iea201553f555a6c317cf37e586433aa493e51623 CRs-fixed: 2023399
This commit is contained in:
committed by
Sandeep Puligilla
parent
53e7fb8fa3
commit
e2fa8b7861
@@ -445,6 +445,17 @@ static inline void cdp_set_pdev_dscp_tid_map(ol_txrx_soc_handle soc,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* cdp_flush_cache_rx_queue() - flush cache rx queue frame
|
||||||
|
*
|
||||||
|
* Return: None
|
||||||
|
*/
|
||||||
|
static inline void cdp_flush_cache_rx_queue(ol_txrx_soc_handle soc)
|
||||||
|
{
|
||||||
|
if (soc->ops->cmn_drv_ops->flush_cache_rx_queue)
|
||||||
|
soc->ops->cmn_drv_ops->flush_cache_rx_queue();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* cdp_txrx_stats(): function to map to host and firmware statistics
|
* cdp_txrx_stats(): function to map to host and firmware statistics
|
||||||
* @soc: soc handle
|
* @soc: soc handle
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ struct cdp_cmn_ops {
|
|||||||
void (*set_vdev_dscp_tid_map)(struct cdp_vdev *vdev_handle,
|
void (*set_vdev_dscp_tid_map)(struct cdp_vdev *vdev_handle,
|
||||||
uint8_t map_id);
|
uint8_t map_id);
|
||||||
|
|
||||||
|
void (*flush_cache_rx_queue)(void);
|
||||||
void (*set_pdev_dscp_tid_map)(struct cdp_pdev *pdev, uint8_t map_id,
|
void (*set_pdev_dscp_tid_map)(struct cdp_pdev *pdev, uint8_t map_id,
|
||||||
uint8_t tos, uint8_t tid);
|
uint8_t tos, uint8_t tid);
|
||||||
|
|
||||||
|
|||||||
@@ -2897,6 +2897,7 @@ static struct cdp_cmn_ops dp_ops_cmn = {
|
|||||||
.addba_responsesetup = dp_addba_responsesetup_wifi3,
|
.addba_responsesetup = dp_addba_responsesetup_wifi3,
|
||||||
.delba_process = dp_delba_process_wifi3,
|
.delba_process = dp_delba_process_wifi3,
|
||||||
.get_peer_mac_addr_frm_id = dp_get_peer_mac_addr_frm_id,
|
.get_peer_mac_addr_frm_id = dp_get_peer_mac_addr_frm_id,
|
||||||
|
.flush_cache_rx_queue = NULL,
|
||||||
/* TODO: get API's for dscp-tid need to be added*/
|
/* TODO: get API's for dscp-tid need to be added*/
|
||||||
.set_vdev_dscp_tid_map = dp_set_vdev_dscp_tid_map_wifi3,
|
.set_vdev_dscp_tid_map = dp_set_vdev_dscp_tid_map_wifi3,
|
||||||
.set_pdev_dscp_tid_map = dp_set_pdev_dscp_tid_map_wifi3,
|
.set_pdev_dscp_tid_map = dp_set_pdev_dscp_tid_map_wifi3,
|
||||||
|
|||||||
Reference in New Issue
Block a user