Skip to content

Commit 1dbfc5e

Browse files
mohittahilianidavem330
authored andcommitted
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 <[email protected]> Signed-off-by: Leslie Monis <[email protected]> Signed-off-by: Gautam Ramakrishnan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cf4eeee commit 1dbfc5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/net/pie.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ struct pie_params {
2121
u32 limit; /* number of packets that can be enqueued */
2222
u32 alpha; /* alpha and beta are between 0 and 32 */
2323
u32 beta; /* and are used for shift relative to 1 */
24-
bool ecn; /* true if ecn is enabled */
25-
bool bytemode; /* to scale drop early prob based on pkt size */
24+
u8 ecn; /* true if ecn is enabled */
25+
u8 bytemode; /* to scale drop early prob based on pkt size */
2626
u8 dq_rate_estimator; /* to calculate delay using Little's law */
2727
};
2828

0 commit comments

Comments
 (0)