qcacmn: ast entry reset api for son
API to reset ast entry for son, ast entry active field will be set on call of reset_api and all the ast entry active field will reset on call of reset_table api, ast_flush api will delete enteries in table Change-Id: I26ed0fff818a112348a7aefba3b028ed40b2fe26 CRs-Fixed: 2209095
Dieser Commit ist enthalten in:

committet von
nshrivas

Ursprung
414d2e790c
Commit
89219d97b4
@@ -257,6 +257,24 @@ static inline void cdp_peer_setup
|
||||
peer);
|
||||
}
|
||||
|
||||
static inline void *cdp_peer_ast_hash_find
|
||||
(ol_txrx_soc_handle soc, uint8_t *ast_mac_addr)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s: Invalid Instance:", __func__);
|
||||
QDF_BUG(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!soc->ops->cmn_drv_ops ||
|
||||
!soc->ops->cmn_drv_ops->txrx_peer_ast_hash_find)
|
||||
return NULL;
|
||||
|
||||
return soc->ops->cmn_drv_ops->txrx_peer_ast_hash_find(soc,
|
||||
ast_mac_addr);
|
||||
}
|
||||
|
||||
static inline int cdp_peer_add_ast
|
||||
(ol_txrx_soc_handle soc, struct cdp_peer *peer_handle,
|
||||
uint8_t *mac_addr, enum cdp_txrx_ast_entry_type type, uint32_t flags)
|
||||
@@ -279,8 +297,59 @@ static inline int cdp_peer_add_ast
|
||||
flags);
|
||||
}
|
||||
|
||||
static inline void cdp_peer_reset_ast
|
||||
(ol_txrx_soc_handle soc, uint8_t *wds_macaddr)
|
||||
{
|
||||
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s: Invalid Instance:", __func__);
|
||||
QDF_BUG(0);
|
||||
return;
|
||||
}
|
||||
if (!soc->ops->cmn_drv_ops ||
|
||||
!soc->ops->cmn_drv_ops->txrx_peer_reset_ast)
|
||||
return;
|
||||
|
||||
soc->ops->cmn_drv_ops->txrx_peer_reset_ast(soc, wds_macaddr);
|
||||
}
|
||||
|
||||
static inline void cdp_peer_reset_ast_table
|
||||
(ol_txrx_soc_handle soc)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s: Invalid Instance:", __func__);
|
||||
QDF_BUG(0);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!soc->ops->cmn_drv_ops ||
|
||||
!soc->ops->cmn_drv_ops->txrx_peer_reset_ast_table)
|
||||
return;
|
||||
|
||||
soc->ops->cmn_drv_ops->txrx_peer_reset_ast_table(soc);
|
||||
}
|
||||
|
||||
static inline void cdp_peer_flush_ast_table
|
||||
(ol_txrx_soc_handle soc)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s: Invalid Instance:", __func__);
|
||||
QDF_BUG(0);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!soc->ops->cmn_drv_ops ||
|
||||
!soc->ops->cmn_drv_ops->txrx_peer_flush_ast_table)
|
||||
return;
|
||||
|
||||
soc->ops->cmn_drv_ops->txrx_peer_flush_ast_table(soc);
|
||||
}
|
||||
|
||||
static inline int cdp_peer_update_ast
|
||||
(ol_txrx_soc_handle soc, void *ast_handle,
|
||||
(ol_txrx_soc_handle soc, uint8_t *wds_macaddr,
|
||||
struct cdp_peer *peer_handle, uint32_t flags)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
@@ -294,9 +363,10 @@ static inline int cdp_peer_update_ast
|
||||
!soc->ops->cmn_drv_ops->txrx_peer_update_ast)
|
||||
return 0;
|
||||
|
||||
|
||||
return soc->ops->cmn_drv_ops->txrx_peer_update_ast(soc,
|
||||
peer_handle,
|
||||
ast_handle,
|
||||
wds_macaddr,
|
||||
flags);
|
||||
}
|
||||
|
||||
@@ -317,23 +387,6 @@ static inline void cdp_peer_del_ast
|
||||
soc->ops->cmn_drv_ops->txrx_peer_del_ast(soc, ast_handle);
|
||||
}
|
||||
|
||||
static inline void *cdp_peer_ast_hash_find
|
||||
(ol_txrx_soc_handle soc, uint8_t *ast_mac_addr)
|
||||
{
|
||||
if (!soc || !soc->ops) {
|
||||
QDF_TRACE(QDF_MODULE_ID_CDP, QDF_TRACE_LEVEL_DEBUG,
|
||||
"%s: Invalid Instance:", __func__);
|
||||
QDF_BUG(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (!soc->ops->cmn_drv_ops ||
|
||||
!soc->ops->cmn_drv_ops->txrx_peer_ast_hash_find)
|
||||
return NULL;
|
||||
|
||||
return soc->ops->cmn_drv_ops->txrx_peer_ast_hash_find(soc,
|
||||
ast_mac_addr);
|
||||
}
|
||||
|
||||
static inline uint8_t cdp_peer_ast_get_pdev_id
|
||||
(ol_txrx_soc_handle soc, void *ast_handle)
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren