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
This commit is contained in:
Venkata Sharath Chandra Manchala
2019-03-18 14:05:35 -07:00
committed by nshrivas
parent 22953dc004
commit b43ed1cd1a

View File

@@ -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))) if (qdf_likely(!qdf_nbuf_is_rx_chfrag_cont(rx_desc->nbuf)))
quota -= 1; quota -= 1;
dp_rx_add_to_free_desc_list(&head[rx_desc->pool_id], dp_rx_add_to_free_desc_list(&head[rx_desc->pool_id],
&tail[rx_desc->pool_id], &tail[rx_desc->pool_id],
rx_desc); rx_desc);
@@ -1655,9 +1654,6 @@ done:
if (nbuf_tail) if (nbuf_tail)
QDF_NBUF_CB_RX_FLUSH_IND(nbuf_tail) = 1; 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++) { for (mac_id = 0; mac_id < MAX_PDEV_CNT; mac_id++) {
/* /*
* continue with next mac_id if no pkts were reaped * continue with next mac_id if no pkts were reaped
@@ -1948,6 +1944,9 @@ done:
dp_peer_unref_del_find_by_id(peer); 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) if (deliver_list_head)
dp_rx_deliver_to_stack(vdev, peer, deliver_list_head, dp_rx_deliver_to_stack(vdev, peer, deliver_list_head,
deliver_list_tail); deliver_list_tail);