From patchwork Sun Jul 8 17:49:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 1169991 X-Patchwork-Delegate: ira.weiny@intel.com Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id CC4D43FD4F for ; Sun, 8 Jul 2012 17:49:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751450Ab2GHRtn (ORCPT ); Sun, 8 Jul 2012 13:49:43 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:56651 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751279Ab2GHRtn (ORCPT ); Sun, 8 Jul 2012 13:49:43 -0400 Received: by bkwj10 with SMTP id j10so5454849bkw.19 for ; Sun, 08 Jul 2012 10:49:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=+ftq5NEhK3FE7hSqfJGDodDK53Yh0z38/lH0z8Xu/4k=; b=L79W0dub76S5CVgRDcrpJ+/LMd7fvKjK/NLqm50R46fUJozwXwEMrQm2437VS1OHED YJN2BZ5WwyWUAZbC+wdQB1JZRGnziQlYWuEU9LEkkNtnPov6AZXVJxRcDxLQXs3PIQNn 7qwYrzC+rKgiM5t0sAZZOh/JxrhUS7HA8/A2ZgyP+/S85CqD0sFX6610ZamVcLEvQER9 XjJFbLfXKjiQ/Syf5QdWjdi45KPg9eOzt5HbgSg/jjMzhuAysl7MFPLLze4ra2cgvsAL TsAv9g8nYMv4aIR5PxwZ8cX+3Iw2jWMT+7qKIYInTHWZUOZYfKwMN/daIoItuA3GwGWi Y+VA== Received: by 10.204.130.156 with SMTP id t28mr16545798bks.33.1341769781719; Sun, 08 Jul 2012 10:49:41 -0700 (PDT) Received: from [192.168.1.102] (c-71-192-10-85.hsd1.ma.comcast.net. [71.192.10.85]) by mx.google.com with ESMTPS id g6sm1387831bkg.2.2012.07.08.10.49.39 (version=SSLv3 cipher=OTHER); Sun, 08 Jul 2012 10:49:40 -0700 (PDT) Message-ID: <4FF9C831.8010506@dev.mellanox.co.il> Date: Sun, 08 Jul 2012 13:49:37 -0400 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: Ira Weiny CC: "linux-rdma (linux-rdma@vger.kernel.org)" , Daniel Klein Subject: [PATCHv2] infiniband-diags: Support MLNX ExtendedPortInfo for ConnectIB device X-Gm-Message-State: ALoCoQnBeATO65dlrbMxF1gO6M2l7/T37SY088JGRgs74oqhFyld7g3zXPKStRaKuGl/FB5JtnVT Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org Signed-off-by: Hal Rosenstock --- Change since v1: Added similar change to libibnetdisc Pointed out by Daniel Klein -- 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/libibnetdisc/src/ibnetdisc.c b/libibnetdisc/src/ibnetdisc.c index a0cbe3e..3a7dd8f 100644 --- a/libibnetdisc/src/ibnetdisc.c +++ b/libibnetdisc/src/ibnetdisc.c @@ -205,7 +205,7 @@ static int is_mlnx_ext_port_info_supported(ibnd_port_t * port) if (devid == 0xc738) return 1; - if (devid >= 0x1003 && devid <= 0x1010) + if (devid >= 0x1003 && devid <= 0x1011) return 1; return 0; } diff --git a/src/ibdiag_common.c b/src/ibdiag_common.c index 78882a2..ebe8797 100644 --- a/src/ibdiag_common.c +++ b/src/ibdiag_common.c @@ -501,7 +501,7 @@ int is_mlnx_ext_port_info_supported(uint32_t devid) if (ibd_ibnetdisc_flags & IBND_CONFIG_MLX_EPI) { if (devid == 0xc738) return 1; - if (devid >= 0x1003 && devid <= 0x1010) + if (devid >= 0x1003 && devid <= 0x1011) return 1; } return 0;