From dc0dda1024299391aac6f1a33458727dffca3566 Mon Sep 17 00:00:00 2001 From: Karthik Kantamneni Date: Mon, 24 May 2021 21:43:10 +0530 Subject: [PATCH] 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 --- core/dp/txrx3.0/dp_fisa_rx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/dp/txrx3.0/dp_fisa_rx.c b/core/dp/txrx3.0/dp_fisa_rx.c index eed17a9f9ef0..61d407758616 100644 --- a/core/dp/txrx3.0/dp_fisa_rx.c +++ b/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, 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_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. */ 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); DP_STATS_INC(fisa_hdl, reo_mismatch, 1); return FISA_AGGR_NOT_ELIGIBLE;