diff options
author | David S. Miller <davem@davemloft.net> | 2011-01-26 23:55:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-01-27 16:48:26 -0500 |
commit | 606598237c856b0c6584c2263288657658140da9 (patch) | |
tree | e11c1d95b531a6b815c1c24094435d06e39f0dee | |
parent | 62fa8a846d7de4b299232e330c74b7783539df76 (diff) |
inetpeer: Add metrics storage to inetpeer entries.
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/inetpeer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/net/inetpeer.h b/include/net/inetpeer.h index 599d96e74114..2af0c63d3975 100644 --- a/include/net/inetpeer.h +++ b/include/net/inetpeer.h | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/jiffies.h> | 12 | #include <linux/jiffies.h> |
13 | #include <linux/spinlock.h> | 13 | #include <linux/spinlock.h> |
14 | #include <linux/rtnetlink.h> | ||
14 | #include <net/ipv6.h> | 15 | #include <net/ipv6.h> |
15 | #include <asm/atomic.h> | 16 | #include <asm/atomic.h> |
16 | 17 | ||
@@ -33,8 +34,8 @@ struct inet_peer { | |||
33 | atomic_t refcnt; | 34 | atomic_t refcnt; |
34 | /* | 35 | /* |
35 | * Once inet_peer is queued for deletion (refcnt == -1), following fields | 36 | * Once inet_peer is queued for deletion (refcnt == -1), following fields |
36 | * are not available: rid, ip_id_count, tcp_ts, tcp_ts_stamp | 37 | * are not available: rid, ip_id_count, tcp_ts, tcp_ts_stamp, metrics |
37 | * We can share memory with rcu_head to keep inet_peer small | 38 | * We can share memory with rcu_head to help keep inet_peer small. |
38 | */ | 39 | */ |
39 | union { | 40 | union { |
40 | struct { | 41 | struct { |
@@ -42,6 +43,7 @@ struct inet_peer { | |||
42 | atomic_t ip_id_count; /* IP ID for the next packet */ | 43 | atomic_t ip_id_count; /* IP ID for the next packet */ |
43 | __u32 tcp_ts; | 44 | __u32 tcp_ts; |
44 | __u32 tcp_ts_stamp; | 45 | __u32 tcp_ts_stamp; |
46 | u32 metrics[RTAX_MAX]; | ||
45 | }; | 47 | }; |
46 | struct rcu_head rcu; | 48 | struct rcu_head rcu; |
47 | }; | 49 | }; |