Received: by 10.213.65.68 with SMTP id h4csp2389832imn; Mon, 2 Apr 2018 06:46:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx480LnwplzPCw9yS/nUCSuHwz8K/Uzgmkzd/ZNVFs6mDal9KfVy0HxcfEnKFrVt0rnGCjX7n X-Received: by 2002:a17:902:9001:: with SMTP id a1-v6mr9685950plp.211.1522676767951; Mon, 02 Apr 2018 06:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522676767; cv=none; d=google.com; s=arc-20160816; b=xyBd0VgqMgjJ4aDCLZWUXvkvJe3yrKrWrhhYQR/h8asCl+5iT7ryyu3BIYKQnuCogZ fwAGyzVNFhZMhB7oQJBhoaYyWWTAWdgy/RqyJ7J90B2zg+xdCHLoIS3PiamKQgczv6R0 G1yKHiayocnm/IQTbIc7uQ1+iR/W6Z5N/OHVBZ43uhMlKVE2wi1Lw0OzI70RcyFgl/mU F+zdWxYB9o5W4+rZu/rNRUfDXr9F7mioWN1OqUhaYWHFAZa/UgR+fmGWebEbZ73n7sem FVt2WXsWemKsd65BHuFD+RSnIV2ZYvbcQWjLiiyRpa75UZjytgNRy3hItKD/kvUSYj4O nvuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=nNY+LxJL+R4CeyvFVo9uugpSKQ4Xitu1U2vIGK1ELv4=; b=C8qsUCUEle/ao6ROvuGtvX9LEGDFomRmx81PSTOYcDy17DmAcL5VwO7kmVjX8DCs9d fVXo3Ux8AEWdp5uMwplvo7n8/fkhM0oo+/WJcdrzI6ccGS8q5sZxeYO6F3gMj5LIJakS uUrJP6hePzBHx9/mhBaHkALew2LpZ5yGe3bAS4CBucZXDr9fEuCRs5ZfKUpr/yg5GbUN fDpiZxn+GVVWBHBToh7VUTWjDMn7MXKbMaafE5nKVDw2x377xNAKywQeKOz7+Fjg6WRU ez1NC8hkFmv3KzLLHdAj4WGFh5vZ2gfMZHzVlNuX5OdHQP3Wxvf3D6rXGR6ys9IutaRJ jBHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=S04YcfEm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f12si261345pgr.43.2018.04.02.06.45.53; Mon, 02 Apr 2018 06:46:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=S04YcfEm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751338AbeDBNos (ORCPT + 99 others); Mon, 2 Apr 2018 09:44:48 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:48871 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750710AbeDBNop (ORCPT ); Mon, 2 Apr 2018 09:44:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=nNY+LxJL+R4CeyvFVo9uugpSKQ4Xitu1U2vIGK1ELv4=; b=S04YcfEmp55+47ejH8Sew4ufRHzGJgkuC/Ws5xb37+OzC7jpUV+T16OT+Xi/LoeoTRbyeTdndVmoQaQ1ZxLqKKADnDT2kQSGl/ETSGJvk+wkj32mhXJCJRNv8zwA0Jr+wnmTCFL1QWWxfiF030EEQkAkuvyUGrC03XNKJSxgxic=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1f2zlJ-0002tE-VW; Mon, 02 Apr 2018 15:44:41 +0200 Date: Mon, 2 Apr 2018 15:44:41 +0200 From: Andrew Lunn To: Ioana Ciornei Cc: Arnd Bergmann , gregkh , Laurentiu Tudor , Linux Kernel Mailing List , Stuart Yoder , Ruxandra Ioana Ciocoi Radulescu , Razvan Stefanescu , Roy Pledge , Networking Subject: Re: [PATCH v3 2/4] bus: fsl-mc: add restool userspace support Message-ID: <20180402134441.GB10520@lunn.ch> References: <20180328162811.GB15827@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ioana > The commands listed above are for creating/destroying DPAA2 objects > in Management Complex and not for runtime configuration where > standard userspace tools are used. Please can you explain why this is not just plumbing inside a switchdev driver? The hardware has a number of physical ports. So on probe, i would expect it to create a DPMAC, DPNI, and DPIO for each port, and a linux netdev. From then on, standard tools are all that are needed. The switchdev driver can create a l2 switch object when the user uses the ip link add name br0 type bridge. It can then connect the switch object to the DPNI when the user adds an interface to the switch, etc. Andrew