From nobody Fri Nov 7 04:05:06 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1545472563163617.3226205948578; Sat, 22 Dec 2018 01:56:03 -0800 (PST) Received: from localhost ([::1]:42929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gae0n-0001QM-L8 for importer@patchew.org; Sat, 22 Dec 2018 04:56:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gadvt-0006BF-8z for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:50:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gadvr-0006NS-Gh for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:50:57 -0500 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]:52779) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gadvr-0006Lr-91 for qemu-devel@nongnu.org; Sat, 22 Dec 2018 04:50:55 -0500 Received: by mail-wm1-x341.google.com with SMTP id m1so7392272wml.2 for ; Sat, 22 Dec 2018 01:50:53 -0800 (PST) Received: from localhost.localdomain ([176.228.155.165]) by smtp.gmail.com with ESMTPSA id s3sm9557371wmj.23.2018.12.22.01.50.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Dec 2018 01:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=FHZuDhDDF8ZKZQOvHvJuEQtp3p+2gysz6ZX3O62QRTE=; b=hbKtUyVgEqqzO51lZapCI8v9LbwmJeY4wfXTjJ+CbGI2hUDAtCvCFuW2zoOU6N4yrI GXr1aPPT2Tf5XTbvQbUgpil0JHePtTejl7zBrXAqcxMhzc0T5MPjLjrwpbmuF0uC59NH 5dBIA4N9J+ECcOpZL6IOGhh+wf/7TOy1CG/7GeYEoVvmvRbA15DBiKUurxZupWQVyY+Z tzcuXRpR1fqb/D4rUIRI+JkxAF5VHr420Abjyz1gmJ+q3Es/qaeOOzV5QAaNorLGT1Yo LlVFC9bB+Majy+e4gH3eJc6eUvR17w54BVz20Ji6C7RcQ2v6D7DMVdbGl07PNg7Oq0xC SrUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=FHZuDhDDF8ZKZQOvHvJuEQtp3p+2gysz6ZX3O62QRTE=; b=FqiZcwuYGHogbX/rfgtff43nILkL81CDUEnemI8gSoUHegsZvv59bbdr37m4Ae6Oda HZSYgcozoOnKXHcR6LH8Zva3YjrsJO82gSXHa1X8t09JQiMOWo4X18nfCboEJvKfyyXY i15t4OMACIGJg053egNouDM/ahnfKUqyYUKT/injM3DmP+m7MuWArpOQfqUOCc1n8ahR WRMg9qxYwj2kiRg1ET3k+3YzhURJFE8wFt9Hf3jCymyrSD9Dcf2bgnXk2roet7inppcc trZgbXhW3xHrn8WL8ING+rp/HV0oNsBS49ha+FDq8/gfpYN+604Io3ey14yoRBhLxALk fATQ== X-Gm-Message-State: AJcUukeuAAFE+fteWnRt9N6AfJAR5+QJ6lluIZbL6bsQnILZEoeP5S7L jB1buxZ3DJ4KeygHNUTBVl78u/il X-Google-Smtp-Source: ALg8bN5rPFAiVlLxp43hpUYFhv262nf1lGqqPpDPN7KHuuhW+Vc1vZUHr8yR30GxDhGO0hgkhOYYGw== X-Received: by 2002:a1c:4d12:: with SMTP id o18mr6151901wmh.92.1545472252628; Sat, 22 Dec 2018 01:50:52 -0800 (PST) From: Marcel Apfelbaum To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Sat, 22 Dec 2018 11:50:14 +0200 Message-Id: <20181222095036.29743-10-marcel.apfelbaum@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181222095036.29743-1-marcel.apfelbaum@gmail.com> References: <20181222095036.29743-1-marcel.apfelbaum@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::341 Subject: [Qemu-devel] [PATCH PULL 09/31] hw/pvrdma: Set the correct opcode for recv completion X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yuval.shaia@oracle.com, pjp@fedoraproject.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Yuval Shaia The function pvrdma_post_cqe populates CQE entry with opcode from the given completion element. For receive operation value was not set. Fix it by setting it to IBV_WC_RECV. Signed-off-by: Yuval Shaia Reviewed-by: Marcel Apfelbaum Signed-off-by: Marcel Apfelbaum --- hw/rdma/vmw/pvrdma_qp_ops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/rdma/vmw/pvrdma_qp_ops.c b/hw/rdma/vmw/pvrdma_qp_ops.c index 762700a205..7b0f440fda 100644 --- a/hw/rdma/vmw/pvrdma_qp_ops.c +++ b/hw/rdma/vmw/pvrdma_qp_ops.c @@ -196,8 +196,9 @@ int pvrdma_qp_recv(PVRDMADev *dev, uint32_t qp_handle) comp_ctx =3D g_malloc(sizeof(CompHandlerCtx)); comp_ctx->dev =3D dev; comp_ctx->cq_handle =3D qp->recv_cq_handle; - comp_ctx->cqe.qp =3D qp_handle; comp_ctx->cqe.wr_id =3D wqe->hdr.wr_id; + comp_ctx->cqe.qp =3D qp_handle; + comp_ctx->cqe.opcode =3D IBV_WC_RECV; =20 rdma_backend_post_recv(&dev->backend_dev, &dev->rdma_dev_res, &qp->backend_qp, qp->qp_type, --=20 2.17.1