diff mbox

[rdma-core,2/4] libqedr: clear the flags field in the WC

Message ID 1481465891-14789-3-git-send-email-Ram.Amrani@Cavium.com (mailing list archive)
State Accepted
Headers show

Commit Message

Amrani, Ram Dec. 11, 2016, 2:18 p.m. UTC
Since the responder's WC is not zeroed we clear the flags field to avoid
random flags.

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

Patch

diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c
index fae823c..80e4263 100644
--- a/providers/qedr/qelr_verbs.c
+++ b/providers/qedr/qelr_verbs.c
@@ -1676,6 +1676,7 @@  static void __process_resp_one(struct qelr_qp *qp, struct qelr_cq *cq,
 	uint8_t flags;
 
 	wc->opcode = IBV_WC_RECV;
+	wc->wc_flags = 0;
 
 	FP_DP_VERBOSE(cxt->dbg_fp, QELR_MSG_CQ, "\n");