qcacmn: Modify CDP AST APIs to synchronize add and delete cmds to FW

Change the CDP abstraction APIs for ast entry find, add and delete
to avoid external references for ast entry in upper layers

Process the HTT v2 peer map messages which will be enabled for
nexthop ast entries and use these messages instead of WMI event
for HKv1 WAR where we have to wait for delete confirmation from
target event which is processed in control path

Change-Id: Ifa91a259c0762344deb8ab89e868fc5554d75543
CRs-fixed: 2354951
This commit is contained in:
Chaithanya Garrepalli
2018-11-16 18:30:41 +05:30
committed by nshrivas
parent d6bdb6eb36
commit 9cc562c53b
10 changed files with 699 additions and 621 deletions

View File

@@ -107,52 +107,29 @@ struct cdp_cmn_ops {
uint8_t *mac_addr, enum cdp_txrx_ast_entry_type type,
uint32_t flags);
void (*txrx_peer_del_ast)
(ol_txrx_soc_handle soc, void *ast_hdl);
int (*txrx_peer_update_ast)
(ol_txrx_soc_handle soc, struct cdp_peer *peer_hdl,
uint8_t *mac_addr, uint32_t flags);
void *(*txrx_peer_ast_hash_find_soc)
(ol_txrx_soc_handle soc, uint8_t *ast_mac_addr);
void *(*txrx_peer_ast_hash_find_by_pdevid)
bool (*txrx_peer_get_ast_info_by_soc)
(ol_txrx_soc_handle soc, uint8_t *ast_mac_addr,
uint8_t pdev_id);
struct cdp_ast_entry_info *ast_entry_info);
uint8_t (*txrx_peer_ast_get_pdev_id)
(ol_txrx_soc_handle soc, void *ast_hdl);
bool (*txrx_peer_get_ast_info_by_pdev)
(ol_txrx_soc_handle soc, uint8_t *ast_mac_addr,
uint8_t pdev_id,
struct cdp_ast_entry_info *ast_entry_info);
uint8_t (*txrx_peer_ast_get_next_hop)
(ol_txrx_soc_handle soc, void *ast_hdl);
QDF_STATUS (*txrx_peer_ast_delete_by_soc)
(ol_txrx_soc_handle soc, uint8_t *ast_mac_addr,
txrx_ast_free_cb callback,
void *cookie);
void (*txrx_peer_ast_set_type)
(ol_txrx_soc_handle soc, void *ast_hdl,
enum cdp_txrx_ast_entry_type type);
#if defined(FEATURE_AST) && defined(AST_HKV1_WORKAROUND)
void (*txrx_peer_ast_set_cp_ctx)(ol_txrx_soc_handle soc,
void *ast_entry,
void *cp_ctx);
void * (*txrx_peer_ast_get_cp_ctx)(ol_txrx_soc_handle soc,
void *ast_entry);
bool (*txrx_peer_ast_get_wmi_sent)(ol_txrx_soc_handle soc,
void *ast_entry);
void (*txrx_peer_ast_free_entry)(ol_txrx_soc_handle soc,
void *ast_entry);
#endif
enum cdp_txrx_ast_entry_type (*txrx_peer_ast_get_type)
(ol_txrx_soc_handle soc, void *ast_hdl);
struct cdp_peer* (*txrx_peer_ast_get_peer)
(ol_txrx_soc_handle soc, void *ast_hdl);
uint32_t (*txrx_peer_ast_get_nexthop_peer_id)
(ol_txrx_soc_handle soc, void *ast_hdl);
QDF_STATUS (*txrx_peer_ast_delete_by_pdev)
(ol_txrx_soc_handle soc, uint8_t *ast_mac_addr,
uint8_t pdev_id,
txrx_ast_free_cb callback,
void *cookie);
void (*txrx_peer_delete)(void *peer, uint32_t bitmap);
@@ -887,9 +864,6 @@ struct ol_if_ops {
uint32_t flags);
void (*peer_del_wds_entry)(void *ol_soc_handle,
uint8_t *wds_macaddr);
#if defined(FEATURE_AST) && defined(AST_HKV1_WORKAROUND)
void (*peer_del_wds_cp_ctx)(void *cp_ctx);
#endif
QDF_STATUS
(*lro_hash_config)(struct cdp_ctrl_objmgr_pdev *ctrl_pdev,
struct cdp_lro_hash_config *rx_offld_hash);