|
@@ -424,7 +424,7 @@ void mlx5e_post_rx_mpwqe(struct mlx5e_rq *rq)
|
|
|
|
|
|
clear_bit(MLX5E_RQ_STATE_UMR_WQE_IN_PROGRESS, &rq->state);
|
|
|
|
|
|
- if (unlikely(!test_bit(MLX5E_RQ_STATE_ENABLED, &rq->state))) {
|
|
|
+ if (unlikely(!MLX5E_TEST_BIT(rq->state, MLX5E_RQ_STATE_ENABLED))) {
|
|
|
mlx5e_free_rx_mpwqe(rq, &rq->mpwqe.info[wq->head]);
|
|
|
return;
|
|
|
}
|
|
@@ -461,7 +461,7 @@ bool mlx5e_post_rx_wqes(struct mlx5e_rq *rq)
|
|
|
struct mlx5_wq_ll *wq = &rq->wq;
|
|
|
int err;
|
|
|
|
|
|
- if (unlikely(!test_bit(MLX5E_RQ_STATE_ENABLED, &rq->state)))
|
|
|
+ if (unlikely(!MLX5E_TEST_BIT(rq->state, MLX5E_RQ_STATE_ENABLED)))
|
|
|
return false;
|
|
|
|
|
|
if (mlx5_wq_ll_is_full(wq))
|
|
@@ -983,7 +983,7 @@ int mlx5e_poll_rx_cq(struct mlx5e_cq *cq, int budget)
|
|
|
struct mlx5_cqe64 *cqe;
|
|
|
int work_done = 0;
|
|
|
|
|
|
- if (unlikely(!test_bit(MLX5E_RQ_STATE_ENABLED, &rq->state)))
|
|
|
+ if (unlikely(!MLX5E_TEST_BIT(rq->state, MLX5E_RQ_STATE_ENABLED)))
|
|
|
return 0;
|
|
|
|
|
|
if (cq->decmprs_left)
|
|
@@ -1031,7 +1031,7 @@ bool mlx5e_poll_xdpsq_cq(struct mlx5e_cq *cq)
|
|
|
|
|
|
sq = container_of(cq, struct mlx5e_xdpsq, cq);
|
|
|
|
|
|
- if (unlikely(!test_bit(MLX5E_SQ_STATE_ENABLED, &sq->state)))
|
|
|
+ if (unlikely(!MLX5E_TEST_BIT(sq->state, MLX5E_SQ_STATE_ENABLED)))
|
|
|
return false;
|
|
|
|
|
|
cqe = mlx5_cqwq_get_cqe(&cq->wq);
|