diff options
author | Gal Pressman | 2018-01-23 11:23:26 +0100 |
---|---|---|
committer | Saeed Mahameed | 2018-05-15 00:10:21 +0200 |
commit | 0e5c04f6b52b248cfdb7e791fd5702f12270df7b (patch) | |
tree | 5818d2eb0e27faef8c0040b41c6c87612d1bf03b /drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | |
parent | net/mlx5e: Use test bit in en accel xmit flow (diff) | |
download | kernel-qcow2-linux-0e5c04f6b52b248cfdb7e791fd5702f12270df7b.tar.gz kernel-qcow2-linux-0e5c04f6b52b248cfdb7e791fd5702f12270df7b.tar.xz kernel-qcow2-linux-0e5c04f6b52b248cfdb7e791fd5702f12270df7b.zip |
net/mlx5e: Remove MLX5E_TEST_BIT macro
MLX5E_TEST_BIT macro is the same as the already existent test_bit,
remove it and replace all usages.
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/ethernet/mellanox/mlx5/core/en_tx.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_tx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c index 047614d2eda2..2d3f17da5f5c 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_tx.c @@ -450,7 +450,7 @@ bool mlx5e_poll_tx_cq(struct mlx5e_cq *cq, int napi_budget) sq = container_of(cq, struct mlx5e_txqsq, cq); - if (unlikely(!MLX5E_TEST_BIT(sq->state, MLX5E_SQ_STATE_ENABLED))) + if (unlikely(!test_bit(MLX5E_SQ_STATE_ENABLED, &sq->state))) return false; cqe = mlx5_cqwq_get_cqe(&cq->wq); |