qcacmn: Add stats to indicate drop in EAPOL frames

Add the stats to indicate the packet drop for EAPOL packets.
This will be useful for the debug of EAPOL packet drop.

CRs-Fixed: 3329895
Change-Id: I5e0abb4e574116a55de124c0012c17154c7c63da
This commit is contained in:
Sreeramya Soratkal
2022-10-20 12:16:46 +05:30
committed by Madan Koyyalamudi
parent ea42cfb863
commit 97b9620964
3 changed files with 75 additions and 0 deletions

View File

@@ -2946,6 +2946,26 @@ struct cdp_pdev_stats {
uint32_t data_users[OFDMA_NUM_USERS];
} ul_ofdma;
/**
* struct eap_drop_stats: EAPOL packet drop stats information
* @tx_desc_error: Total number EAPOL packets dropped due to TX
* descriptor error
* @tx_hal_ring_access_err: Total EAPOL packets dropped due to
* HAL ring access failure
* @tx_dma_map_err: EAPOL packets dropped due to error in DMA map
* @tx_hw_enqueue: EAPOL packets dropped by the host due to failure
* in HW enqueue
* @tx_sw_enqueue: EAPOL packets dropped by the host due to failure
* in SW enqueue
*/
struct {
uint8_t tx_desc_err;
uint8_t tx_hal_ring_access_err;
uint8_t tx_dma_map_err;
uint8_t tx_hw_enqueue;
uint8_t tx_sw_enqueue;
} eap_drop_stats;
struct cdp_tso_stats tso_stats;
struct cdp_cfr_rcc_stats rcc;