qcacmn: add CDP function to process CP peer delete response

Add a CDP function which processes the peer delete response
and deletes the static ast entry for the peer

Change-Id: Id646979ed07bd82609ca08e7ef3201382d07b1de
CRs-fixed: 2385115
这个提交包含在:
Pavankumar Nandeshwar
2019-01-24 12:53:13 +05:30
提交者 nshrivas
父节点 12a6840949
当前提交 1ab908e62b
修改 5 个文件,包含 128 行新增46 行删除

查看文件

@@ -363,6 +363,34 @@ static inline void cdp_peer_setup
peer);
}
/*
* cdp_cp_peer_del_response - Call the peer delete response handler
* @soc: Datapath SOC handle
* @vdev_hdl: virtual device object
* @peer_mac_addr: Mac address of the peer
*
* Return: void
*/
static inline void cdp_cp_peer_del_response
(ol_txrx_soc_handle soc,
struct cdp_vdev *vdev_hdl,
uint8_t *peer_mac_addr)
{
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_cp_peer_del_response)
return;
return soc->ops->cmn_drv_ops->txrx_cp_peer_del_response(soc,
vdev_hdl,
peer_mac_addr);
}
/**
* cdp_peer_get_ast_info_by_soc() - search the soc AST hash table
* and return ast entry information