|
@@ -364,6 +364,33 @@ cdp_sawf_peer_config_ul(ol_txrx_soc_handle soc, uint8_t *mac_addr, uint8_t tid,
|
|
add_or_sub);
|
|
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
|
|
* cdp_swaf_peer_sla_configuration() - Check if sla is configured for a peer
|
|
* @soc: SOC handle
|
|
* @soc: SOC handle
|