* [PATCH net] qed: Fix setting/clearing bit in completion bitmap
@ 2016-07-25 16:07 Yuval Mintz
2016-07-26 4:41 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Yuval Mintz @ 2016-07-25 16:07 UTC (permalink / raw)
To: netdev, davem; +Cc: Manish Chopra, Yuval Mintz
From: Manish Chopra <manish.chopra@qlogic.com>
Slowpath completion handling is incorrectly changing
SPQ_RING_SIZE bits instead of a single one.
Fixes: 76a9a3642a0b ("qed: fix handling of concurrent ramrods")
Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
---
Hi Dave,
Please consider applying this to 'net'.
Thanks,
Yuval
---
drivers/net/ethernet/qlogic/qed/qed_spq.c | 7 +++----
1 file 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 b122f60..03601df 100644
--- a/drivers/net/ethernet/qlogic/qed/qed_spq.c
+++ b/drivers/net/ethernet/qlogic/qed/qed_spq.c
@@ -809,13 +809,12 @@ int qed_spq_completion(struct qed_hwfn *p_hwfn,
* in a bitmap and increasing the chain consumer only
* for the first successive completed entries.
*/
- bitmap_set(p_spq->p_comp_bitmap, pos, SPQ_RING_SIZE);
+ __set_bit(pos, p_spq->p_comp_bitmap);
while (test_bit(p_spq->comp_bitmap_idx,
p_spq->p_comp_bitmap)) {
- bitmap_clear(p_spq->p_comp_bitmap,
- p_spq->comp_bitmap_idx,
- SPQ_RING_SIZE);
+ __clear_bit(p_spq->comp_bitmap_idx,
+ p_spq->p_comp_bitmap);
p_spq->comp_bitmap_idx++;
qed_chain_return_produced(&p_spq->chain);
}
--
2.7.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] qed: Fix setting/clearing bit in completion bitmap
2016-07-25 16:07 [PATCH net] qed: Fix setting/clearing bit in completion bitmap Yuval Mintz
@ 2016-07-26 4:41 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-07-26 4:41 UTC (permalink / raw)
To: Yuval.Mintz; +Cc: netdev, manish.chopra
From: Yuval Mintz <Yuval.Mintz@qlogic.com>
Date: Mon, 25 Jul 2016 19:07:46 +0300
> From: Manish Chopra <manish.chopra@qlogic.com>
>
> Slowpath completion handling is incorrectly changing
> SPQ_RING_SIZE bits instead of a single one.
>
> Fixes: 76a9a3642a0b ("qed: fix handling of concurrent ramrods")
> Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
> Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com>
Applied.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-26 4:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-25 16:07 [PATCH net] qed: Fix setting/clearing bit in completion bitmap Yuval Mintz
2016-07-26 4:41 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).