From patchwork Thu Feb 25 07:50:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 8420241 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 583D29F2F0 for ; Thu, 25 Feb 2016 07:51:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9CDD620265 for ; Thu, 25 Feb 2016 07:51:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B6CD3202E9 for ; Thu, 25 Feb 2016 07:51:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759756AbcBYHu7 (ORCPT ); Thu, 25 Feb 2016 02:50:59 -0500 Received: from cmrelayp1.emulex.com ([138.239.112.140]:52338 "EHLO CMRELAYP1.ad.emulex.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1757865AbcBYHu7 (ORCPT ); Thu, 25 Feb 2016 02:50:59 -0500 Received: from neo01-el71.iig.avagotech.net ([10.192.204.61]) by CMRELAYP1.ad.emulex.com with Microsoft SMTPSVC(7.5.7601.17514); Wed, 24 Feb 2016 23:51:04 -0800 From: Devesh Sharma To: linux-rdma@vger.kernel.org Cc: Devesh Sharma Subject: [PATCH 3/4] RDMA/libocrdma: Remove async-event hook from context ops Date: Thu, 25 Feb 2016 02:50:46 -0500 Message-Id: <1456386647-22315-4-git-send-email-devesh.sharma@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1456386647-22315-1-git-send-email-devesh.sharma@broadcom.com> References: <1456386647-22315-1-git-send-email-devesh.sharma@broadcom.com> X-OriginalArrivalTime: 25 Feb 2016 07:51:04.0844 (UTC) FILETIME=[47616CC0:01D16FA1] Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP libocrdma is not doing anything fruitful in ocrdma_async_event() thus this hook is not required for us. Removing it. Signed-off-by: Devesh Sharma --- src/ocrdma_main.c | 1 - src/ocrdma_verbs.c | 28 ---------------------------- 2 files changed, 29 deletions(-) diff --git a/src/ocrdma_main.c b/src/ocrdma_main.c index 4df6b99..5c494d8 100644 --- a/src/ocrdma_main.c +++ b/src/ocrdma_main.c @@ -94,7 +94,6 @@ static struct ibv_context_ops ocrdma_ctx_ops = { .post_recv = ocrdma_post_recv, .create_ah = ocrdma_create_ah, .destroy_ah = ocrdma_destroy_ah, - .async_event = ocrdma_async_event, .create_srq = ocrdma_create_srq, .modify_srq = ocrdma_modify_srq, diff --git a/src/ocrdma_verbs.c b/src/ocrdma_verbs.c index f04b3d6..5248e7e 100644 --- a/src/ocrdma_verbs.c +++ b/src/ocrdma_verbs.c @@ -2190,31 +2190,3 @@ int ocrdma_detach_mcast(struct ibv_qp *ibqp, const union ibv_gid *gid, { return ibv_cmd_detach_mcast(ibqp, gid, lid); } - -void ocrdma_async_event(struct ibv_async_event *event) -{ - struct ocrdma_cq *cq; - struct ocrdma_qp *qp; - switch (event->event_type) { - case IBV_EVENT_CQ_ERR: - cq = get_ocrdma_cq(event->element.cq); - break; - case IBV_EVENT_QP_FATAL: - case IBV_EVENT_QP_REQ_ERR: - case IBV_EVENT_QP_ACCESS_ERR: - case IBV_EVENT_PATH_MIG_ERR:{ - qp = get_ocrdma_qp(event->element.qp); - break; - } - case IBV_EVENT_SQ_DRAINED: - case IBV_EVENT_PATH_MIG: - case IBV_EVENT_COMM_EST: - case IBV_EVENT_QP_LAST_WQE_REACHED: - break; - case IBV_EVENT_PORT_ACTIVE: - case IBV_EVENT_PORT_ERR: - break; - default: - break; - } -}