Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 445c5c81 authored by Rakesh Pillai's avatar Rakesh Pillai Committed by snandini
Browse files

qcacmn: Add stats for stale cookie read from rx ring

Add a count for the number of times we read a stale
cookie value from the REO2SW ring.

Change-Id: I4b20fa93f5261b4ccb9479b7b3469a294703a184
CRs-Fixed: 2736028
parent de91fcc5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2051,6 +2051,7 @@ uint32_t dp_rx_process(struct dp_intr *int_ctx, hal_ring_handle_t hal_ring_hdl,
		rx_buf_cookie = HAL_RX_REO_BUF_COOKIE_GET(ring_desc);
		status = dp_rx_cookie_check_and_invalidate(ring_desc);
		if (qdf_unlikely(QDF_IS_STATUS_ERROR(status))) {
			DP_STATS_INC(soc, rx.err.stale_cookie, 1);
			break;
		}

+6 −1
Original line number Diff line number Diff line
@@ -5539,8 +5539,10 @@ void dp_txrx_path_stats(struct dp_soc *soc)
			       pdev->soc->stats.rx.err.defrag_peer_uninit);
		DP_PRINT_STATS("pkts delivered no peer %u",
			       pdev->soc->stats.rx.err.pkt_delivered_no_peer);
		DP_PRINT_STATS("RX invalid cookie: %d",
		DP_PRINT_STATS("RX stale cookie: %d",
			       soc->stats.rx.err.invalid_cookie);
		DP_PRINT_STATS("RX invalid cookie: %d",
			       soc->stats.rx.err.stale_cookie);
		DP_PRINT_STATS("2k jump delba sent: %u",
			       pdev->soc->stats.rx.err.rx_2k_jump_delba_sent);
		DP_PRINT_STATS("2k jump msdu to stack: %u",
@@ -6072,6 +6074,9 @@ dp_print_soc_rx_stats(struct dp_soc *soc)
	DP_PRINT_STATS("RX invalid cookie: %d",
		       soc->stats.rx.err.invalid_cookie);

	DP_PRINT_STATS("RX stale cookie: %d",
		       soc->stats.rx.err.stale_cookie);

	DP_PRINT_STATS("RX wait completed msdu break: %d",
		       soc->stats.rx.msdu_scatter_wait_break);

+2 −0
Original line number Diff line number Diff line
@@ -813,6 +813,8 @@ struct dp_soc_stats {
			uint32_t scatter_msdu;
			/* RX msdu drop count due to invalid cookie */
			uint32_t invalid_cookie;
			/* Count of stale cookie read in RX path */
			uint32_t stale_cookie;
			/* Delba sent count due to RX 2k jump */
			uint32_t rx_2k_jump_delba_sent;
			/* RX 2k jump msdu indicated to stack count */