diff options
author | Vlad Yasevich <vyasevic@redhat.com> | 2013-03-15 06:39:12 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-17 12:41:29 -0400 |
commit | 3d84fa98aca7f05f7010022bc45acb1b50326332 (patch) | |
tree | a30d0863f76e2ca259011bf1eccfc84f3e835ef8 /net/bridge/br_netlink.c | |
parent | 722c6f585088a2c392b4c5d01b87a584bb8fb73f (diff) | |
download | linux-3d84fa98aca7f05f7010022bc45acb1b50326332.tar.bz2 |
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.
Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_netlink.c')
-rw-r--r-- | net/bridge/br_netlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index db12a0fcfe50..299fc5f40a26 100644 --- 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])); |