summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHarout Hedeshian <harouth@codeaurora.org>2015-07-27 10:32:01 -0600
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:09:45 -0700
commite9a33bcd2f02f05d55e05d5ad1e64ca9ad2c4c2a (patch)
tree203d2dee240f564408e357e7b0c4d77d56200284 /include
parentd04abc1ab24a0ba0c3803257ac89c7c5b3b9c374 (diff)
net: add a per-cpu counter for the number of frames coalesced in GRO
A low cost method of determining GRO statistics is required. This change introduces a new counter which tracks whenever GRO coalesces ingress packets. The counter is per-CPU and exposed in /proc/net/softnet_stat as the last column of data. No user space impact is expected as a result of this change. However, this change should be reverted if legacy tools have problems with the new column in softnet_stat. Change-Id: I05965c0cb150947935d5977884cc4d583b37131d Signed-off-by: Harout Hedeshian <harouth@codeaurora.org> [subashab@codeaurora.org: resolve trivial merge conflicts] Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index f2416b530c9a..b222d86b501f 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2526,6 +2526,8 @@ struct softnet_data {
unsigned int time_squeeze;
unsigned int cpu_collision;
unsigned int received_rps;
+ unsigned int gro_coalesced;
+
#ifdef CONFIG_RPS
struct softnet_data *rps_ipi_list;
#endif