diff options
author | Gal Pressman <galp@mellanox.com> | 2018-01-23 12:27:11 +0200 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2018-05-14 15:10:21 -0700 |
commit | af5a6c93656eec9a44617c77fae62af54d5a5061 (patch) | |
tree | a2ac9478510c928ed6735da7db523c95fe706ba9 /drivers/net | |
parent | 1e7477ae8bbeadfa90064d6bedc421b12bc2d43d (diff) |
net/mlx5e: Use __set_bit for adaptive-moderation bit in RQ state
Make the code more clear by replacing the existing code with __set_bit.
Signed-off-by: Gal Pressman <galp@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index b0d6dde2754f..417bf2e8ab85 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -820,7 +820,7 @@ static int mlx5e_open_rq(struct mlx5e_channel *c, goto err_destroy_rq; if (params->rx_dim_enabled) - c->rq.state |= BIT(MLX5E_RQ_STATE_AM); + __set_bit(MLX5E_RQ_STATE_AM, &c->rq.state); return 0; |