projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
722c6f5
)
bridge: Add support for setting BR_ROOT_BLOCK flag.
author
Vlad Yasevich
<
[email protected]
>
Fri, 15 Mar 2013 06:39:12 +0000
(06:39 +0000)
committer
David S. Miller
<
[email protected]
>
Sun, 17 Mar 2013 16:41:29 +0000
(12:41 -0400)
Most of the support was already there. The only thing that was missing
was the call to set the flag. Add this call.
Signed-off-by: Vlad Yasevich <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/bridge/br_netlink.c
patch
|
blob
|
history
diff --git
a/net/bridge/br_netlink.c
b/net/bridge/br_netlink.c
index db12a0fcfe50246e274c235fd353778a9671b99f..299fc5f40a26c12ef39786d8bc3885c0c96ca7be 100644
(file)
--- a/
net/bridge/br_netlink.c
+++ b/
net/bridge/br_netlink.c
@@
-330,6
+330,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]));