qcacmn: Add cdp api to flush frags of a peer
Add cdp API to flush frags for a peer. Change-Id: I796d68dd1e547cb67f7e9262b9f6ac124271f15c Change-Id: I671419d44f8db5100cb4fc567d2cf52de9ca7beb
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
b9eedc9d3b
commit
e6a26ac369
@@ -1186,4 +1186,32 @@ cdp_dump_rx_flow_tag_stats(ol_txrx_soc_handle soc, uint8_t pdev_id,
|
|||||||
flow_info);
|
flow_info);
|
||||||
}
|
}
|
||||||
#endif /* WLAN_SUPPORT_RX_FLOW_TAG */
|
#endif /* WLAN_SUPPORT_RX_FLOW_TAG */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* cdp_peer_flush_frags() - flush frags for peer
|
||||||
|
*
|
||||||
|
* @soc - pointer to the soc
|
||||||
|
* @vdev - the data virtual device object
|
||||||
|
*
|
||||||
|
* Get peer-protocol-count drop-mask
|
||||||
|
*
|
||||||
|
* Return: peer-protocol-count drop-mask
|
||||||
|
*/
|
||||||
|
static inline
|
||||||
|
void cdp_txrx_peer_flush_frags(ol_txrx_soc_handle soc, uint8_t vdev_id,
|
||||||
|
uint8_t *peer_mac)
|
||||||
|
{
|
||||||
|
if (!soc || !soc->ops) {
|
||||||
|
dp_cdp_err("Invalid Instance:");
|
||||||
|
QDF_BUG(0);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!soc->ops->ctrl_ops ||
|
||||||
|
!soc->ops->ctrl_ops->txrx_peer_flush_frags)
|
||||||
|
return;
|
||||||
|
|
||||||
|
return soc->ops->ctrl_ops->txrx_peer_flush_frags(soc, vdev_id,
|
||||||
|
peer_mac);
|
||||||
|
}
|
||||||
#endif /* _CDP_TXRX_CTRL_H_ */
|
#endif /* _CDP_TXRX_CTRL_H_ */
|
||||||
|
@@ -684,6 +684,9 @@ struct cdp_ctrl_ops {
|
|||||||
cdp_config_param_type *val);
|
cdp_config_param_type *val);
|
||||||
|
|
||||||
void * (*txrx_get_pldev)(struct cdp_soc_t *soc, uint8_t pdev_id);
|
void * (*txrx_get_pldev)(struct cdp_soc_t *soc, uint8_t pdev_id);
|
||||||
|
void (*txrx_peer_flush_frags)(struct cdp_soc_t *soc, uint8_t vdev_id,
|
||||||
|
uint8_t *peer_mac);
|
||||||
|
|
||||||
#ifdef VDEV_PEER_PROTOCOL_COUNT
|
#ifdef VDEV_PEER_PROTOCOL_COUNT
|
||||||
void (*txrx_peer_protocol_cnt)(struct cdp_soc_t *soc,
|
void (*txrx_peer_protocol_cnt)(struct cdp_soc_t *soc,
|
||||||
int8_t vdev_id,
|
int8_t vdev_id,
|
||||||
|
Reference in New Issue
Block a user