Loading drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c +18 −4 Original line number Diff line number Diff line Loading @@ -63,6 +63,13 @@ int ipa_hw_stats_init(void) kfree(teth_stats_init); return -EINVAL; } /* enable addtional pipe monitoring for pcie modem */ if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_1) teth_stats_init->dst_ep_mask[ep_index] = (IPA_CLIENT_BIT_32(IPA_CLIENT_Q6_WAN_CONS) | IPA_CLIENT_BIT_32( IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS)); else teth_stats_init->dst_ep_mask[ep_index] = IPA_CLIENT_BIT_32(IPA_CLIENT_Q6_WAN_CONS); } Loading @@ -74,6 +81,13 @@ int ipa_hw_stats_init(void) kfree(teth_stats_init); return -EINVAL; } /* enable addtional pipe monitoring for pcie modem*/ if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_1) teth_stats_init->dst_ep_mask[ep_index] = (IPA_CLIENT_BIT_32(IPA_CLIENT_Q6_WAN_CONS) | IPA_CLIENT_BIT_32( IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS)); else teth_stats_init->dst_ep_mask[ep_index] = IPA_CLIENT_BIT_32(IPA_CLIENT_Q6_WAN_CONS); } Loading drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c +37 −0 Original line number Diff line number Diff line Loading @@ -3452,6 +3452,7 @@ static int rmnet_ipa3_query_tethering_stats_hw( { int rc = 0; struct ipa_quota_stats_all *con_stats; struct ipa_quota_stats *client; /* qet HW-stats */ rc = ipa_get_teth_stats(); Loading Loading @@ -3530,6 +3531,24 @@ static int rmnet_ipa3_query_tethering_stats_hw( data->ipv6_tx_bytes = con_stats->client[IPA_CLIENT_Q6_WAN_CONS].num_ipv6_bytes; /* usb UL stats on cv2 */ client = &con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS]; IPAWANDBG("usb (cv2): v4_tx_p(%d) b(%lld) v6_tx_p(%d) b(%lld)\n", client->num_ipv4_pkts, client->num_ipv4_bytes, client->num_ipv6_pkts, client->num_ipv6_bytes); /* update cv2 USB UL stats */ data->ipv4_tx_packets += client->num_ipv4_pkts; data->ipv6_tx_packets += client->num_ipv6_pkts; data->ipv4_tx_bytes += client->num_ipv4_bytes; data->ipv6_tx_bytes += client->num_ipv6_bytes; /* query WLAN UL stats */ memset(con_stats, 0, sizeof(struct ipa_quota_stats_all)); rc = ipa_query_teth_stats(IPA_CLIENT_WLAN1_PROD, con_stats, reset); Loading @@ -3555,6 +3574,24 @@ static int rmnet_ipa3_query_tethering_stats_hw( data->ipv6_tx_bytes += con_stats->client[IPA_CLIENT_Q6_WAN_CONS].num_ipv6_bytes; /* wlan UL stats on cv2 */ IPAWANDBG("wlan (cv2): v4_tx_p(%d) b(%lld) v6_tx_p(%d) b(%lld)\n", con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS].num_ipv4_pkts, con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS].num_ipv4_bytes, con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS].num_ipv6_pkts, con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS].num_ipv6_bytes); /* update cv2 wlan UL stats */ client = &con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS]; data->ipv4_tx_packets += client->num_ipv4_pkts; data->ipv6_tx_packets += client->num_ipv6_pkts; data->ipv4_tx_bytes += client->num_ipv4_bytes; data->ipv6_tx_bytes += client->num_ipv6_bytes; IPAWANDBG("v4_tx_p(%lu) v6_tx_p(%lu) v4_tx_b(%lu) v6_tx_b(%lu)\n", (unsigned long int) data->ipv4_tx_packets, (unsigned long int) data->ipv6_tx_packets, Loading Loading
drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c +18 −4 Original line number Diff line number Diff line Loading @@ -63,6 +63,13 @@ int ipa_hw_stats_init(void) kfree(teth_stats_init); return -EINVAL; } /* enable addtional pipe monitoring for pcie modem */ if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_1) teth_stats_init->dst_ep_mask[ep_index] = (IPA_CLIENT_BIT_32(IPA_CLIENT_Q6_WAN_CONS) | IPA_CLIENT_BIT_32( IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS)); else teth_stats_init->dst_ep_mask[ep_index] = IPA_CLIENT_BIT_32(IPA_CLIENT_Q6_WAN_CONS); } Loading @@ -74,6 +81,13 @@ int ipa_hw_stats_init(void) kfree(teth_stats_init); return -EINVAL; } /* enable addtional pipe monitoring for pcie modem*/ if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_1) teth_stats_init->dst_ep_mask[ep_index] = (IPA_CLIENT_BIT_32(IPA_CLIENT_Q6_WAN_CONS) | IPA_CLIENT_BIT_32( IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS)); else teth_stats_init->dst_ep_mask[ep_index] = IPA_CLIENT_BIT_32(IPA_CLIENT_Q6_WAN_CONS); } Loading
drivers/platform/msm/ipa/ipa_v3/rmnet_ipa.c +37 −0 Original line number Diff line number Diff line Loading @@ -3452,6 +3452,7 @@ static int rmnet_ipa3_query_tethering_stats_hw( { int rc = 0; struct ipa_quota_stats_all *con_stats; struct ipa_quota_stats *client; /* qet HW-stats */ rc = ipa_get_teth_stats(); Loading Loading @@ -3530,6 +3531,24 @@ static int rmnet_ipa3_query_tethering_stats_hw( data->ipv6_tx_bytes = con_stats->client[IPA_CLIENT_Q6_WAN_CONS].num_ipv6_bytes; /* usb UL stats on cv2 */ client = &con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS]; IPAWANDBG("usb (cv2): v4_tx_p(%d) b(%lld) v6_tx_p(%d) b(%lld)\n", client->num_ipv4_pkts, client->num_ipv4_bytes, client->num_ipv6_pkts, client->num_ipv6_bytes); /* update cv2 USB UL stats */ data->ipv4_tx_packets += client->num_ipv4_pkts; data->ipv6_tx_packets += client->num_ipv6_pkts; data->ipv4_tx_bytes += client->num_ipv4_bytes; data->ipv6_tx_bytes += client->num_ipv6_bytes; /* query WLAN UL stats */ memset(con_stats, 0, sizeof(struct ipa_quota_stats_all)); rc = ipa_query_teth_stats(IPA_CLIENT_WLAN1_PROD, con_stats, reset); Loading @@ -3555,6 +3574,24 @@ static int rmnet_ipa3_query_tethering_stats_hw( data->ipv6_tx_bytes += con_stats->client[IPA_CLIENT_Q6_WAN_CONS].num_ipv6_bytes; /* wlan UL stats on cv2 */ IPAWANDBG("wlan (cv2): v4_tx_p(%d) b(%lld) v6_tx_p(%d) b(%lld)\n", con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS].num_ipv4_pkts, con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS].num_ipv4_bytes, con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS].num_ipv6_pkts, con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS].num_ipv6_bytes); /* update cv2 wlan UL stats */ client = &con_stats->client[IPA_CLIENT_Q6_LTE_WIFI_AGGR_CONS]; data->ipv4_tx_packets += client->num_ipv4_pkts; data->ipv6_tx_packets += client->num_ipv6_pkts; data->ipv4_tx_bytes += client->num_ipv4_bytes; data->ipv6_tx_bytes += client->num_ipv6_bytes; IPAWANDBG("v4_tx_p(%lu) v6_tx_p(%lu) v4_tx_b(%lu) v6_tx_b(%lu)\n", (unsigned long int) data->ipv4_tx_packets, (unsigned long int) data->ipv6_tx_packets, Loading