From patchwork Fri Dec 20 20:30:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Upinder Malhi (umalhi)" X-Patchwork-Id: 3391821 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 E18CE9F344 for ; Fri, 20 Dec 2013 20:30:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 06AA120708 for ; Fri, 20 Dec 2013 20:30:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2966320703 for ; Fri, 20 Dec 2013 20:30:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752147Ab3LTUal (ORCPT ); Fri, 20 Dec 2013 15:30:41 -0500 Received: from mtv-iport-4.cisco.com ([173.36.130.15]:20973 "EHLO mtv-iport-4.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752551Ab3LTUag (ORCPT ); Fri, 20 Dec 2013 15:30:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=820; q=dns/txt; s=iport; t=1387571436; x=1388781036; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=lb+cuxYslmy+nD7mdVXNgQx2SbJYMpt7e07fUlHaa3g=; b=e0aMpRdo4G6Nqs9qUH3ODb8iQ5zrWkcDi8fpj38ZcTy6kElNi2grI4Uj ao5LGeSBUD8JJK0dLUVIxuJHWGf8RKC/tYHr6iuBZgvh4uGx5tiSHIXlZ h7c5cB1prQ4sOn5Mnon0BFMBm7q1+aa4uKD0q9QixNIk9AO4opHzIhWN9 s=; X-IronPort-AV: E=Sophos;i="4.95,523,1384300800"; d="scan'208";a="101057327" Received: from mtv-core-1.cisco.com ([171.68.58.6]) by mtv-iport-4.cisco.com with ESMTP; 20 Dec 2013 20:30:36 +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 rBKKUX8n029935; Fri, 20 Dec 2013 20:30:35 GMT Received: by sjc-savbu-bld03.cisco.com (Postfix, from userid 246720) id E96543F3FF; Fri, 20 Dec 2013 12:30:33 -0800 (PST) From: Upinder Malhi To: linux-rdma@vger.kernel.org, roland@kernel.org Cc: Upinder Malhi Subject: [PATCH for-next 1/5] IB/usnic: Add struct usnic_transport_spec Date: Fri, 20 Dec 2013 12:30:21 -0800 Message-Id: <1387571425-8566-2-git-send-email-umalhi@cisco.com> X-Mailer: git-send-email 1.8.0-rc0 In-Reply-To: <1387571425-8566-1-git-send-email-umalhi@cisco.com> References: <1387571425-8566-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=-15.0 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(+) -- 1.8.1 -- 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/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;