|
|
@@ -0,0 +1,51 @@
|
|
|
+From: Markus Stockhausen <[email protected]>
|
|
|
+Date: Sun, 1 Feb 2026 10:40:52 +0100
|
|
|
+Subject: realtek: net: dsa: add suport for tag rtl-otto
|
|
|
+
|
|
|
+This adds the rtl-otto tag feature for Realtek switches.
|
|
|
+
|
|
|
+Signed-off-by: Markus Stockhausen <[email protected]>
|
|
|
+
|
|
|
+--- a/net/dsa/Makefile
|
|
|
++++ b/net/dsa/Makefile
|
|
|
+@@ -35,6 +35,7 @@ obj-$(CONFIG_NET_DSA_TAG_QCA) += tag_qca
|
|
|
+ obj-$(CONFIG_NET_DSA_TAG_RTL4_A) += tag_rtl4_a.o
|
|
|
+ obj-$(CONFIG_NET_DSA_TAG_RTL8_4) += tag_rtl8_4.o
|
|
|
+ obj-$(CONFIG_NET_DSA_TAG_RZN1_A5PSW) += tag_rzn1_a5psw.o
|
|
|
++obj-$(CONFIG_NET_DSA_TAG_RTL_OTTO) += tag_rtl_otto.o
|
|
|
+ obj-$(CONFIG_NET_DSA_TAG_SJA1105) += tag_sja1105.o
|
|
|
+ obj-$(CONFIG_NET_DSA_TAG_TRAILER) += tag_trailer.o
|
|
|
+ obj-$(CONFIG_NET_DSA_TAG_VSC73XX_8021Q) += tag_vsc73xx_8021q.o
|
|
|
+--- a/net/dsa/Kconfig
|
|
|
++++ b/net/dsa/Kconfig
|
|
|
+@@ -163,6 +163,12 @@ config NET_DSA_TAG_LAN9303
|
|
|
+ Say Y or M if you want to enable support for tagging frames for the
|
|
|
+ SMSC/Microchip LAN9303 family of switches.
|
|
|
+
|
|
|
++config NET_DSA_TAG_RTL_OTTO
|
|
|
++ tristate "Tag driver for Realtek Otto switches (RTL83xx/RTL93xx)"
|
|
|
++ help
|
|
|
++ Say Y or M if you want to enable support for tagging frames for the
|
|
|
++ Realtek Otto family of switches.
|
|
|
++
|
|
|
+ config NET_DSA_TAG_SJA1105
|
|
|
+ tristate "Tag driver for NXP SJA1105 switches"
|
|
|
+ select PACKING
|
|
|
+--- a/include/net/dsa.h
|
|
|
++++ b/include/net/dsa.h
|
|
|
+@@ -55,6 +55,7 @@ struct tc_action;
|
|
|
+ #define DSA_TAG_PROTO_LAN937X_VALUE 27
|
|
|
+ #define DSA_TAG_PROTO_VSC73XX_8021Q_VALUE 28
|
|
|
+ #define DSA_TAG_PROTO_BRCM_LEGACY_FCS_VALUE 29
|
|
|
++#define DSA_TAG_PROTO_RTL_OTTO_VALUE 30
|
|
|
+
|
|
|
+ enum dsa_tag_protocol {
|
|
|
+ DSA_TAG_PROTO_NONE = DSA_TAG_PROTO_NONE_VALUE,
|
|
|
+@@ -87,6 +88,7 @@ enum dsa_tag_protocol {
|
|
|
+ DSA_TAG_PROTO_RZN1_A5PSW = DSA_TAG_PROTO_RZN1_A5PSW_VALUE,
|
|
|
+ DSA_TAG_PROTO_LAN937X = DSA_TAG_PROTO_LAN937X_VALUE,
|
|
|
+ DSA_TAG_PROTO_VSC73XX_8021Q = DSA_TAG_PROTO_VSC73XX_8021Q_VALUE,
|
|
|
++ DSA_TAG_PROTO_RTL_OTTO = DSA_TAG_PROTO_RTL_OTTO_VALUE,
|
|
|
+ };
|
|
|
+
|
|
|
+ struct dsa_switch;
|