loss_interval: make struct dccp_li_hist_entry private
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 May 2007 21:56:44 +0000 (18:56 -0300)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 11 Jul 2007 05:15:24 +0000 (22:15 -0700)
net/dccp/ccids/lib/loss_interval.c is the only place where this struct is used.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
net/dccp/ccids/lib/loss_interval.c
net/dccp/ccids/lib/loss_interval.h

index e6b1f0c913eca900338947a6b3c214c546bcee36..01c1edb3e34959ab64ae15cf6d72f0ad5abb0737 100644 (file)
 #include "packet_history.h"
 #include "tfrc.h"
 
+#define DCCP_LI_HIST_IVAL_F_LENGTH  8
+
+struct dccp_li_hist_entry {
+       struct list_head dccplih_node;
+       u64              dccplih_seqno:48,
+                        dccplih_win_count:4;
+       u32              dccplih_interval;
+};
+
 struct kmem_cache *dccp_li_cachep __read_mostly;
 
 static inline struct dccp_li_hist_entry *dccp_li_hist_entry_new(const gfp_t prio)
index f35c11100fc6e52614f34842d4554e733cf6c0f1..906c806d6d9d107720b9af7d5ba06840608e7868 100644 (file)
  */
 
 #include <linux/list.h>
-#include <linux/slab.h>
 #include <linux/time.h>
 
-#define DCCP_LI_HIST_IVAL_F_LENGTH  8
-
-struct dccp_li_hist_entry {
-       struct list_head dccplih_node;
-       u64              dccplih_seqno:48,
-                        dccplih_win_count:4;
-       u32              dccplih_interval;
-};
-
 extern void dccp_li_hist_purge(struct list_head *list);
 
 extern u32 dccp_li_hist_calc_i_mean(struct list_head *list);