summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2020-02-23 10:31:39 +0300
committerDavid S. Miller <davem@davemloft.net>2020-02-24 03:06:59 +0300
commit0bb57112d74408332e2867ce1fe231ed7c65a70e (patch)
tree1c070d76a6544affd344f35434ef777ccbbdacdd /drivers
parent8ec80a8b120aa10c02f919680428b32982e75a97 (diff)
downloadlinux-0bb57112d74408332e2867ce1fe231ed7c65a70e.tar.xz
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: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/mellanox/mlxsw/core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.h b/drivers/net/ethernet/mellanox/mlxsw/core.h
index ba767329e20d..76c0d6e975db 100644
--- a/drivers/net/ethernet/mellanox/mlxsw/core.h
+++ b/drivers/net/ethernet/mellanox/mlxsw/core.h
@@ -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, \