diff options
author | Gal Pressman <galp@mellanox.com> | 2017-09-18 13:09:18 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2017-11-09 13:27:02 +0900 |
commit | 03eda9541f351fb289fe18c87cb111f8bfca9837 (patch) | |
tree | af8f60af116a98cd3a41fe8c3f676921ca4cbc64 /drivers/net/ethernet/mellanox/mlx5 | |
parent | 375ef2b1f0d0b43b0d36ffdd521637ff59b0c13c (diff) |
net/mlx5e: Declare bitmap using kernel macro
Replace explicit declaration of bitmap with DECLARE_BITMAP kernel macro.
Signed-off-by: Gal Pressman <galp@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en.h b/drivers/net/ethernet/mellanox/mlx5/core/en.h index eba5db75214b..f952796e9e82 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/en.h @@ -655,7 +655,7 @@ struct mlx5e_tc_table { struct mlx5e_vlan_table { struct mlx5e_flow_table ft; - unsigned long active_cvlans[BITS_TO_LONGS(VLAN_N_VID)]; + DECLARE_BITMAP(active_cvlans, VLAN_N_VID); struct mlx5_flow_handle *active_cvlans_rule[VLAN_N_VID]; struct mlx5_flow_handle *untagged_rule; struct mlx5_flow_handle *any_cvlan_rule; |