diff options
Diffstat (limited to 'target/linux/generic/patches-4.4/642-bridge_port_isolate.patch')
-rw-r--r-- | target/linux/generic/patches-4.4/642-bridge_port_isolate.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/generic/patches-4.4/642-bridge_port_isolate.patch b/target/linux/generic/patches-4.4/642-bridge_port_isolate.patch index 6656bbe630..3ece047317 100644 --- a/target/linux/generic/patches-4.4/642-bridge_port_isolate.patch +++ b/target/linux/generic/patches-4.4/642-bridge_port_isolate.patch @@ -11,8 +11,8 @@ Isolating individual bridge ports #define BR_PROXYARP_WIFI BIT(10) +#define BR_ISOLATE_MODE BIT(11) - /* values as per ieee8021QBridgeFdbAgingTime */ - #define BR_MIN_AGEING_TIME (10 * HZ) + #define BR_DEFAULT_AGEING_TIME (300 * HZ) + --- a/net/bridge/br_sysfs_if.c +++ b/net/bridge/br_sysfs_if.c @@ -173,6 +173,22 @@ BRPORT_ATTR_FLAG(unicast_flood, BR_FLOOD @@ -24,7 +24,7 @@ Isolating individual bridge ports + int isolate_mode = (p->flags & BR_ISOLATE_MODE) ? 1 : 0; + return sprintf(buf, "%d\n", isolate_mode); +} -+static ssize_t store_isolate_mode(struct net_bridge_port *p, unsigned long v) ++static int store_isolate_mode(struct net_bridge_port *p, unsigned long v) +{ + if (v) + p->flags |= BR_ISOLATE_MODE; |