OSDN Git Service

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)
commit5b60dadb71db7df94b824a0fab20acc1eabb9050
tree5ed24f6e4f8e303577b29b6c83b8efa36eed6e1f
parent57e661aae6a823140787dbcc34d92e223e2f71c5
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