From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: Re: [PATCH net-next] net: dsa: Expose tagging protocol to user-space Date: Sat, 8 Sep 2018 11:43:31 +0200 Message-ID: <20180908094331.GB3246@nanopsycho.orion> References: <20180907180908.3223-1-f.fainelli@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org, Andrew Lunn , Vivien Didelot , "David S. Miller" , open list To: Florian Fainelli Return-path: Content-Disposition: inline In-Reply-To: <20180907180908.3223-1-f.fainelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org Fri, Sep 07, 2018 at 08:09:02PM CEST, f.fainelli@gmail.com wrote: >There is no way for user-space to know what a given DSA network device's >tagging protocol is. Expose this information through a dsa/tagging >attribute which reflects the tagging protocol currently in use. > >This is helpful for configuration (e.g: none behaves dramatically >different wrt. bridges) as well as for packet capture tools when there >is not a proper Ethernet type available. Hmm, I wonder. It this something that varies between ports of an individual ASIC? Or is it rather something defined per-ASIC. If so, this looks more like a devlink-api material.