net: dsa: add support for DSA rx offloading via metadata dst
authorFelix Fietkau <nbd@nbd.name>
Mon, 14 Nov 2022 12:42:11 +0000 (13:42 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 16 Nov 2022 04:22:07 +0000 (20:22 -0800)
commit570d0a588dfbb11f9ef80ed933d0403a0e995688
tree145adb35df626cc01298a0f3ec10d68d7fe62121
parent7eba4505394e21df44dcace6b5d741a8e2deea3a
net: dsa: add support for DSA rx offloading via metadata dst

If a metadata dst is present with the type METADATA_HW_PORT_MUX on a dsa cpu
port netdev, assume that it carries the port number and that there is no DSA
tag present in the skb data.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/flow_dissector.c
net/dsa/dsa.c