Commit bb19ad0d authored by Roi Dayan's avatar Roi Dayan Committed by Saeed Mahameed

net/mlx5: Use unsigned int bit instead of bool as a struct member

This fix checkpatch check
CHECK: Avoid using bool structure members because of possible alignment
issues
Signed-off-by: default avatarRoi Dayan <roid@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 0ad060ee
...@@ -52,7 +52,7 @@ struct lag_func { ...@@ -52,7 +52,7 @@ struct lag_func {
struct lag_tracker { struct lag_tracker {
enum netdev_lag_tx_type tx_type; enum netdev_lag_tx_type tx_type;
struct netdev_lag_lower_state_info netdev_state[MLX5_MAX_PORTS]; struct netdev_lag_lower_state_info netdev_state[MLX5_MAX_PORTS];
bool is_bonded; unsigned int is_bonded:1;
}; };
/* LAG data of a ConnectX card. /* LAG data of a ConnectX card.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment