Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp640440pxu; Fri, 23 Oct 2020 09:34:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgdtkgqpCfWoRSzh9s7se6n8EMfYd00RBPdYpZAE66Xmi4UuDrDB6hZO0/Nd6GLCXL/k8d X-Received: by 2002:a50:fc85:: with SMTP id f5mr3118467edq.187.1603470894545; Fri, 23 Oct 2020 09:34:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603470894; cv=none; d=google.com; s=arc-20160816; b=owz8nLHoUrUKlBhM2wlk3kPeXeaSIwi9TYCAXrCxTnweaL5xk8Dz0AIgNNoYerMEmt 7r7OCl+2ZRwkk0TKwvicngZJIzjFCzA4phKzpdtsUEnqSak739gt52oK2/JayHa1vMe4 lZljgZyDZqoy5qhC+ZXB9sFjoYxztidbmy9ESoMaj2mu0tgaWcvaWj+IvvfiX21oK4DX 3rDRSN8o6UOyItfQk63Tsp7pHrqpfCh8aFEUgZDa3Am3fcCgGcuKIotH4L/Nb8bD7Ut9 qBUv5f18XKGGAWhYlYRsctLwwza1nAtBhjaIV67mdoGKlGZRLQFvM/Gspap8lIZR06ee 9YBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=e/+ooltF8lrt9TDO00ZsXUW5uWlW8Jk0LT/mIyBKxk0=; b=HNClz8LvjVwLiwpSYLVflse5aB4q0yBpxYlXiSWq426BFYZyVZWj+Qw27wyFt+tBBt 1BntuAwL64oKgzH5xXzCzCmepG6Uu0wvI1Gz3A4RlkcX4iO0ii4rV7D1RU6M6NaTHXS+ cfj5CEBLnsJI72xRMyvuzYQ/Ml3qxv6ivn9g3eHAmGfGx85kiqzcR4QxtPNu3Sesw0hC q01RxR6IRBPOY/lzlc0I13ovSOeczwKW4eJc42SnFjZc+pIr8ooAKxDlzx4tgK/RFBDJ 4uMcUg+dqpaLYbr0e87NuRKWoXJ4YiE9f9o0iNlq88REocSvPXqqfBmG47d3jOfiqG1p ZjdQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e12si1093375edy.188.2020.10.23.09.34.32; Fri, 23 Oct 2020 09:34:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S465950AbgJWPho (ORCPT + 99 others); Fri, 23 Oct 2020 11:37:44 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:41834 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S462875AbgJWPhn (ORCPT ); Fri, 23 Oct 2020 11:37:43 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kVz8F-0039CC-Gm; Fri, 23 Oct 2020 17:37:31 +0200 Date: Fri, 23 Oct 2020 17:37:31 +0200 From: Andrew Lunn To: Xu Yilun Cc: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com, davem@davemloft.net, kuba@kernel.org, mdf@kernel.org, lee.jones@linaro.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, netdev@vger.kernel.org, trix@redhat.com, lgoncalv@redhat.com, hao.wu@intel.com Subject: Re: [RFC PATCH 1/6] docs: networking: add the document for DFL Ether Group driver Message-ID: <20201023153731.GC718124@lunn.ch> References: <1603442745-13085-1-git-send-email-yilun.xu@intel.com> <1603442745-13085-2-git-send-email-yilun.xu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1603442745-13085-2-git-send-email-yilun.xu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Xu Before i look at the other patches, i want to understand the architecture properly. > +======================================================================= > +DFL device driver for Ether Group private feature on Intel(R) PAC N3000 > +======================================================================= > + > +This is the driver for Ether Group private feature on Intel(R) > +PAC (Programmable Acceleration Card) N3000. I assume this is just one implementation. The FPGA could be placed on other boards. So some of the limitations you talk about with the BMC artificial, and the overall architecture of the drivers is more generic? > +The Intel(R) PAC N3000 is a FPGA based SmartNIC platform for multi-workload > +networking application acceleration. A simple diagram below to for the board: > + > + +----------------------------------------+ > + | FPGA | > ++----+ +-------+ +-----------+ +----------+ +-----------+ +----------+ > +|QSFP|---|retimer|---|Line Side |--|User logic|--|Host Side |---|XL710 | > ++----+ +-------+ |Ether Group| | | |Ether Group| |Ethernet | > + |(PHY + MAC)| |wiring & | |(MAC + PHY)| |Controller| > + +-----------+ |offloading| +-----------+ +----------+ > + | +----------+ | > + | | > + +----------------------------------------+ Is XL710 required? I assume any MAC with the correct MII interface will work? Do you really mean PHY? I actually expect it is PCS? > +The DFL Ether Group driver registers netdev for each line side link. Users > +could use standard commands (ethtool, ip, ifconfig) for configuration and > +link state/statistics reading. For host side links, they are always connected > +to the host ethernet controller, so they should always have same features as > +the host ethernet controller. There is no need to register netdevs for them. So lets say the XL710 is eth0. The line side netif is eth1. Where do i put the IP address? What interface do i add to quagga OSPF? > +The driver just enables these links on probe. > + > +The retimer chips are managed by onboard BMC (Board Management Controller) > +firmware, host driver is not capable to access them directly. What about the QSPF socket? Can the host get access to the I2C bus? The pins for TX enable, etc. ethtool -m? > +Speed/Duplex > +------------ > +The Ether Group doesn't support auto-negotiation. The link speed is fixed to > +10G, 25G or 40G full duplex according to which Ether Group IP is programmed. So that means, if i pop out the SFP and put in a different one which supports a different speed, it is expected to be broken until the FPGA is reloaded? Andrew