net: dsa: tag_8021q: Future-proof the reserved fields in the custom VID
authorVladimir Oltean <olteanv@gmail.com>
Sun, 25 Aug 2019 18:32:12 +0000 (21:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Sep 2019 09:35:09 +0000 (10:35 +0100)
commit0b003edac850ee96653f2005b8ae27fd92ba32d2
tree1f6bab56be10da488414094547603902366e040a
parentc7f05c1d9bf477d6f3a3067ec74505f88dfda2f3
net: dsa: tag_8021q: Future-proof the reserved fields in the custom VID

[ Upstream commit bcccb0a535bb99616e4b992568371efab1ab14e8 ]

After witnessing the discussion in https://lkml.org/lkml/2019/8/14/151
w.r.t. ioctl extensibility, it became clear that such an issue might
prevent that the 3 RSV bits inside the DSA 802.1Q tag might also suffer
the same fate and be useless for further extension.

So clearly specify that the reserved bits should currently be
transmitted as zero and ignored on receive. The DSA tagger already does
this (and has always did), and is the only known user so far (no
Wireshark dissection plugin, etc). So there should be no incompatibility
to speak of.

Fixes: 0471dd429cea ("net: dsa: tag_8021q: Create a stable binary format")
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/dsa/tag_8021q.c