Skip to content
Commit 367cc371 authored by Konstantin Taranov's avatar Konstantin Taranov Committed by Greg Kroah-Hartman
Browse files

RDMA/rxe: Fill in wc byte_len with IB_WC_RECV_RDMA_WITH_IMM



[ Upstream commit bdce1290 ]

Calculate the correct byte_len on the receiving side when a work
completion is generated with IB_WC_RECV_RDMA_WITH_IMM opcode.

According to the IBA byte_len must indicate the number of written bytes,
whereas it was always equal to zero for the IB_WC_RECV_RDMA_WITH_IMM
opcode, even though data was transferred.

Fixes: 8700e3e7 ("Soft RoCE driver")
Signed-off-by: default avatarKonstantin Taranov <konstantin.taranov@inf.ethz.ch>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 4fe7ea29
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment