Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
dfb30d9
)
rdma: bugfix in the descriptor refill logic. In case of a partial allocation, the...
21/28621/3
author
Mohammed Hawari
<mohammed@hawari.fr>
Mon, 31 Aug 2020 15:23:45 +0000
(17:23 +0200)
committer
Damjan Marion
<dmarion@me.com>
Mon, 31 Aug 2020 17:16:38 +0000
(17:16 +0000)
Type: fix
Change-Id: Ifd97b03ea220300e7e6fe81a8ff4a25060fea6c1
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
src/plugins/rdma/input.c
patch
|
blob
|
history
diff --git
a/src/plugins/rdma/input.c
b/src/plugins/rdma/input.c
index
80c211b
..
3842a58
100644
(file)
--- a/
src/plugins/rdma/input.c
+++ b/
src/plugins/rdma/input.c
@@
-92,7
+92,7
@@
rdma_device_input_refill (vlib_main_t * vm, rdma_device_t * rd,
}
/* partial allocation, round and return rest */
- n_free = n
- (n & 7)
;
+ n_free = n
& 7
;
n -= n_free;
if (n_free)
vlib_buffer_free_from_ring (vm, rxq->bufs, (slot + n) & mask,