diff options
Diffstat (limited to 'net/tipc/link.h')
| -rw-r--r-- | net/tipc/link.h | 63 |
1 files changed, 32 insertions, 31 deletions
diff --git a/net/tipc/link.h b/net/tipc/link.h index d6a60a963ce6..6e921121be06 100644 --- a/net/tipc/link.h +++ b/net/tipc/link.h | |||
| @@ -37,7 +37,6 @@ | |||
| 37 | #ifndef _TIPC_LINK_H | 37 | #ifndef _TIPC_LINK_H |
| 38 | #define _TIPC_LINK_H | 38 | #define _TIPC_LINK_H |
| 39 | 39 | ||
| 40 | #include "log.h" | ||
| 41 | #include "msg.h" | 40 | #include "msg.h" |
| 42 | #include "node.h" | 41 | #include "node.h" |
| 43 | 42 | ||
| @@ -63,6 +62,37 @@ | |||
| 63 | */ | 62 | */ |
| 64 | #define MAX_PKT_DEFAULT 1500 | 63 | #define MAX_PKT_DEFAULT 1500 |
| 65 | 64 | ||
| 65 | struct tipc_stats { | ||
| 66 | u32 sent_info; /* used in counting # sent packets */ | ||
| 67 | u32 recv_info; /* used in counting # recv'd packets */ | ||
| 68 | u32 sent_states; | ||
| 69 | u32 recv_states; | ||
| 70 | u32 sent_probes; | ||
| 71 | u32 recv_probes; | ||
| 72 | u32 sent_nacks; | ||
| 73 | u32 recv_nacks; | ||
| 74 | u32 sent_acks; | ||
| 75 | u32 sent_bundled; | ||
| 76 | u32 sent_bundles; | ||
| 77 | u32 recv_bundled; | ||
| 78 | u32 recv_bundles; | ||
| 79 | u32 retransmitted; | ||
| 80 | u32 sent_fragmented; | ||
| 81 | u32 sent_fragments; | ||
| 82 | u32 recv_fragmented; | ||
| 83 | u32 recv_fragments; | ||
| 84 | u32 link_congs; /* # port sends blocked by congestion */ | ||
| 85 | u32 bearer_congs; | ||
| 86 | u32 deferred_recv; | ||
| 87 | u32 duplicates; | ||
| 88 | u32 max_queue_sz; /* send queue size high water mark */ | ||
| 89 | u32 accu_queue_sz; /* used for send queue size profiling */ | ||
| 90 | u32 queue_sz_counts; /* used for send queue size profiling */ | ||
| 91 | u32 msg_length_counts; /* used for message length profiling */ | ||
| 92 | u32 msg_lengths_total; /* used for message length profiling */ | ||
| 93 | u32 msg_length_profile[7]; /* used for msg. length profiling */ | ||
| 94 | }; | ||
| 95 | |||
| 66 | /** | 96 | /** |
| 67 | * struct tipc_link - TIPC link data structure | 97 | * struct tipc_link - TIPC link data structure |
| 68 | * @addr: network address of link's peer node | 98 | * @addr: network address of link's peer node |
| @@ -175,36 +205,7 @@ struct tipc_link { | |||
| 175 | struct sk_buff *defragm_buf; | 205 | struct sk_buff *defragm_buf; |
| 176 | 206 | ||
| 177 | /* Statistics */ | 207 | /* Statistics */ |
| 178 | struct { | 208 | struct tipc_stats stats; |
| 179 | u32 sent_info; /* used in counting # sent packets */ | ||
| 180 | u32 recv_info; /* used in counting # recv'd packets */ | ||
| 181 | u32 sent_states; | ||
| 182 | u32 recv_states; | ||
| 183 | u32 sent_probes; | ||
| 184 | u32 recv_probes; | ||
| 185 | u32 sent_nacks; | ||
| 186 | u32 recv_nacks; | ||
| 187 | u32 sent_acks; | ||
| 188 | u32 sent_bundled; | ||
| 189 | u32 sent_bundles; | ||
| 190 | u32 recv_bundled; | ||
| 191 | u32 recv_bundles; | ||
| 192 | u32 retransmitted; | ||
| 193 | u32 sent_fragmented; | ||
| 194 | u32 sent_fragments; | ||
| 195 | u32 recv_fragmented; | ||
| 196 | u32 recv_fragments; | ||
| 197 | u32 link_congs; /* # port sends blocked by congestion */ | ||
| 198 | u32 bearer_congs; | ||
| 199 | u32 deferred_recv; | ||
| 200 | u32 duplicates; | ||
| 201 | u32 max_queue_sz; /* send queue size high water mark */ | ||
| 202 | u32 accu_queue_sz; /* used for send queue size profiling */ | ||
| 203 | u32 queue_sz_counts; /* used for send queue size profiling */ | ||
| 204 | u32 msg_length_counts; /* used for message length profiling */ | ||
| 205 | u32 msg_lengths_total; /* used for message length profiling */ | ||
| 206 | u32 msg_length_profile[7]; /* used for msg. length profiling */ | ||
| 207 | } stats; | ||
| 208 | }; | 209 | }; |
| 209 | 210 | ||
| 210 | struct tipc_port; | 211 | struct tipc_port; |
