From: Mohit P. Tahiliani Date: Wed, 22 Jan 2020 18:22:27 +0000 (+0530) Subject: pie: use u8 instead of bool in pie_vars X-Git-Tag: v5.15~4637^2~44^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dbfc5e071db3f5acc3c7c87a564bf57b838cf49;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Leslie Monis Signed-off-by: Gautam Ramakrishnan Signed-off-by: David S. Miller --- diff --git a/include/net/pie.h b/include/net/pie.h index 397c7ab..f9c6a44 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 */ };