From patchwork Thu Jan 16 01:02:37 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Upinder Malhi (umalhi)" X-Patchwork-Id: 3496051 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 768DC9F169 for ; Thu, 16 Jan 2014 01:02:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B32AA20170 for ; Thu, 16 Jan 2014 01:02:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DBA05200E9 for ; Thu, 16 Jan 2014 01:02:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752376AbaAPBCk (ORCPT ); Wed, 15 Jan 2014 20:02:40 -0500 Received: from mtv-iport-2.cisco.com ([173.36.130.13]:1198 "EHLO mtv-iport-2.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752358AbaAPBCj (ORCPT ); Wed, 15 Jan 2014 20:02:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=964; q=dns/txt; s=iport; t=1389834159; x=1391043759; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Kz2iuUwhMy6tKPCC03wFrLeh+WExvJojVG0Ft3UPC74=; b=mrumYyh3fRe0h/vFDQ5mi52VUDdeQEC5btzSS9uDUyBWpM2dxbOw2U1P v3ZegJzJv23WcpR7ti9JJzyDkVi1RA1jtNuIIRvMDe9j8NFgETd6k0Za5 Cwze7b+1a1AH2hiYozyDfcfqteDOCdDB/zXWNnKlOFLVlW3Dxm6zdO1F9 4=; X-IronPort-AV: E=Sophos;i="4.95,665,1384300800"; d="scan'208";a="103107347" Received: from mtv-core-3.cisco.com ([171.68.58.8]) by mtv-iport-2.cisco.com with ESMTP; 16 Jan 2014 01:02:39 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by mtv-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id s0G12cUp030286; Thu, 16 Jan 2014 01:02:38 GMT Received: by cisco.com (Postfix, from userid 246720) id 9C1BB3FAA48A; Wed, 15 Jan 2014 17:02:38 -0800 (PST) From: Upinder Malhi To: linux-rdma@vger.kernel.org, roland@kernel.org Cc: Upinder Malhi Subject: [PATCH for-next 2/2] IB/usnic: Advertise usNIC devices as RDMA_NODE_USNIC_UDP Date: Wed, 15 Jan 2014 17:02:37 -0800 Message-Id: <1389834157-16635-3-git-send-email-umalhi@cisco.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1389834157-16635-1-git-send-email-umalhi@cisco.com> References: <1389834157-16635-1-git-send-email-umalhi@cisco.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=-14.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY, USER_IN_DEF_DKIM_WL 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 usNIC default transport is UDP. Hence, advertise RDMA_NODE_USNIC_UDP by default for usNIC devices. Signed-off-by: Upinder Malhi --- drivers/infiniband/hw/usnic/usnic_ib_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/usnic/usnic_ib_main.c b/drivers/infiniband/hw/usnic/usnic_ib_main.c index 7d2efd4..fb6d026 100644 --- a/drivers/infiniband/hw/usnic/usnic_ib_main.c +++ b/drivers/infiniband/hw/usnic/usnic_ib_main.c @@ -332,7 +332,7 @@ static void *usnic_ib_device_add(struct pci_dev *dev) us_ibdev->pdev = dev; us_ibdev->netdev = pci_get_drvdata(dev); us_ibdev->ib_dev.owner = THIS_MODULE; - us_ibdev->ib_dev.node_type = RDMA_NODE_USNIC; + us_ibdev->ib_dev.node_type = RDMA_NODE_USNIC_UDP; us_ibdev->ib_dev.phys_port_cnt = USNIC_IB_PORT_CNT; us_ibdev->ib_dev.num_comp_vectors = USNIC_IB_NUM_COMP_VECTORS; us_ibdev->ib_dev.dma_device = &dev->dev;