]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Fix tagging attribute location
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 28 Nov 2018 21:40:04 +0000 (13:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Dec 2018 01:17:39 +0000 (17:17 -0800)
commit2343f307c0a3ba224fdc3fc7caa00ae2f54ddeae
treed70f2b58060b47d2e5608d381209a985016ede8f
parenteb25d13110648dcf3119529feb40ebf04f5bb857
net: dsa: Fix tagging attribute location

While introducing the DSA tagging protocol attribute, it was added to the DSA
slave network devices, but those actually see untagged traffic (that is their
whole purpose). Correct this mistake by putting the tagging sysfs attribute
under the DSA master network device where this is the information that we need.

While at it, also correct the sysfs documentation mistake that missed the
"dsa/" directory component of the attribute.

Fixes: 14f75955b236 ("net: dsa: Expose tagging protocol to user-space")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Documentation/ABI/testing/sysfs-class-net-dsa
net/dsa/master.c
net/dsa/slave.c