From patchwork Mon Dec 15 18:11:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arlin Davis X-Patchwork-Id: 5496171 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CD9439F443 for ; Mon, 15 Dec 2014 18:16:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 12CBC20A1E for ; Mon, 15 Dec 2014 18:16:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3412F20A1C for ; Mon, 15 Dec 2014 18:16:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751327AbaLOSQc (ORCPT ); Mon, 15 Dec 2014 13:16:32 -0500 Received: from mga01.intel.com ([192.55.52.88]:23980 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbaLOSQb (ORCPT ); Mon, 15 Dec 2014 13:16:31 -0500 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 15 Dec 2014 10:11:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,581,1413270000"; d="scan'208";a="647939883" Received: from cst-linux.jf.intel.com ([10.23.221.72]) by fmsmga002.fm.intel.com with ESMTP; 15 Dec 2014 10:11:43 -0800 From: arlin.r.davis@intel.com To: linux-rdma@vger.kernel.org Cc: Arlin Davis Subject: [PATCH 2/3] openib: add new TIMEWAIT state for CM Date: Mon, 15 Dec 2014 10:11:38 -0800 Message-Id: <1418667099-32449-3-git-send-email-arlin.r.davis@intel.com> X-Mailer: git-send-email 1.7.3 In-Reply-To: <1418667099-32449-1-git-send-email-arlin.r.davis@intel.com> References: <1418667099-32449-1-git-send-email-arlin.r.davis@intel.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 From: Arlin Davis Signed-off-by: Arlin Davis --- dapl/openib_common/dapl_ib_common.h | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dapl/openib_common/dapl_ib_common.h b/dapl/openib_common/dapl_ib_common.h index 3b565b4..42391b2 100644 --- a/dapl/openib_common/dapl_ib_common.h +++ b/dapl/openib_common/dapl_ib_common.h @@ -340,6 +340,7 @@ typedef enum dapl_cm_state DCM_RTU_PENDING, DCM_DISC_RECV, DCM_FREE, + DCM_TIMEWAIT } DAPL_CM_STATE; @@ -433,9 +434,10 @@ STATIC _INLINE_ char * dapl_cm_state_str(IN int st) "CM_DESTROY", "CM_RTU_PENDING", "CM_DISC_RECV", - "CM_FREE" + "CM_FREE", + "CM_TIMEWAIT" }; - return ((st < 0 || st > 16) ? "Invalid CM state?" : state[st]); + return ((st < 0 || st > 17) ? "Invalid CM state?" : state[st]); } STATIC _INLINE_ char * dapl_cm_op_str(IN int op)