Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e1becb3 authored by Mohammed Javid's avatar Mohammed Javid
Browse files

msm: ipa: Fix to incorrect dl stats



DL stats from Q6 include the additional LAN/WLAN
header bytes for respective endpoint. Make a change to
deduct the header bytes to keep the stats
accurate.

Reverting the changes done as part of
commit id:98022549

Change-Id: I50683cd3c9b00794292dfb241293356d4566d39e
Signed-off-by: default avatarMohammed Javid <mjavid@codeaurora.org>
parent b917824a
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -3396,13 +3396,19 @@ int rmnet_ipa3_query_per_client_stats(
				&& i < IPA_MAX_NUM_HW_PATH_CLIENTS; i++) {
			/* Subtract the header bytes from the DL bytes. */
			data->client_info[i].ipv4_rx_bytes =
			resp->per_client_stats_list[i].num_dl_ipv4_bytes;
			(resp->per_client_stats_list[i].num_dl_ipv4_bytes) -
			(rmnet_ipa3_ctx->
			tether_device[data->device_type].hdr_len *
			resp->per_client_stats_list[i].num_dl_ipv4_pkts);
			/* UL header bytes are subtracted by Q6. */
			data->client_info[i].ipv4_tx_bytes =
			resp->per_client_stats_list[i].num_ul_ipv4_bytes;
			/* Subtract the header bytes from the DL bytes. */
			data->client_info[i].ipv6_rx_bytes =
			resp->per_client_stats_list[i].num_dl_ipv6_bytes;
			(resp->per_client_stats_list[i].num_dl_ipv6_bytes) -
			(rmnet_ipa3_ctx->
			tether_device[data->device_type].hdr_len *
			resp->per_client_stats_list[i].num_dl_ipv6_pkts);
			/* UL header bytes are subtracted by Q6. */
			data->client_info[i].ipv6_tx_bytes =
			resp->per_client_stats_list[i].num_ul_ipv6_bytes;