qcacld-3.0: Set Netdev Tx/Rx stat counter for IPA uC data path

Netdev Tx/Rx stat counters doesn't reflect packet counter from IPA
offload data path.
Change to add Tx/Rx packet counts from IPA uC data path through IPA uC
stats query.

Change-Id: If80dee818e97f4f75407885c20ee9abf2257be7c
CRs-Fixed: 956283
This commit is contained in:
Yun Park 2017-08-22 10:58:10 -07:00 • committed by snandini
commit 2aa880cc76

View file

@ -6619,6 +6619,11 @@ static void hdd_bus_bw_work_handler(struct work_struct *work)
tx_packets += (uint64_t)ipa_tx_packets;
rx_packets += (uint64_t)ipa_rx_packets;
if (adapter) {
adapter->stats.tx_packets += ipa_tx_packets;
adapter->stats.rx_packets += ipa_rx_packets;
}
if (!connected) {
hdd_err("bus bandwidth timer running in disconnected state");
return;