Received: by 10.213.65.68 with SMTP id h4csp614851imn; Wed, 28 Mar 2018 09:30:56 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/TMSWiPrN0P3URXhsW7KuYwEMMtc6896wa6c+EFK1YZ4OjsLy5IAUX0JST7T6PGwFGLfLQ X-Received: by 2002:a17:902:2e:: with SMTP id 43-v6mr4505746pla.282.1522254656037; Wed, 28 Mar 2018 09:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522254656; cv=none; d=google.com; s=arc-20160816; b=iDo/v8/3nfVS3YxRgmKdSVE9e5U28uyFjN0wdTTjchm7mipxzy0K1GYy85fQJOJSGG mQi7SJAMRuBR+tzLMECYQfaDshTtDJBxbwupEpTdtCJQduVTmvggXHGFBxCFwgSEu+ls XWAB8y9g0uRN+mXLAAvavii9YoPlKgqDolQD96LHIs7vgDnEbnNqno17e0qCoACqIgdx XektSPIaQayLhsSeAVAIZLAvA79kTmnrW6kMOmPCzkK8sDQsFngIRkYs6uNeA8hNrQyc 9keVR3F5ghTiYf7LM01FoZzYiERHSMTMabcUXzRODeIA2flZJvEduKI7SOeFFrWA53tC cT5Q== 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=DrE7LLtdIxXE+/sLZY3zJ40n8drnjxoB637d5tzg+LU=; b=Ur2GECwqpb72WDpVdoA3UJrH0Y442Y0u297ZTBB8ZojrXA566VYtyeGBpfLtO16Muw Iwp7RlOV+PkAfA7B3JPOASGCyIKQyldjQW7zzlSU5Tg0epDORRjRpoNKgOQYv/HDdsO3 dQyyYArK8JumNq+d/piKPTzy0PX863JQsN/xWPQyHrFrf05WSCN2HTPDsmLXMli9MabC 5fxB+aqtI2hsrMPkTFX4X9x4eSnUiu3Uuv1NrVZ9KkWTjqL4kMDdE6g8Pdl7zAZD291Q ArLSO5A8OQ48aOJt5LB3Jbzfwr9rTR8VhrSaxuVs7r5xNxmyKGr1b4JlUMWX5l0Tm9/x UR8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=iLN1NUXR; 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 d14-v6si3936584plj.191.2018.03.28.09.30.41; Wed, 28 Mar 2018 09:30:56 -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=iLN1NUXR; 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 S1753252AbeC1Q2R (ORCPT + 99 others); Wed, 28 Mar 2018 12:28:17 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:45438 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753227AbeC1Q2Q (ORCPT ); Wed, 28 Mar 2018 12:28:16 -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=DrE7LLtdIxXE+/sLZY3zJ40n8drnjxoB637d5tzg+LU=; b=iLN1NUXRf2M0nlSPg0AEASPmH+6f18ak3+uH8Tn1bHnp2N1gsvqXjGT/yxz+XqUJIXLWprhpXSIoSUXHezXIjN6LqAUSA7xhwofRNh1w1rNBT9OsDaSlLWAWXTZ9GNtqIsx6NNcqtqzrbku7N/ODmFV+Jw5ZpYKjrbr/+nHwHBs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1f1Dvn-0004LT-3d; Wed, 28 Mar 2018 18:28:11 +0200 Date: Wed, 28 Mar 2018 18:28:11 +0200 From: Andrew Lunn To: Arnd Bergmann Cc: Ioana Ciornei , 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: <20180328162811.GB15827@lunn.ch> References: 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 > I'm still not convinced either way (high-level or low-level > interface), but I think > this needs to be discussed with the networking maintainers. Given the examples > on the github page you linked to, the high-level user space commands > based on these ioctls > > ls-addni # adds a network interface > ls-addmux # adds a dpdmux > ls-addsw # adds an l2switch > ls-listmac # lists MACs and their connections > ls-listni # lists network interfaces and their connections > > and I see that you also support the switchdev interface in > drivers/staging/fsl-dpaa2, which I think does some of the same > things, presumably by implementing the switchdev API using > fsl_mc_command low-level interfaces in the kernel. Hi Arnd I agree that switchdev and devlink should be the correct way to handle this. The low level plumbing of the hardware should all be hidden. There should not be any user space commands needed other than the usual network configuration tools and devlink. Andrew