summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMohit P. Tahiliani <tahiliani@nitk.edu.in>2020-01-22 21:22:27 +0300
committerDavid S. Miller <davem@davemloft.net>2020-01-23 13:38:31 +0300
commit1dbfc5e071db3f5acc3c7c87a564bf57b838cf49 (patch)
tree2db2127ad17bee4730455c22bf4e4d349d2ffb2c /include
parentcf4eeee5ff56180b525bfb6a204071216ca4000a (diff)
downloadlinux-1dbfc5e071db3f5acc3c7c87a564bf57b838cf49.tar.xz
pie: use u8 instead of bool in pie_vars
Linux best practice recommends using u8 for true/false values in structures. 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')
-rw-r--r--include/net/pie.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/net/pie.h b/include/net/pie.h
index 397c7abf0879..f9c6a44bdb0c 100644
--- a/include/net/pie.h
+++ b/include/net/pie.h
@@ -21,8 +21,8 @@ struct pie_params {
u32 limit; /* number of packets that can be enqueued */
u32 alpha; /* alpha and beta are between 0 and 32 */
u32 beta; /* and are used for shift relative to 1 */
- bool ecn; /* true if ecn is enabled */
- bool bytemode; /* to scale drop early prob based on pkt size */
+ u8 ecn; /* true if ecn is enabled */
+ u8 bytemode; /* to scale drop early prob based on pkt size */
u8 dq_rate_estimator; /* to calculate delay using Little's law */
};