]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: tag_dsa: Support reception of packets from LAG devices
authorTobias Waldekranz <tobias@waldekranz.com>
Wed, 13 Jan 2021 08:42:55 +0000 (09:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Jan 2021 01:11:56 +0000 (17:11 -0800)
commit08e8c13ab28f39ca38b70556bc987f7757d53392
tree5ed24f6e4f8e303577b29b6c83b8efa36eed6e1f
parent282e7a691896e07673c7a58a6c508ff839d7e065
net: dsa: tag_dsa: Support reception of packets from LAG devices

Packets ingressing on a LAG that egress on the CPU port, which are not
classified as management, will have a FORWARD tag that does not
contain the normal source device/port tuple. Instead the trunk bit
will be set, and the port field holds the LAG id.

Since the exact source port information is not available in the tag,
frames are injected directly on the LAG interface and thus do never
pass through any DSA port interface on ingress.

Management frames (TO_CPU) are not affected and will pass through the
DSA port interface as usual.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/dsa.c
net/dsa/tag_dsa.c