From: Daniel Danzberger Date: Wed, 31 Jan 2018 13:46:08 +0000 (+0100) Subject: kernel: fix forwarding locally generated packages in bridge isolation patch X-Git-Tag: v18.06.0-rc1~1086 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=653af8ffd3a743048e17c01261cee987935fe9a3;p=openwrt%2Fstaging%2Fxback.git kernel: fix forwarding locally generated packages in bridge isolation patch Locally generated packets weren't forwarded to the isolated interfaces in a bridge. Isolation should only prevent the flooding of incomming packets to other interfaces in the bridge. Signed-off-by: Daniel Danzberger Signed-off-by: Felix Fietkau --- diff --git a/target/linux/generic/hack-4.14/641-bridge_port_isolate.patch b/target/linux/generic/hack-4.14/641-bridge_port_isolate.patch index ab9f476577..538dbd16b0 100644 --- a/target/linux/generic/hack-4.14/641-bridge_port_isolate.patch +++ b/target/linux/generic/hack-4.14/641-bridge_port_isolate.patch @@ -29,7 +29,7 @@ Signed-off-by: Felix Fietkau void br_forward(const struct net_bridge_port *to, struct sk_buff *skb, bool local_rcv, bool local_orig) { -+ if (to->flags & BR_ISOLATE_MODE) ++ if (to->flags & BR_ISOLATE_MODE && !local_orig) + to = NULL; + if (to && should_deliver(to, skb)) { diff --git a/target/linux/generic/hack-4.9/641-bridge_port_isolate.patch b/target/linux/generic/hack-4.9/641-bridge_port_isolate.patch index 56259329d2..0d0b2c73ff 100644 --- a/target/linux/generic/hack-4.9/641-bridge_port_isolate.patch +++ b/target/linux/generic/hack-4.9/641-bridge_port_isolate.patch @@ -29,7 +29,7 @@ Signed-off-by: Felix Fietkau void br_forward(const struct net_bridge_port *to, struct sk_buff *skb, bool local_rcv, bool local_orig) { -+ if (to->flags & BR_ISOLATE_MODE) ++ if (to->flags & BR_ISOLATE_MODE && !local_orig) + to = NULL; + if (to && should_deliver(to, skb)) {