From patchwork Fri Nov 18 22:42:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niranjana Vishwanathapura X-Patchwork-Id: 9437479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0967860238 for ; Fri, 18 Nov 2016 22:42:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E91F329A2F for ; Fri, 18 Nov 2016 22:42:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD76829A31; Fri, 18 Nov 2016 22:42:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FEDE29A2F for ; Fri, 18 Nov 2016 22:42:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752720AbcKRWmd (ORCPT ); Fri, 18 Nov 2016 17:42:33 -0500 Received: from mga09.intel.com ([134.134.136.24]:23815 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752702AbcKRWmd (ORCPT ); Fri, 18 Nov 2016 17:42:33 -0500 Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga102.jf.intel.com with ESMTP; 18 Nov 2016 14:42:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,660,1473145200"; d="scan'208";a="33132895" Received: from knc-06.sc.intel.com ([172.25.55.131]) by fmsmga006.fm.intel.com with ESMTP; 18 Nov 2016 14:42:31 -0800 From: "Vishwanathapura, Niranjana" To: Doug Ledford Cc: linux-rdma@vger.kernel.org, netdev@vger.kernel.org, Dennis Dalessandro , Niranjana Vishwanathapura Subject: [RFC 01/10] IB/hfi-vnic: Virtual Network Interface Controller (VNIC) documentation Date: Fri, 18 Nov 2016 14:42:09 -0800 Message-Id: <1479508938-63799-2-git-send-email-niranjana.vishwanathapura@intel.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1479508938-63799-1-git-send-email-niranjana.vishwanathapura@intel.com> References: <1479508938-63799-1-git-send-email-niranjana.vishwanathapura@intel.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add HFI VNIC design document explaining the VNIC architecture and the driver design. Change-Id: I7baa39444579dc582fe1e49b86e9cfc71f0a41a4 Reviewed-by: Dennis Dalessandro Signed-off-by: Niranjana Vishwanathapura --- Documentation/infiniband/hfi_vnic.txt | 97 +++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100644 Documentation/infiniband/hfi_vnic.txt diff --git a/Documentation/infiniband/hfi_vnic.txt b/Documentation/infiniband/hfi_vnic.txt new file mode 100644 index 0000000..3501288 --- /dev/null +++ b/Documentation/infiniband/hfi_vnic.txt @@ -0,0 +1,97 @@ +Intel Omni-Path Host Fabric Interface (HFI) Virtual Network Interface +Controller (VNIC) feature supports Ethernet functionality over Omni-Path +fabric by encapsulating the Ethernet packets between HFI nodes. + +The patterns of exchanges of Omni-Path encapsulated Ethernet packets +involves one or more virtual Ethernet switches overlaid on the Omni-Path +fabric topology. A subset of HFI nodes on the Omni-Path fabric are +permitted to exchange encapsulated Ethernet packets across a particular +virtual Ethernet switch. The virtual Ethernet switches are logical +abstractions achieved by configuring the HFI nodes on the fabric for +header generation and processing. In the simplest configuration all HFI +nodes across the fabric exchange encapsulated Ethernet packets over a +single virtual Ethernet switch. A virtual Ethernet switch, is effectively +an independent Ethernet network. The configuration is performed by an +Ethernet Manager (EM) which is part of the trusted Fabric Manager (FM) +application. HFI nodes can have multiple VNICs each connected to a +different virtual Ethernet switch. The below diagram presents a case +of two virtual Ethernet switches with two HFI nodes. + + +-------------------+ + | Subnet/ | + | Ethernet | + | Manager | + +-------------------+ + / / + / / + / / + / / ++-----------------------------+ +------------------------------+ +| Virtual Ethernet Switch | | Virtual Ethernet Switch | +| +---------+ +---------+ | | +---------+ +---------+ | +| | VPORT | | VPORT | | | | VPORT | | VPORT | | ++--+---------+----+---------+-+ +-+---------+----+---------+---+ + | \ / | + | \ / | + | \/ | + | / \ | + | / \ | + +-----------+------------+ +-----------+------------+ + | VNIC | VNIC | | VNIC | VNIC | + +-----------+------------+ +-----------+------------+ + | HFI | | HFI | + +------------------------+ +------------------------+ + +Intel HFI VNIC software design is presented in the below diagram. +HFI VNIC functionality has a HW dependent component and a HW +independent component. HFI VNIC Bus module decouples these two +functionalities. + +The HW dependent VNIC functionality is part of the HFI1 driver. It +implements the bus operations to do various tasks including HW resource +allocation for VNIC functionality and actual transmission and reception +of encapsulated Ethernet packets over the fabric. It creates a control +device (per HFI) on the HFI VNIC bus for the control plane operations +and VNIC devices for the data plane. Each VNIC device on the HFI VNIC +bus is addressed by the HFI instance, HFI port, and a VNIC port number +on the HFI port. + +The HFI VNIC module implements the HW independent VNIC functionality. +It consists of two drivers. The VNIC Ethernet Management Agent (VEMA) +driver binds with the control device on the VNIC bus and interfaces with +the Infiniband MAD stack. It exchanges the management information with +the Ethernet Manager (EM). The VNIC netdev driver binds with the VNIC +devices on the HFI VNIC bus and interfaces with the Linux network stack, +thus providing standard Ethernet network interfaces. The VNIC netdev +driver encapsulates the Ethernet packets with an Omni-Path header before +passing them to the HFI1 driver for transmission. Similarly, it +de-encapsulates the received Omni-Path packets before passing them to the +network stack. For each VNIC interface, the information required for +encapsulation is configured by EM via VEMA MAD interface. + + + +-------------------+ +----------------------+ + | | | Linux | + | IB MAD | | Network | + | | | Stack | + +-------------------+ +----------------------+ + | | + | | + +--------------------------------------------+ + | | + | HFI VNIC Module | + | (HFI VNIC Netdev and EMA drivers) | + | | + +--------------------------------------------+ + | + | + +--------------------------------------------+ + | HFI VNIC Bus | + +--------------------------------------------+ + | + | + +--------------------------------------------+ + | | + | HFI1 Driver with VNIC support | + | | + +--------------------------------------------+