qcacld-3.0: Update IPA uC TXRX stats to adapter stats
Update the queried IPA uC TXRX stats to adapter netdev stats. Change-Id: Ib6b112c8891da753be3782ff621191e5edc4d925 CRs-Fixed: 2226666
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
ff57900b5c
commit
9b3baba08a
@@ -382,8 +382,15 @@ void hdd_ipa_send_skb_to_network(qdf_nbuf_t skb, qdf_netdev_t dev)
|
|||||||
cpu_index = wlan_hdd_get_cpu();
|
cpu_index = wlan_hdd_get_cpu();
|
||||||
|
|
||||||
++adapter->hdd_stats.tx_rx_stats.rx_packets[cpu_index];
|
++adapter->hdd_stats.tx_rx_stats.rx_packets[cpu_index];
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Update STA RX exception packet stats.
|
||||||
|
* For SAP as part of IPA HW stats are updated.
|
||||||
|
*/
|
||||||
|
if (adapter->device_mode == QDF_STA_MODE) {
|
||||||
++adapter->stats.rx_packets;
|
++adapter->stats.rx_packets;
|
||||||
adapter->stats.rx_bytes += skb->len;
|
adapter->stats.rx_bytes += skb->len;
|
||||||
|
}
|
||||||
|
|
||||||
result = hdd_ipa_aggregated_rx_ind(skb);
|
result = hdd_ipa_aggregated_rx_ind(skb);
|
||||||
if (result == NET_RX_SUCCESS)
|
if (result == NET_RX_SUCCESS)
|
||||||
|
@@ -7279,6 +7279,9 @@ static void hdd_bus_bw_work_handler(struct work_struct *work)
|
|||||||
tx_packets += (uint64_t)ipa_tx_packets;
|
tx_packets += (uint64_t)ipa_tx_packets;
|
||||||
rx_packets += (uint64_t)ipa_rx_packets;
|
rx_packets += (uint64_t)ipa_rx_packets;
|
||||||
|
|
||||||
|
adapter->stats.tx_packets += ipa_tx_packets;
|
||||||
|
adapter->stats.rx_packets += ipa_rx_packets;
|
||||||
|
|
||||||
ucfg_ipa_set_perf_level(hdd_ctx->hdd_pdev, tx_packets, rx_packets);
|
ucfg_ipa_set_perf_level(hdd_ctx->hdd_pdev, tx_packets, rx_packets);
|
||||||
ucfg_ipa_uc_stat_request(hdd_ctx->hdd_pdev, 2);
|
ucfg_ipa_uc_stat_request(hdd_ctx->hdd_pdev, 2);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user