qcacmn: Add method to configure TID queues flush

This enables the option to configure when a peer's
TID queue needs to be flushed. This is required to
discard packets that are no longer useful to the application.

Change-Id: I558debff043fc0c8038e5f5f2c815b64c90e1561
CRs-Fixed: 3130422
This commit is contained in:
Madhvapathi Sriram
2022-05-06 13:56:42 +05:30
committad av Madan Koyyalamudi
förälder f666bb4d71
incheckning f4bfa6616b
10 ändrade filer med 422 tillägg och 2 borttagningar

Visa fil

@@ -213,4 +213,30 @@ target_if_update_wds_entry(struct cdp_ctrl_objmgr_psoc *soc, uint8_t vdev_id,
return QDF_STATUS_SUCCESS;
}
#endif /* FEATURE_MCL_REPEATER */
#endif
#ifdef WLAN_FEATURE_PEER_TXQ_FLUSH_CONF
/**
* target_if_peer_txq_flush_config() - Send flush command for pending frames
* @psoc: psoc handle pointer
* @vdev_id: VDEV id
* @mac: MAC addr of peer for which the tx queue flush is intended
* @ac: AC mask for identifying the tx queues to be flushed
* @tid: TID mask for identifying the tx queues to be flushed
* @policy: Defines the flush policy
*
* Return: 0 for success or error code
*/
int target_if_peer_txq_flush_config(struct cdp_ctrl_objmgr_psoc *psoc,
uint8_t vdev_id, uint8_t *mac,
uint8_t ac, uint32_t tid, uint32_t policy);
#else
static inline int
target_if_peer_txq_flush_config(struct cdp_ctrl_objmgr_psoc *psoc,
uint8_t vdev_id, uint8_t *mac,
uint8_t ac, uint32_t tid,
enum cdp_peer_txq_flush_policy policy)
{
return 0;
}
#endif /* WLAN_FEATURE_PEER_TXQ_FLUSH_CONF */
#endif /* _WLAN_TARGET_IF_DP_H_ */