]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Expose tagging protocol to user-space
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 7 Sep 2018 18:09:02 +0000 (11:09 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Sep 2018 21:49:55 +0000 (14:49 -0700)
commite5869f4d54bc9c29e964e4f90315b37cc7b3789a
tree0d459b194330e0605578c05a409674e1c5cb4e5d
parent3c37183f541fa5b3bb3e43cda5e2dc3d6a305570
net: dsa: Expose tagging protocol to user-space

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.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/ABI/testing/sysfs-class-net-dsa [new file with mode: 0644]
net/dsa/dsa.c
net/dsa/dsa_priv.h
net/dsa/slave.c