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

Commit 851a7768 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan Committed by Gerrit - the friendly Code Review server
Browse files

net: qualcomm: rmnet: Remove the average computations



The average bytes and packets entries were for debug only and are
not needed any longer.

CRs-Fixed: 2361004
Change-Id: I15f7a5ef26b7b06496fc2b7d2a57453a8efc36d3
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 9e5706f2
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -35,8 +35,6 @@ struct rmnet_port_priv_stats {
	u64 dl_hdr_count;
	u64 dl_hdr_total_bytes;
	u64 dl_hdr_total_pkts;
	u64 dl_hdr_avg_bytes;
	u64 dl_hdr_avg_pkts;
	u64 dl_trl_last_seq;
	u64 dl_trl_count;
};
+0 −9
Original line number Diff line number Diff line
@@ -143,15 +143,6 @@ static void rmnet_map_process_flow_start(struct sk_buff *skb,
	port->stats.dl_hdr_total_pkts += port->stats.dl_hdr_last_pkts;
	port->stats.dl_hdr_count++;

	if (unlikely(!(port->stats.dl_hdr_count)))
		port->stats.dl_hdr_count = 1;

	port->stats.dl_hdr_avg_bytes = port->stats.dl_hdr_total_bytes /
				       port->stats.dl_hdr_count;

	port->stats.dl_hdr_avg_pkts = port->stats.dl_hdr_total_pkts /
				      port->stats.dl_hdr_count;

	rmnet_map_dl_hdr_notify(port, dlhdr);
	if (rmnet_perf) {
		unsigned int pull_size;
+0 −2
Original line number Diff line number Diff line
@@ -208,8 +208,6 @@ static const char rmnet_port_gstrings_stats[][ETH_GSTRING_LEN] = {
	"DL header pkts received",
	"DL header total bytes received",
	"DL header total pkts received",
	"DL header average bytes",
	"DL header average packets",
	"DL trailer last seen sequence",
	"DL trailer pkts received",
};