From b43ed1cd1a5ce9ed74c18d96bbfcb5c013b8f144 Mon Sep 17 00:00:00 2001 From: Venkata Sharath Chandra Manchala Date: Mon, 18 Mar 2019 14:05:35 -0700 Subject: [PATCH] qcacmn: Update rx histogram stats appropriately Increment number of packets processed per pdev per interrupt before updating rx histogram stats counter. Change-Id: I0d6c59a6a115df168f7755ce94faa90dcc753e13 CRs-Fixed: 2418384 --- dp/wifi3.0/dp_rx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dp/wifi3.0/dp_rx.c b/dp/wifi3.0/dp_rx.c index dc5b2fe66cb3..1395eccd5ba4 100644 --- a/dp/wifi3.0/dp_rx.c +++ b/dp/wifi3.0/dp_rx.c @@ -1644,7 +1644,6 @@ uint32_t dp_rx_process(struct dp_intr *int_ctx, void *hal_ring, if (qdf_likely(!qdf_nbuf_is_rx_chfrag_cont(rx_desc->nbuf))) quota -= 1; - dp_rx_add_to_free_desc_list(&head[rx_desc->pool_id], &tail[rx_desc->pool_id], rx_desc); @@ -1655,9 +1654,6 @@ done: if (nbuf_tail) QDF_NBUF_CB_RX_FLUSH_IND(nbuf_tail) = 1; - /* Update histogram statistics by looping through pdev's */ - DP_RX_HIST_STATS_PER_PDEV(); - for (mac_id = 0; mac_id < MAX_PDEV_CNT; mac_id++) { /* * continue with next mac_id if no pkts were reaped @@ -1948,6 +1944,9 @@ done: dp_peer_unref_del_find_by_id(peer); } + /* Update histogram statistics by looping through pdev's */ + DP_RX_HIST_STATS_PER_PDEV(); + if (deliver_list_head) dp_rx_deliver_to_stack(vdev, peer, deliver_list_head, deliver_list_tail);