qcacmn: HTT support for optional wifi datapath

This change adds rx filter reservation, addition,
deletion anad release support for optional wifi datapath
feature. The parameters required for the rx CCE filters,
are passed to FW in the HTT message. FW responds with the
result of the request. Rx data packets matching the applied
filter parameters are routed to specific REO rings.

Change-Id: I6762912bbb2aefce940d6fa3cea4871a7c89409c
CRs-Fixed: 3401148
This commit is contained in:
Namita Nair
2023-02-08 15:21:14 -08:00
committed by Madan Koyyalamudi
parent a33b4b04bb
commit 23628bf248
2 changed files with 244 additions and 2 deletions

View File

@@ -199,6 +199,10 @@ void htt_htc_pkt_pool_free(struct htt_soc *soc);
#define dp_htt_tx_stats_debug(params...) QDF_TRACE_DEBUG(QDF_MODULE_ID_DP_HTT_TX_STATS, params)
#define RXMON_GLOBAL_EN_SHIFT 28
#ifdef IPA_OPT_WIFI_DP
#define MAX_RESERVE_FAIL_ATTEMPT 5
#endif
/**
* enum dp_full_mon_config - enum to enable/disable full monitor mode
*
@@ -263,6 +267,8 @@ struct htt_soc {
int fail_count;
/* rtpm put skip count for ver req msg */
int htt_ver_req_put_skip;
int reserve_fail_cnt;
int abort_count;
} stats;
HTT_TX_MUTEX_TYPE htt_tx_mutex;
@@ -1117,4 +1123,17 @@ dp_htt_get_mon_htt_ring_id(struct dp_soc *soc,
return htt_srng_id;
}
#ifdef IPA_OPT_WIFI_DP
/**
* htt_h2t_rx_cce_super_rule_setup() - htt message to set cce super rules
*
* @htt_soc: HTT Soc handle
* @flt_params: Filter tuple
*
* Return: QDF_STATUS
*/
QDF_STATUS htt_h2t_rx_cce_super_rule_setup(struct htt_soc *htt_soc,
void *flt_params);
#endif
#endif /* _DP_HTT_H_ */