diff options
author | Mohit P. Tahiliani <tahiliani@nitk.edu.in> | 2020-01-22 19:22:32 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-01-23 11:38:31 +0100 |
commit | 5205ea00cda1ac23cebfb97dfccca84722d58dfe (patch) | |
tree | 87c6665cfe5b24ea7db6bb216d28767c064c7bbd /include/net | |
parent | net: sched: pie: fix alignment in struct instances (diff) | |
download | linux-5205ea00cda1ac23cebfb97dfccca84722d58dfe.tar.xz linux-5205ea00cda1ac23cebfb97dfccca84722d58dfe.zip |
net: sched: pie: export symbols to be reused by FQ-PIE
This patch makes the drop_early(), calculate_probability() and
pie_process_dequeue() functions generic enough to be used by
both PIE and FQ-PIE (to be added in a future commit). The major
change here is in the way the functions take in arguments. This
patch exports these functions and makes FQ-PIE dependent on
sch_pie.
Signed-off-by: Mohit P. Tahiliani <tahiliani@nitk.edu.in>
Signed-off-by: Leslie Monis <lesliemonis@gmail.com>
Signed-off-by: Gautam Ramakrishnan <gautamramk@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/pie.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/net/pie.h b/include/net/pie.h index 51a1984c2dce..90f5db3d29e7 100644 --- a/include/net/pie.h +++ b/include/net/pie.h @@ -124,4 +124,13 @@ static inline void pie_set_enqueue_time(struct sk_buff *skb) get_pie_cb(skb)->enqueue_time = psched_get_time(); } +bool pie_drop_early(struct Qdisc *sch, struct pie_params *params, + struct pie_vars *vars, u32 qlen, u32 packet_size); + +void pie_process_dequeue(struct sk_buff *skb, struct pie_params *params, + struct pie_vars *vars, u32 qlen); + +void pie_calculate_probability(struct pie_params *params, struct pie_vars *vars, + u32 qlen); + #endif |