From patchwork Sat Mar 9 13:53:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2241621 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 69610DF2F2 for ; Sat, 9 Mar 2013 13:53:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757262Ab3CINxn (ORCPT ); Sat, 9 Mar 2013 08:53:43 -0500 Received: from mail-wi0-f173.google.com ([209.85.212.173]:36685 "EHLO mail-wi0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753590Ab3CINxm (ORCPT ); Sat, 9 Mar 2013 08:53:42 -0500 Received: by mail-wi0-f173.google.com with SMTP id hq4so207334wib.0 for ; Sat, 09 Mar 2013 05:53:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=YburWjsixYYNnbuMjJZlAVF+JqP5/AVcd56fP432WgE=; b=RL29tFZV1rCsuovgQxs/c3H11cbiS6+0HGtEb83aBZX5UuNU3Hposyhl7IJfpi8Sm/ SMSIBoGi9lH2uJX5/zxfL6fzGX+3auJUtt+hggD8zVXXLbjPVjvoj5K0SWm8Ci/XVj2a 00vgvhuhdsAy4pvJtz7Qj9sG2BQZ9yKYruEkRyj7cwlyTGdc/vh3FREnjkx2cLV2cukU FUjLAqNU2dIt+zReHuBarTvog/eF4Wp+DZEAGxj6bFKfpraRue+p91RpqLa85TANZdkX 0d4eHApUU7d8G6GNeCcndBtEqiVYn/I4rt2O6tBdOXDK0xX8QdUc6WszqdLHC0vB+S09 Jwfg== X-Received: by 10.180.76.171 with SMTP id l11mr3690019wiw.24.1362837221481; Sat, 09 Mar 2013 05:53:41 -0800 (PST) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPS id ex1sm4736754wib.7.2013.03.09.05.53.39 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 09 Mar 2013 05:53:40 -0800 (PST) Message-ID: <513B3EE2.1000706@dev.mellanox.co.il> Date: Sat, 09 Mar 2013 08:53:38 -0500 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH] libibumad: Add recent/missing SM/SA attributes X-Gm-Message-State: ALoCoQlrEzEZ6G0HJnU5RjnUhORv6VBXdly3QzBWBDUCex/S8YD9v6PCD5fLalhPOvqwJUCvtM7k Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/infiniband/umad_sa.h b/include/infiniband/umad_sa.h index aaf2ac1..eb7812d 100644 --- a/include/infiniband/umad_sa.h +++ b/include/infiniband/umad_sa.h @@ -82,6 +82,7 @@ enum { UMAD_SA_ATTR_RANDOM_FT_REC = 0x0016, UMAD_SA_ATTR_MCAST_FT_REC = 0x0017, UMAD_SA_ATTR_SM_INFO_REC = 0x0018, + UMAD_SA_ATTR_LINK_SPD_WIDTH_TABLE_REC = 0x0019, UMAD_SA_ATTR_INFORM_INFO_REC = 0x00F3, UMAD_SA_ATTR_LINK_REC = 0x0020, UMAD_SA_ATTR_GUID_INFO_REC = 0x0030, @@ -92,7 +93,9 @@ enum { UMAD_SA_ATTR_MCMEMBER_REC = 0x0038, UMAD_SA_ATTR_TRACE_REC = 0x0039, UMAD_SA_ATTR_MULTI_PATH_REC = 0x003A, - UMAD_SA_ATTR_SERVICE_ASSOC_REC = 0x003B + UMAD_SA_ATTR_SERVICE_ASSOC_REC = 0x003B, + UMAD_SA_ATTR_HIERARCHY_INFO_REC = 0x003C, + UMAD_SA_ATTR_CABLE_INFO_REC = 0x003D }; enum { diff --git a/include/infiniband/umad_sm.h b/include/infiniband/umad_sm.h index f6ee171..bd6833b 100644 --- a/include/infiniband/umad_sm.h +++ b/include/infiniband/umad_sm.h @@ -67,9 +67,12 @@ enum { UMAD_SMP_ATTR_RANDOM_FT = 0x001A, UMAD_SMP_ATTR_MCAST_FT = 0x001B, UMAD_SMP_ATTR_LINK_SPD_WIDTH_TABLE = 0x001C, + UMAD_SMP_ATTR_VENDOR_MADS_TABLE = 0x001D, + UMAD_SMP_ATTR_HIERARCHY_INFO = 0x001E, UMAD_SMP_ATTR_SM_INFO = 0x0020, UMAD_SMP_ATTR_VENDOR_DIAG = 0x0030, UMAD_SMP_ATTR_LED_INFO = 0x0031, + UMAD_SMP_ATTR_CABLE_INFO = 0x0032, UMAD_SMP_ATTR_VENDOR_MASK = 0xFF00 }; diff --git a/src/umad_str.c b/src/umad_str.c index 957552f..a04b35b 100644 --- a/src/umad_str.c +++ b/src/umad_str.c @@ -233,6 +233,12 @@ static const char * umad_sm_attr_str(be16_t attr_id) return ("LedInfo"); case UMAD_SMP_ATTR_LINK_SPD_WIDTH_TABLE: return ("LinkSpeedWidthPairsTable"); + case UMAD_SMP_ATTR_VENDOR_MADS_TABLE: + return ("VendorSpecificMadsTable"); + case UMAD_SMP_ATTR_HIERARCHY_INFO: + return ("HierarchyInfo"); + case UMAD_SMP_ATTR_CABLE_INFO: + return ("CableInfo"); default: return (umad_common_attr_str(attr_id)); } @@ -280,6 +286,12 @@ static const char * umad_sa_attr_str(be16_t attr_id) return ("MultiPathRecord"); case UMAD_SA_ATTR_SERVICE_ASSOC_REC: return ("ServiceAssociationRecord"); + case UMAD_SA_ATTR_LINK_SPD_WIDTH_TABLE_REC: + return ("LinkSpeedWidthPairsTableRecord"); + case UMAD_SA_ATTR_HIERARCHY_INFO_REC: + return ("HierarchyInfoRecord"); + case UMAD_SA_ATTR_CABLE_INFO_REC: + return ("CableInfoRecord"); default: return (umad_common_attr_str(attr_id)); }