mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 05:36:24 +00:00
loss_interval: make struct dccp_li_hist_entry private
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>
This commit is contained in:
parent
cc4d6a3a34
commit
dd36a9aba4
2 changed files with 9 additions and 10 deletions
|
@ -18,6 +18,15 @@
|
||||||
#include "packet_history.h"
|
#include "packet_history.h"
|
||||||
#include "tfrc.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;
|
struct kmem_cache *dccp_li_cachep __read_mostly;
|
||||||
|
|
||||||
static inline struct dccp_li_hist_entry *dccp_li_hist_entry_new(const gfp_t prio)
|
static inline struct dccp_li_hist_entry *dccp_li_hist_entry_new(const gfp_t prio)
|
||||||
|
|
|
@ -14,18 +14,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/list.h>
|
#include <linux/list.h>
|
||||||
#include <linux/slab.h>
|
|
||||||
#include <linux/time.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 void dccp_li_hist_purge(struct list_head *list);
|
||||||
|
|
||||||
extern u32 dccp_li_hist_calc_i_mean(struct list_head *list);
|
extern u32 dccp_li_hist_calc_i_mean(struct list_head *list);
|
||||||
|
|
Loading…
Reference in a new issue