Skip to contentSkip to conversation

bridge: Add support for setting BR_ROOT_BLOCK flag.

PATCH In review Vlad Yasevich 2 participants 2 messages Mar 15, 2013 – Mar 17, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bridge: Add support for setting BR_ROOT_BLOCK flag.

Most of the support was already there. The only thing that was missing was the call to set the flag. Add this call.

---
 net/bridge/br_netlink.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
net/bridge/br_netlink.c +1 -0
index 1382842..84c3b7d 100644
@@ -327,6 +327,7 @@ static int br_setport(struct net_bridge_port *p, struct nlattr *tb[])
 	br_set_port_flag(p, tb, IFLA_BRPORT_MODE, BR_HAIRPIN_MODE);
 	br_set_port_flag(p, tb, IFLA_BRPORT_GUARD, BR_BPDU_GUARD);
 	br_set_port_flag(p, tb, IFLA_BRPORT_FAST_LEAVE, BR_MULTICAST_FAST_LEAVE);
+	br_set_port_flag(p, tb, IFLA_BRPORT_PROTECT, BR_ROOT_BLOCK);
 
 	if (tb[IFLA_BRPORT_COST]) {
 		err = br_stp_set_path_cost(p, nla_get_u32(tb[IFLA_BRPORT_COST]));
Signature · 1 line
1.7.7.6
maintainer
#1 lore raw

From: Vlad Yasevich <[email protected]>
Date: Fri, 15 Mar 2013 12:39:12 -0400

Quoted 4 lines

Most of the support was already there. The only thing that was missing was the call to set the flag. Add this call.

This looks like an unintentional omission, so I've applied this to 'net', thanks!