]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net/mlx5e: Use __set_bit for adaptive-moderation bit in RQ state
authorGal Pressman <galp@mellanox.com>
Tue, 23 Jan 2018 10:27:11 +0000 (12:27 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 14 May 2018 22:10:21 +0000 (15:10 -0700)
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>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c

index b0d6dde2754fb53d5825fbdeac590cd776efd3a5..417bf2e8ab85687127192e7e2fc479150a37b787 100644 (file)
@@ -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;