diff options
-rw-r--r-- | drivers/net/ethernet/qlogic/qed/qed_spq.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/ethernet/qlogic/qed/qed_spq.c b/drivers/net/ethernet/qlogic/qed/qed_spq.c index 97ffeae262bb..d73456eab1d7 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_spq.c +++ b/drivers/net/ethernet/qlogic/qed/qed_spq.c | |||
@@ -815,13 +815,12 @@ int qed_spq_completion(struct qed_hwfn *p_hwfn, | |||
815 | * in a bitmap and increasing the chain consumer only | 815 | * in a bitmap and increasing the chain consumer only |
816 | * for the first successive completed entries. | 816 | * for the first successive completed entries. |
817 | */ | 817 | */ |
818 | bitmap_set(p_spq->p_comp_bitmap, pos, SPQ_RING_SIZE); | 818 | __set_bit(pos, p_spq->p_comp_bitmap); |
819 | 819 | ||
820 | while (test_bit(p_spq->comp_bitmap_idx, | 820 | while (test_bit(p_spq->comp_bitmap_idx, |
821 | p_spq->p_comp_bitmap)) { | 821 | p_spq->p_comp_bitmap)) { |
822 | bitmap_clear(p_spq->p_comp_bitmap, | 822 | __clear_bit(p_spq->comp_bitmap_idx, |
823 | p_spq->comp_bitmap_idx, | 823 | p_spq->p_comp_bitmap); |
824 | SPQ_RING_SIZE); | ||
825 | p_spq->comp_bitmap_idx++; | 824 | p_spq->comp_bitmap_idx++; |
826 | qed_chain_return_produced(&p_spq->chain); | 825 | qed_chain_return_produced(&p_spq->chain); |
827 | } | 826 | } |