소스 검색

qcacld-3.0: Handle Flow init ts and reo id mismatch info

When flow is added in CMEM path init time stamp is not
handled, so initialize flow init time stamp in CMEM path.

Add Fisa error print during reo id mismatch, print flow
and nbuf details which helps to debug the issue even if
local stack variables are not available in dump.

Change-Id: Ibcc44bd8558cc687279bb34267d60b9882d33a24
CRs-Fixed: 2946825
Karthik Kantamneni 3 년 전
부모
커밋
f70b8c0564
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      core/dp/txrx3.0/dp_fisa_rx.c

+ 3 - 0
core/dp/txrx3.0/dp_fisa_rx.c

@@ -828,6 +828,7 @@ static void dp_fisa_rx_fst_update(struct dp_rx_fst *fisa_hdl,
 				     rx_flow_tuple_info,
 				     rx_flow_tuple_info,
 				     sizeof(struct cdp_rx_flow_tuple_info));
 				     sizeof(struct cdp_rx_flow_tuple_info));
 
 
+			sw_ft_entry->flow_init_ts = qdf_get_log_timestamp();
 			sw_ft_entry->is_flow_tcp = elem->is_tcp_flow;
 			sw_ft_entry->is_flow_tcp = elem->is_tcp_flow;
 			sw_ft_entry->is_flow_udp = elem->is_udp_flow;
 			sw_ft_entry->is_flow_udp = elem->is_udp_flow;
 
 
@@ -1654,6 +1655,8 @@ static int dp_add_nbuf_to_fisa_flow(struct dp_rx_fst *fisa_hdl,
 	 * the one configured.
 	 * the one configured.
 	 */
 	 */
 	if (qdf_unlikely(fisa_flow->napi_id != napi_id)) {
 	if (qdf_unlikely(fisa_flow->napi_id != napi_id)) {
+		dp_err("REO id mismatch flow: %pK napi_id: %u nbuf: %pK reo_id: %u",
+		       fisa_flow, fisa_flow->napi_id, nbuf, napi_id);
 		QDF_BUG(0);
 		QDF_BUG(0);
 		DP_STATS_INC(fisa_hdl, reo_mismatch, 1);
 		DP_STATS_INC(fisa_hdl, reo_mismatch, 1);
 		return FISA_AGGR_NOT_ELIGIBLE;
 		return FISA_AGGR_NOT_ELIGIBLE;