diff mbox

[rdma-core] libqedr: fix inline data copy

Message ID 1509368395-16738-1-git-send-email-Ram.Amrani@cavium.com (mailing list archive)
State Accepted
Headers show

Commit Message

Amrani, Ram Oct. 30, 2017, 12:59 p.m. UTC
Advance target pointer during data copy.

Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
---
 providers/qedr/qelr_verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Leon Romanovsky Oct. 30, 2017, 1:26 p.m. UTC | #1
On Mon, Oct 30, 2017 at 02:59:55PM +0200, Ram Amrani wrote:
> Advance target pointer during data copy.
>
> Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com>
> ---
>  providers/qedr/qelr_verbs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Thanks, applied.
diff mbox

Patch

diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c
index 4a74c50..7db0fb3 100644
--- a/providers/qedr/qelr_verbs.c
+++ b/providers/qedr/qelr_verbs.c
@@ -874,7 +874,7 @@  static void swap_wqe_data64(uint64_t *p)
 	__be64 *bep=(__be64 *)p;
 	int i;
 
-	for (i = 0; i < ROCE_WQE_ELEM_SIZE / sizeof(uint64_t); i++, p++)
+	for (i = 0; i < ROCE_WQE_ELEM_SIZE / sizeof(uint64_t); i++, p++, bep++)
 		*bep = htobe64(*p);
 }