提交 0bb57112 编写于 作者: J Jiri Pirko 提交者: David S. Miller

mlxsw: core: Convert is_event and is_ctrl bools to be single bits

No need for these two flags to be bool. Covert them to bits of u8.
Signed-off-by: NJiri Pirko <jiri@mellanox.com>
Signed-off-by: NIdo Schimmel <idosch@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8ec80a8b
......@@ -79,8 +79,8 @@ struct mlxsw_listener {
enum mlxsw_reg_hpkt_action action;
enum mlxsw_reg_hpkt_action unreg_action;
u8 trap_group;
bool is_ctrl; /* should go via control buffer or not */
bool is_event;
u8 is_ctrl:1, /* should go via control buffer or not */
is_event:1;
};
#define MLXSW_RXL(_func, _trap_id, _action, _is_ctrl, _trap_group, \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册