qcacmn: Update netdevice stats to reflect ifconfig counters

netdevice_stats structure tx/rx/drop/error counters are assigned
proper values

Change-Id: I8e123a810a02292339a34b54bfebe3a56ae99dbd
This commit is contained in:
Anish Nataraj
2018-03-14 14:27:13 +05:30
committed by nshrivas
parent 0573462cb2
commit f12b0a3463
4 changed files with 48 additions and 13 deletions

View File

@@ -968,6 +968,24 @@ struct cdp_tx_completion_ppdu {
struct cdp_tx_completion_ppdu_user user[CDP_MU_MAX_USERS];
};
/**
* struct cdp_dev_stats - Network device stats structure
* @tx_packets: Tx total packets transmitted
* @tx_bytes : Tx total bytes transmitted
* @tx_errors : Tx error due to FW tx failure, Ring failure DMA etc
* @tx_dropped: Tx dropped is same as tx errors as above
* @rx_packets: Rx total packets transmitted
* @rx_bytes : Rx total bytes transmitted
*/
struct cdp_dev_stats {
uint32_t tx_packets;
uint32_t tx_bytes;
uint32_t tx_errors;
uint32_t tx_dropped;
uint32_t rx_packets;
uint32_t rx_bytes;
};
/**
* struct cdp_rate_stats - Tx/Rx Rate statistics
* @bw: Indicates the BW of the upcoming transmission -