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)
commita3d7e01da06013dc580641a1da57c3b482d58157
treed70f2b58060b47d2e5608d381209a985016ede8f
parentfd6d433865a2ad1f7e018ef80408cb3dc3be1ab3
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: 98cdb4807123 ("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