Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Upgrade to 4.4.50-rt62
[kvmfornfv.git]
/
kernel
/
drivers
/
net
/
ethernet
/
qlogic
/
qed
/
qed_spq.c
diff --git
a/kernel/drivers/net/ethernet/qlogic/qed/qed_spq.c
b/kernel/drivers/net/ethernet/qlogic/qed/qed_spq.c
index
3dd548a
..
40365cb
100644
(file)
--- a/
kernel/drivers/net/ethernet/qlogic/qed/qed_spq.c
+++ b/
kernel/drivers/net/ethernet/qlogic/qed/qed_spq.c
@@
-794,13
+794,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.
*/
* 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)) {
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);
}
p_spq->comp_bitmap_idx++;
qed_chain_return_produced(&p_spq->chain);
}