qcacmn: CDP op to update DL flow ref count in SAWF

CDP op to update DL flow ref count in SAWF.

Change-Id: If348c53f82361f03b7457bd485d99e42d3b3431a
CRs-Fixed: 3484316
这个提交包含在:
Ripan Deuri
2023-04-25 11:08:05 +05:30
提交者 Madan Koyyalamudi
父节点 501d972a64
当前提交 534c9c36a9
修改 3 个文件,包含 32 行新增0 行删除

查看文件

@@ -364,6 +364,33 @@ cdp_sawf_peer_config_ul(ol_txrx_soc_handle soc, uint8_t *mac_addr, uint8_t tid,
add_or_sub);
}
/**
* cdp_sawf_peer_flow_count - Peer flow count in SAWF
* @soc: SOC handle
* @mac_addr: MAC address
* @svc_id: Service Class ID
* @direction: Indication of forward or reverse service class match
* @start_or_stop: Indication of start or stop
* @peer_mac: Peer MAC address
*
* Return: QDF_STATUS
*/
static inline QDF_STATUS
cdp_sawf_peer_flow_count(ol_txrx_soc_handle soc, uint8_t *mac_addr,
uint8_t svc_id, uint8_t direction,
uint8_t start_or_stop, uint8_t *peer_mac)
{
if (!soc || !soc->ops || !soc->ops->sawf_ops ||
!soc->ops->sawf_ops->sawf_peer_flow_count) {
dp_cdp_debug("Invalid Instance");
QDF_BUG(0);
return false;
}
return soc->ops->sawf_ops->sawf_peer_flow_count
(soc, mac_addr, svc_id, direction, start_or_stop, peer_mac);
}
/**
* cdp_swaf_peer_sla_configuration() - Check if sla is configured for a peer
* @soc: SOC handle