qcacmn: Add API to fetch ast entry by mac and ast type

Add API to fetch ast entry by mac and ast type

Change-Id: Ib8cfa5c269fd10c149804d02fcfae35e88c2a53f
CRs-Fixed: 3614965
This commit is contained in:
Neha Bisht
2023-09-14 12:59:44 +05:30
committad av Rahul Choudhary
förälder 77cbd24eb2
incheckning 2e13c17be4
3 ändrade filer med 56 tillägg och 1 borttagningar

Visa fil

@@ -896,6 +896,23 @@ struct dp_ast_entry *dp_peer_ast_hash_find_by_vdevid(struct dp_soc *soc,
struct dp_ast_entry *dp_peer_ast_hash_find_soc(struct dp_soc *soc,
uint8_t *ast_mac_addr);
/**
* dp_peer_ast_hash_find_soc_by_type() - Find AST entry by MAC address
* and AST type
* @soc: SoC handle
* @ast_mac_addr: Mac address
* @type: AST entry type
*
* It assumes caller has taken the ast lock to protect the access to
* AST hash table
*
* Return: AST entry
*/
struct dp_ast_entry *dp_peer_ast_hash_find_soc_by_type(
struct dp_soc *soc,
uint8_t *ast_mac_addr,
enum cdp_txrx_ast_entry_type type);
/**
* dp_peer_ast_get_pdev_id() - get pdev_id from the ast entry
* @soc: SoC handle