]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: tag_8021q: Create a stable binary format
authorVladimir Oltean <olteanv@gmail.com>
Wed, 29 May 2019 21:42:31 +0000 (00:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 21:47:14 +0000 (14:47 -0700)
commit5d32ebec4fc7f5c9050fcf5fa2317ed50eaca69a
tree052e42634fbcade7d76df01b3dcfe5eda0151f42
parent8342b8d26513168f7dc968888c6cda318f91b2f6
net: dsa: tag_8021q: Create a stable binary format

Tools like tcpdump need to be able to decode the significance of fake
VLAN headers that DSA uses to separate switch ports.

But currently these have no global significance - they are simply an
ordered list of DSA_MAX_SWITCHES x DSA_MAX_PORTS numbers ending at 4095.

The reason why this is submitted as a fix is that the existing mapping
of VIDs should not enter into a stable kernel, so we can pretend that
only the new format exists. This way tcpdump won't need to try to make
something out of the VLAN tags on 5.2 kernels.

Fixes: 9b68466aaea0 ("net: dsa: Optional VLAN-based port separation for switches without tagging")
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>
net/dsa/tag_8021q.c