diff options
author | Tobias Waldekranz <tobias@waldekranz.com> | 2020-11-15 00:45:57 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2020-11-17 09:16:12 -0800 |
commit | 469ee5fe73d9b45eb4ebcdafa5f41fa654e483b1 (patch) | |
tree | ff9dc8fb85bf0fd71295b37c46c58bff5001a35f /net/dsa/Makefile | |
parent | e468d141b993ec9e58bdf515ed32fd9eb4fccdd0 (diff) | |
download | linux-stable-469ee5fe73d9b45eb4ebcdafa5f41fa654e483b1.tar.gz linux-stable-469ee5fe73d9b45eb4ebcdafa5f41fa654e483b1.tar.bz2 linux-stable-469ee5fe73d9b45eb4ebcdafa5f41fa654e483b1.zip |
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>
Diffstat (limited to 'net/dsa/Makefile')
-rw-r--r-- | net/dsa/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/dsa/Makefile b/net/dsa/Makefile index e25d5457964a..0fb2b75a7ae3 100644 --- a/net/dsa/Makefile +++ b/net/dsa/Makefile @@ -7,8 +7,7 @@ dsa_core-y += dsa.o dsa2.o master.o port.o slave.o switch.o obj-$(CONFIG_NET_DSA_TAG_8021Q) += tag_8021q.o obj-$(CONFIG_NET_DSA_TAG_AR9331) += tag_ar9331.o obj-$(CONFIG_NET_DSA_TAG_BRCM_COMMON) += tag_brcm.o -obj-$(CONFIG_NET_DSA_TAG_DSA) += tag_dsa.o -obj-$(CONFIG_NET_DSA_TAG_EDSA) += tag_edsa.o +obj-$(CONFIG_NET_DSA_TAG_DSA_COMMON) += tag_dsa.o obj-$(CONFIG_NET_DSA_TAG_GSWIP) += tag_gswip.o obj-$(CONFIG_NET_DSA_TAG_HELLCREEK) += tag_hellcreek.o obj-$(CONFIG_NET_DSA_TAG_KSZ) += tag_ksz.o |