Skip to contentSkip to conversation

net: dsa: tag_8021q: Future-proof the reserved fields in the custom VID

PATCH In review Vladimir Oltean 3 participants 3 messages Aug 25, 2019 – Aug 28, 2019

Subsystems (3)
lore
Share & tools
lore

Vladimir Oltean

author maintainer
#0 lore raw

PATCH 1/1 net: dsa: tag_8021q: Future-proof the reserved fields in the custom VID

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")
---
 net/dsa/tag_8021q.c | 2 ++
 1 file changed, 2 insertions(+)
net/dsa/tag_8021q.c +2 -0
index 6ebbd799c4eb..67a1bc635a7b 100644
@@ -28,6 +28,7 @@
  *
  * RSV - VID[9]:
  *	To be used for further expansion of SWITCH_ID or for other purposes.
+ *	Must be transmitted as zero and ignored on receive.
  *
  * SWITCH_ID - VID[8:6]:
  *	Index of switch within DSA tree. Must be between 0 and
@@ -35,6 +36,7 @@
  *
  * RSV - VID[5:4]:
  *	To be used for further expansion of PORT or for other purposes.
+ *	Must be transmitted as zero and ignored on receive.
  *
  * PORT - VID[3:0]:
  *	Index of switch port. Must be between 0 and DSA_MAX_PORTS - 1.
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw

Le 8/25/19 à 11:32 AM, Vladimir Oltean a écrit :

Quoted 5 lines

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.

Quoted 8 lines

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")
Signature · 1 line
Florian
maintainer
#2 lore raw
In reply to Vladimir Oltean

From: Vladimir Oltean <[email protected]>
Date: Sun, 25 Aug 2019 21:32:12 +0300

Quoted 5 lines

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.

Quoted 8 lines

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")

Applied and queued up for v5.2 -stable.