提交 1dbfc5e0 编写于 作者: M Mohit P. Tahiliani 提交者: David S. Miller

pie: use u8 instead of bool in pie_vars

Linux best practice recommends using u8 for true/false values in
structures.
Signed-off-by: NMohit P. Tahiliani <tahiliani@nitk.edu.in>
Signed-off-by: NLeslie Monis <lesliemonis@gmail.com>
Signed-off-by: NGautam Ramakrishnan <gautamramk@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 cf4eeee5
......@@ -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 */
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册