From patchwork Wed Feb 8 10:08:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amrani, Ram" X-Patchwork-Id: 9562195 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A3624601E5 for ; Wed, 8 Feb 2017 10:59:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9766B28365 for ; Wed, 8 Feb 2017 10:59:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B3C728434; Wed, 8 Feb 2017 10:59:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1869D28365 for ; Wed, 8 Feb 2017 10:59:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753739AbdBHK7M (ORCPT ); Wed, 8 Feb 2017 05:59:12 -0500 Received: from mx0a-0016ce01.pphosted.com ([67.231.148.157]:56218 "EHLO mx0b-0016ce01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752739AbdBHK7K (ORCPT ); Wed, 8 Feb 2017 05:59:10 -0500 Received: from pps.filterd (m0095336.ppops.net [127.0.0.1]) by mx0a-0016ce01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v18A6BKJ023003; Wed, 8 Feb 2017 02:09:28 -0800 Received: from avcashub1.qlogic.com ([198.186.0.117]) by mx0a-0016ce01.pphosted.com with ESMTP id 28g15j80pg-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 08 Feb 2017 02:09:28 -0800 Received: from lb-tlvb-ramrani.il.qlogic.org (10.185.6.119) by qlc.com (10.1.4.192) with Microsoft SMTP Server id 14.3.235.1; Wed, 8 Feb 2017 02:09:10 -0800 From: Ram Amrani To: CC: , , Ram Amrani Subject: [PATCH qperf] Destroy server's QP in CM mode. Date: Wed, 8 Feb 2017 12:08:45 +0200 Message-ID: <1486548525-7518-1-git-send-email-Ram.Amrani@cavium.com> X-Mailer: git-send-email 2.1.0 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=nai engine=5800 definitions=8432 signatures=670815 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1702080102 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ram Amrani --- src/rdma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rdma.c b/src/rdma.c index 0d370bd..117b429 100644 --- a/src/rdma.c +++ b/src/rdma.c @@ -1937,6 +1937,7 @@ cm_close(DEVICE *dev) error(SYS, "rdma_disconnect failed"); cm_expect_event(dev, RDMA_CM_EVENT_DISCONNECTED); cm_ack_event(dev); + rdma_destroy_qp(dev->cm.id); rdma_destroy_id(dev->cm.id); rdma_destroy_event_channel(dev->cm.channel); }