diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/dccp/ccids/lib/loss_interval.c | 9 | ||||
-rw-r--r-- | net/dccp/ccids/lib/loss_interval.h | 10 |
2 files changed, 9 insertions, 10 deletions
diff --git a/net/dccp/ccids/lib/loss_interval.c b/net/dccp/ccids/lib/loss_interval.c index e6b1f0c913ec..01c1edb3e349 100644 --- a/net/dccp/ccids/lib/loss_interval.c +++ b/net/dccp/ccids/lib/loss_interval.c | |||
@@ -18,6 +18,15 @@ | |||
18 | #include "packet_history.h" | 18 | #include "packet_history.h" |
19 | #include "tfrc.h" | 19 | #include "tfrc.h" |
20 | 20 | ||
21 | #define DCCP_LI_HIST_IVAL_F_LENGTH 8 | ||
22 | |||
23 | struct dccp_li_hist_entry { | ||
24 | struct list_head dccplih_node; | ||
25 | u64 dccplih_seqno:48, | ||
26 | dccplih_win_count:4; | ||
27 | u32 dccplih_interval; | ||
28 | }; | ||
29 | |||
21 | struct kmem_cache *dccp_li_cachep __read_mostly; | 30 | struct kmem_cache *dccp_li_cachep __read_mostly; |
22 | 31 | ||
23 | static inline struct dccp_li_hist_entry *dccp_li_hist_entry_new(const gfp_t prio) | 32 | static inline struct dccp_li_hist_entry *dccp_li_hist_entry_new(const gfp_t prio) |
diff --git a/net/dccp/ccids/lib/loss_interval.h b/net/dccp/ccids/lib/loss_interval.h index f35c11100fc6..906c806d6d9d 100644 --- a/net/dccp/ccids/lib/loss_interval.h +++ b/net/dccp/ccids/lib/loss_interval.h | |||
@@ -14,18 +14,8 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/list.h> | 16 | #include <linux/list.h> |
17 | #include <linux/slab.h> | ||
18 | #include <linux/time.h> | 17 | #include <linux/time.h> |
19 | 18 | ||
20 | #define DCCP_LI_HIST_IVAL_F_LENGTH 8 | ||
21 | |||
22 | struct dccp_li_hist_entry { | ||
23 | struct list_head dccplih_node; | ||
24 | u64 dccplih_seqno:48, | ||
25 | dccplih_win_count:4; | ||
26 | u32 dccplih_interval; | ||
27 | }; | ||
28 | |||
29 | extern void dccp_li_hist_purge(struct list_head *list); | 19 | extern void dccp_li_hist_purge(struct list_head *list); |
30 | 20 | ||
31 | extern u32 dccp_li_hist_calc_i_mean(struct list_head *list); | 21 | extern u32 dccp_li_hist_calc_i_mean(struct list_head *list); |