From patchwork Sat Jun 22 21:47:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ira Weiny X-Patchwork-Id: 2766601 X-Patchwork-Delegate: hal@mellanox.com 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 F1A829F472 for ; Sat, 22 Jun 2013 21:47:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F260B20117 for ; Sat, 22 Jun 2013 21:47:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CE3ED20113 for ; Sat, 22 Jun 2013 21:47:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751157Ab3FVVrM (ORCPT ); Sat, 22 Jun 2013 17:47:12 -0400 Received: from mga03.intel.com ([143.182.124.21]:36453 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751032Ab3FVVrM (ORCPT ); Sat, 22 Jun 2013 17:47:12 -0400 Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga101.ch.intel.com with ESMTP; 22 Jun 2013 14:47:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,920,1363158000"; d="scan'208";a="258764179" Received: from scvm10.sc.intel.com ([10.82.195.27]) by AZSMGA002.ch.intel.com with SMTP; 22 Jun 2013 14:47:11 -0700 Date: Sat, 22 Jun 2013 14:47:11 -0700 From: Ira Weiny To: linux-rdma@vger.kernel.org Cc: Hal Rosenstock Subject: [PATCH] libibumad: add SA CAP MASK[2] definitions Message-Id: <20130622144711.11814c38b9b4fd65f9598038@intel.com> X-Mailer: Sylpheed 3.3.0 (GTK+ 2.18.9; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, UPPERCASE_50_75 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 Signed-off-by: Ira Weiny --- include/infiniband/umad_sa.h | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/include/infiniband/umad_sa.h b/include/infiniband/umad_sa.h index eb7812d..a236806 100644 --- a/include/infiniband/umad_sa.h +++ b/include/infiniband/umad_sa.h @@ -102,6 +102,30 @@ enum { UMAD_LEN_SA_DATA = 200 }; +/* CM bits */ +enum { + UMAD_SA_CAP_MASK_IS_SUBNET_OPT_REC_SUP = (1 << 8), + UMAD_SA_CAP_MASK_IS_UD_MCAST_SUP = (1 << 9), + UMAD_SA_CAP_MASK_IS_MULTIPATH_SUP = (1 << 10), + UMAD_SA_CAP_MASK_IS_REINIT_SUP = (1 << 11), + UMAD_SA_CAP_MASK_IS_GID_SCOPED_MULTIPATH_SUP = (1 << 12), + UMAD_SA_CAP_MASK_IS_PORTINFO_CAP_MASK_MATCH_SUP = (1 << 13), + UMAD_SA_CAP_MASK_IS_LINK_SPEED_WIDTH_PAIRS_REC_SUP = (1 << 14), + UMAD_SA_CAP_MASK_IS_PA_SERVICES_SUP = (1 << 15) +}; +/* CM2 bits */ +enum { + UMAD_SA_CAP_MASK2_IS_UNPATH_REPATH_SUP = (1 << 0), + UMAD_SA_CAP_MASK2_IS_QOS_SUP = (1 << 1), + UMAD_SA_CAP_MASK2_IS_REV_PATH_PKEY_MEM_BIT_SUP = (1 << 2), + UMAD_SA_CAP_MASK2_IS_MCAST_TOP_SUP = (1 << 3), + UMAD_SA_CAP_MASK2_IS_HIERARCHY_INFO_SUP = (1 << 4), + UMAD_SA_CAP_MASK2_IS_ADDITIONAL_GUID_SUP = (1 << 5), + UMAD_SA_CAP_MASK2_IS_FULL_PORTINFO_REC_SUP = (1 << 6), + UMAD_SA_CAP_MASK2_IS_EXT_SPEEDS_SUP = (1 << 7), + UMAD_SA_CAP_MASK2_IS_MCAST_SERVICE_REC_SUP = (1 << 8) +}; + /* * sm_key is not aligned on an 8-byte boundary, so is defined as a byte array */