qcacmn: Add start sequence update count to rx stats

add ssn_updates_count to dp_soc_stats rx err stats.
Also add bar fail count on rx tid update during
bar handling.

Change-Id: Ic9a963c8d29ace2087e63cba56bc0d7e40907e1a
CRs-Fixed: 2918806
这个提交包含在:
sandhu
2021-04-13 21:49:13 -07:00
提交者 Madan Koyyalamudi
父节点 43e51ba3d8
当前提交 49846e25ef
修改 3 个文件,包含 20 行新增3 行删除

查看文件

@@ -779,6 +779,7 @@ void dp_rx_err_handle_bar(struct dp_soc *soc,
unsigned char type, subtype;
uint16_t start_seq_num;
uint32_t tid;
QDF_STATUS status;
struct ieee80211_frame_bar *bar;
/*
@@ -807,9 +808,15 @@ void dp_rx_err_handle_bar(struct dp_soc *soc,
dp_info_rl("tid %u window_size %u start_seq_num %u",
tid, peer->rx_tid[tid].ba_win_size, start_seq_num);
dp_rx_tid_update_wifi3(peer, tid,
status = dp_rx_tid_update_wifi3(peer, tid,
peer->rx_tid[tid].ba_win_size,
start_seq_num);
if (status != QDF_STATUS_SUCCESS) {
dp_err_rl("failed to handle bar frame update rx tid");
DP_STATS_INC(soc, rx.err.bar_handle_fail_count, 1);
} else {
DP_STATS_INC(soc, rx.err.ssn_update_count, 1);
}
}
/**

查看文件

@@ -6630,6 +6630,12 @@ dp_print_soc_rx_stats(struct dp_soc *soc)
DP_PRINT_STATS("Rx err msdu continuation err: %d",
soc->stats.rx.err.msdu_continuation_err);
DP_PRINT_STATS("ssn update count: %d",
soc->stats.rx.err.ssn_update_count);
DP_PRINT_STATS("bar handle update fail count: %d",
soc->stats.rx.err.bar_handle_fail_count);
for (i = 0; i < HAL_RXDMA_ERR_MAX; i++) {
index += qdf_snprint(&rxdma_error[index],
DP_RXDMA_ERR_LENGTH - index,

查看文件

@@ -1015,6 +1015,10 @@ struct dp_soc_stats {
uint32_t reo_err_oor_eapol_drop;
/* Non Eapol packet drop count due to peer not authorized */
uint32_t peer_unauth_rx_pkt_drop;
/* count of start sequence (ssn) updates */
uint32_t ssn_update_count;
/* count of bar handling fail */
uint32_t bar_handle_fail_count;
} err;
/* packet count per core - per ring */