Re: [PATCH net-next] net: dsa: Expose tagging protocol to user-space

From: Jiri Pirko
Date: Sat Sep 08 2018 - 05:47:45 EST


Fri, Sep 07, 2018 at 08:09:02PM CEST, f.fainelli@xxxxxxxxx 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.