From patchwork Thu Jan 9 22:48:06 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: 3463531 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EACE0C02DC for ; Thu, 9 Jan 2014 22:48:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 49264200F3 for ; Thu, 9 Jan 2014 22:48:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 70E402010B for ; Thu, 9 Jan 2014 22:48:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756497AbaAIWs2 (ORCPT ); Thu, 9 Jan 2014 17:48:28 -0500 Received: from mtv-iport-2.cisco.com ([173.36.130.13]:23235 "EHLO mtv-iport-2.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756638AbaAIWsW (ORCPT ); Thu, 9 Jan 2014 17:48:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=822; q=dns/txt; s=iport; t=1389307702; x=1390517302; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=vnrQR0o/O+ZwkBtwlbL4Gm5oBbWRLZUWXHCyP6rVPrI=; b=mhzMdvIv7vVvIWFRfHTOHE8OYIuaEiOybilJ1b9MpWpCd8DyfQUK0UjG R5vI8s9D+bohjDhqrB4lYtXpxS+xJ7nLgh3vsF90NGfVzbfzfC4QitHss WPIowK1Mc3MO9mw2V/85bQm2S6g+0LdnLK3eusoyCr2AshvQTbxnjZxlD A=; X-IronPort-AV: E=Sophos;i="4.95,634,1384300800"; d="scan'208";a="102511287" Received: from mtv-core-1.cisco.com ([171.68.58.6]) by mtv-iport-2.cisco.com with ESMTP; 09 Jan 2014 22:48:22 +0000 Received: from sjc-savbu-bld03.cisco.com (sjc-savbu-bld03.cisco.com [171.71.188.58]) by mtv-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id s09MmBlV030793; Thu, 9 Jan 2014 22:48:18 GMT Received: by sjc-savbu-bld03.cisco.com (Postfix, from userid 246720) id 77F803F588; Thu, 9 Jan 2014 14:48:11 -0800 (PST) From: Upinder Malhi To: linux-rdma@vger.kernel.org, roland@kernel.org Cc: Upinder Malhi Subject: [PATCH v1 for-next 1/5] IB/usnic: Add struct usnic_transport_spec Date: Thu, 9 Jan 2014 14:48:06 -0800 Message-Id: <1389307690-11493-2-git-send-email-umalhi@cisco.com> X-Mailer: git-send-email 1.8.0-rc0 In-Reply-To: <1389307690-11493-1-git-send-email-umalhi@cisco.com> References: <1389307690-11493-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.5 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 Add *struct usnic_transport_spec* for passing around transport specifications. Signed-off-by: Upinder Malhi --- drivers/infiniband/hw/usnic/usnic_abi.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/infiniband/hw/usnic/usnic_abi.h b/drivers/infiniband/hw/usnic/usnic_abi.h index 2beabf7..7eb49f4 100644 --- a/drivers/infiniband/hw/usnic/usnic_abi.h +++ b/drivers/infiniband/hw/usnic/usnic_abi.h @@ -33,6 +33,15 @@ enum usnic_transport_type { USNIC_TRANSPORT_MAX = 2, }; +struct usnic_transport_spec { + enum usnic_transport_type trans_type; + union { + struct { + uint16_t port_num; + } usnic_roce; + }; +}; + /*TODO: Future - usnic_modify_qp needs to pass in generic filters */ struct usnic_ib_create_qp_resp { u32 vfid;