]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: tag_dsa: Unify regular and ethertype DSA taggers
authorTobias Waldekranz <tobias@waldekranz.com>
Sat, 14 Nov 2020 23:45:57 +0000 (00:45 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Nov 2020 17:16:12 +0000 (09:16 -0800)
commit3e2931578112fd8f7a67731de63cdbfc66d81a0d
treeff9dc8fb85bf0fd71295b37c46c58bff5001a35f
parent36d322ed61b3746491d10a18c6dcae2e6048e28f
net: dsa: tag_dsa: Unify regular and ethertype DSA taggers

Ethertype DSA encodes exactly the same information in the DSA tag as
the non-ethertype variety. So refactor out the common parts and reuse
them for both protocols.

This is ensures tag parsing and generation is always consistent across
all mv88e6xxx chips.

While we are at it, explicitly deal with all possible CPU codes on
receive, making sure to set offload_fwd_mark as appropriate.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/Kconfig
net/dsa/Makefile
net/dsa/tag_dsa.c
net/dsa/tag_edsa.c [deleted file]