net: dsa: Add tag handling for Hirschmann Hellcreek switches
authorKurt Kanzenbach <kurt@linutronix.de>
Tue, 3 Nov 2020 07:10:54 +0000 (08:10 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 5 Nov 2020 22:04:49 +0000 (14:04 -0800)
commit01ef09caad66f2e6b2a9d1b92b1db5619fa196f1
tree09b0492b9099303f33d17e0730c463af54d8b0ee
parent94f44f28836de320a318730f4952fde8601f4b58
net: dsa: Add tag handling for Hirschmann Hellcreek switches

The Hirschmann Hellcreek TSN switches have a special tagging protocol for frames
exchanged between the CPU port and the master interface. The format is a one
byte trailer indicating the destination or origin port.

It's quite similar to the Micrel KSZ tagging. That's why the implementation is
based on that code.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/dsa.h
net/dsa/Kconfig
net/dsa/Makefile
net/dsa/tag_hellcreek.c [new file with mode: 0644]