diff --git a/dp/inc/cdp_txrx_ctrl.h b/dp/inc/cdp_txrx_ctrl.h index f74e5a89d6..9b7aa63b71 100644 --- a/dp/inc/cdp_txrx_ctrl.h +++ b/dp/inc/cdp_txrx_ctrl.h @@ -1186,4 +1186,32 @@ cdp_dump_rx_flow_tag_stats(ol_txrx_soc_handle soc, uint8_t pdev_id, flow_info); } #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_ */ diff --git a/dp/inc/cdp_txrx_ops.h b/dp/inc/cdp_txrx_ops.h index 599d61ffcc..751edacdc3 100644 --- a/dp/inc/cdp_txrx_ops.h +++ b/dp/inc/cdp_txrx_ops.h @@ -684,6 +684,9 @@ struct cdp_ctrl_ops { cdp_config_param_type *val); 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 void (*txrx_peer_protocol_cnt)(struct cdp_soc_t *soc, int8_t vdev_id,