Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5989459ybc; Wed, 27 Nov 2019 13:00:41 -0800 (PST) X-Google-Smtp-Source: APXvYqxclqUuYZ/jG5FXKSpjJghfe1Fvejn6M+OjwCu8QSoNsug7gjRy4ZQrXpLds/CheCK0LTbJ X-Received: by 2002:aa7:c78a:: with SMTP id n10mr34394762eds.82.1574888441085; Wed, 27 Nov 2019 13:00:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888441; cv=none; d=google.com; s=arc-20160816; b=dN5qf3ihbcOdgBwbAumCWryTB6c3bJ3fXqeyFGKcWfewDlsSv7bzjdX6OU3B8/XZqV Tme051abWeiA7fxYEaKZ2EpHPdDQMOCjzCf+0dm+5CYlPK4/2B0JKaY9cmaAWM6TUsR2 cHI+ix2rkjN2lX/mEBB7fDne0am0bvj1Xqeanybuh9mOJ5kOzYfsENpUhUgFU+o9PoxC v6iP/RY5QnVH7SN1YfOG9S6TRJH1h2cX/bAKBiig/VaTpWl150tcRSuYNBZEh3EOF/FU KO64lwPZZR4D3FPL/cU6SQ0HJbczSruQ4/fIXOos6HY08stwwylCiNtLdh/mc2XKvSHz bhfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VZYgRh7xZEIfrONg9ha/qhVrl7f/tj8yIWx2Ytfir+I=; b=Xf7+m9onZkVNA7SENyR19mVbdksaiX0ewCuQBNUzVn1I0LMGLY3KXdHVeHVNNSE672 ZqLHBjnMb/+b6bfj2O7wJwsA45vxp8nBKhqi9ZwTMMB5TmGHYtNMt/yYWvXVUfd9wAD0 tIUEVoRzfIcOmIBPr+E6BwQ/uppBOWPw/Cku1hWQiIHg4yVfWfY/7vXuRaVBWulPukIi MsXVBM1aPbc4nX6H6d+O5uz7G4TGlCBrpor/dXl1rKOCGIilIVdpvXkJ9N3TgiF+akNd eJ8Z9QxpYTxKN27I2n1CvvyoAEFlvQ8rf6GM0OHYAi+3MWip65g8OSjmD1nfzP9nlcxX izWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="oV/3eLQh"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ck13si10461528ejb.62.2019.11.27.13.00.17; Wed, 27 Nov 2019 13:00:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="oV/3eLQh"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731401AbfK0U7W (ORCPT + 99 others); Wed, 27 Nov 2019 15:59:22 -0500 Received: from mail.kernel.org ([198.145.29.99]:50676 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731150AbfK0U7N (ORCPT ); Wed, 27 Nov 2019 15:59:13 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 451FF2084B; Wed, 27 Nov 2019 20:59:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888352; bh=N6n1vejcjZHQsQPa2gtPju+sXlhGmVg6/fyj4DwkZCs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oV/3eLQhjZrXzJqWPx18+sOt6vUnARkBnwUpBJwjGy/xHZAKie1MtVgqj9Zh0Lo/y LLOsCZQBJTGho0o+4crY++qGXIQhtDK0AQrGM85y6B9OEaTTMg9YbRmJ2yen9eghJp 2g3H5LFw8cvwJvGmGo72pfK6K5LTXT4DWb2viXbw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Devesh Sharma , Selvin Xavier , Jason Gunthorpe , Sasha Levin Subject: [PATCH 4.19 058/306] RDMA/bnxt_re: Fix qp async event reporting Date: Wed, 27 Nov 2019 21:28:28 +0100 Message-Id: <20191127203119.008545724@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Devesh Sharma [ Upstream commit 4c01f2e3a906a0d2d798be5751c331cf501bc129 ] Reports affiliated async event on the qp-async event channel instead of global event channel. Signed-off-by: Devesh Sharma Signed-off-by: Selvin Xavier Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/bnxt_re/main.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/bnxt_re/main.c b/drivers/infiniband/hw/bnxt_re/main.c index 22bd9784fa2ea..7ffad368c5fa1 100644 --- a/drivers/infiniband/hw/bnxt_re/main.c +++ b/drivers/infiniband/hw/bnxt_re/main.c @@ -989,12 +989,17 @@ static void bnxt_re_dispatch_event(struct ib_device *ibdev, struct ib_qp *qp, struct ib_event ib_event; ib_event.device = ibdev; - if (qp) + if (qp) { ib_event.element.qp = qp; - else + ib_event.event = event; + if (qp->event_handler) + qp->event_handler(&ib_event, qp->qp_context); + + } else { ib_event.element.port_num = port_num; - ib_event.event = event; - ib_dispatch_event(&ib_event); + ib_event.event = event; + ib_dispatch_event(&ib_event); + } } #define HWRM_QUEUE_PRI2COS_QCFG_INPUT_FLAGS_IVLAN 0x02 -- 2.20.1