2022-02-24 00:06:56 +01:00
|
|
|
From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= <fabian@blaese.de>
|
|
|
|
Date: Thu, 24 Feb 2022 00:04:47 +0100
|
|
|
|
Subject: [PATCH] Add hack which fixes forwarding on a stacked bridge
|
|
|
|
configuration using DSA
|
|
|
|
|
|
|
|
---
|
2022-10-22 16:28:18 +02:00
|
|
|
.../999-fix-stacked-bridge-forwarding.patch | 12 ++++++++++++
|
2022-02-24 00:06:56 +01:00
|
|
|
1 file changed, 12 insertions(+)
|
2023-08-03 11:30:15 +02:00
|
|
|
create mode 100644 target/linux/generic/hack-5.15/999-fix-stacked-bridge-forwarding.patch
|
2022-02-24 00:06:56 +01:00
|
|
|
|
2023-08-03 11:30:15 +02:00
|
|
|
diff --git a/target/linux/generic/hack-5.15/999-fix-stacked-bridge-forwarding.patch b/target/linux/generic/hack-5.15/999-fix-stacked-bridge-forwarding.patch
|
2022-02-24 00:06:56 +01:00
|
|
|
new file mode 100644
|
|
|
|
index 0000000000..e1d4cb9cd5
|
|
|
|
--- /dev/null
|
2023-08-03 11:30:15 +02:00
|
|
|
+++ b/target/linux/generic/hack-5.15/999-fix-stacked-bridge-forwarding.patch
|
2022-02-24 00:06:56 +01:00
|
|
|
@@ -0,0 +1,12 @@
|
|
|
|
+--- a/net/bridge/br_input.c
|
|
|
|
++++ b/net/bridge/br_input.c
|
|
|
|
+@@ -52,6 +52,9 @@ static int br_pass_frame_up(struct sk_bu
|
|
|
|
+ return NET_RX_DROP;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
++ /* remove offload flag, so upper bridges do not drop the packet */
|
|
|
|
++ br_switchdev_frame_unmark(skb);
|
|
|
|
++
|
|
|
|
+ indev = skb->dev;
|
|
|
|
+ skb->dev = brdev;
|
|
|
|
+ skb = br_handle_vlan(br, NULL, vg, skb);
|
|
|
|
|