diff options
Diffstat (limited to 'net/bridge')
-rw-r--r-- | net/bridge/br_mdb.c | 4 | ||||
-rw-r--r-- | net/bridge/br_netlink.c | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/net/bridge/br_mdb.c b/net/bridge/br_mdb.c index ee79f3f20383..19942e38fd2d 100644 --- a/net/bridge/br_mdb.c +++ b/net/bridge/br_mdb.c | |||
@@ -382,7 +382,7 @@ static int __br_mdb_add(struct net *net, struct net_bridge *br, | |||
382 | return ret; | 382 | return ret; |
383 | } | 383 | } |
384 | 384 | ||
385 | static int br_mdb_add(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | 385 | static int br_mdb_add(struct sk_buff *skb, struct nlmsghdr *nlh) |
386 | { | 386 | { |
387 | struct net *net = sock_net(skb->sk); | 387 | struct net *net = sock_net(skb->sk); |
388 | struct br_mdb_entry *entry; | 388 | struct br_mdb_entry *entry; |
@@ -458,7 +458,7 @@ unlock: | |||
458 | return err; | 458 | return err; |
459 | } | 459 | } |
460 | 460 | ||
461 | static int br_mdb_del(struct sk_buff *skb, struct nlmsghdr *nlh, void *arg) | 461 | static int br_mdb_del(struct sk_buff *skb, struct nlmsghdr *nlh) |
462 | { | 462 | { |
463 | struct net_device *dev; | 463 | struct net_device *dev; |
464 | struct br_mdb_entry *entry; | 464 | struct br_mdb_entry *entry; |
diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c index 138284219c6d..b96e02e31bad 100644 --- a/net/bridge/br_netlink.c +++ b/net/bridge/br_netlink.c | |||
@@ -327,6 +327,7 @@ static int br_setport(struct net_bridge_port *p, struct nlattr *tb[]) | |||
327 | br_set_port_flag(p, tb, IFLA_BRPORT_MODE, BR_HAIRPIN_MODE); | 327 | br_set_port_flag(p, tb, IFLA_BRPORT_MODE, BR_HAIRPIN_MODE); |
328 | br_set_port_flag(p, tb, IFLA_BRPORT_GUARD, BR_BPDU_GUARD); | 328 | br_set_port_flag(p, tb, IFLA_BRPORT_GUARD, BR_BPDU_GUARD); |
329 | br_set_port_flag(p, tb, IFLA_BRPORT_FAST_LEAVE, BR_MULTICAST_FAST_LEAVE); | 329 | br_set_port_flag(p, tb, IFLA_BRPORT_FAST_LEAVE, BR_MULTICAST_FAST_LEAVE); |
330 | br_set_port_flag(p, tb, IFLA_BRPORT_PROTECT, BR_ROOT_BLOCK); | ||
330 | 331 | ||
331 | if (tb[IFLA_BRPORT_COST]) { | 332 | if (tb[IFLA_BRPORT_COST]) { |
332 | err = br_stp_set_path_cost(p, nla_get_u32(tb[IFLA_BRPORT_COST])); | 333 | err = br_stp_set_path_cost(p, nla_get_u32(tb[IFLA_BRPORT_COST])); |
@@ -356,7 +357,7 @@ int br_setlink(struct net_device *dev, struct nlmsghdr *nlh) | |||
356 | struct nlattr *afspec; | 357 | struct nlattr *afspec; |
357 | struct net_bridge_port *p; | 358 | struct net_bridge_port *p; |
358 | struct nlattr *tb[IFLA_BRPORT_MAX + 1]; | 359 | struct nlattr *tb[IFLA_BRPORT_MAX + 1]; |
359 | int err; | 360 | int err = 0; |
360 | 361 | ||
361 | ifm = nlmsg_data(nlh); | 362 | ifm = nlmsg_data(nlh); |
362 | 363 | ||
@@ -369,7 +370,7 @@ int br_setlink(struct net_device *dev, struct nlmsghdr *nlh) | |||
369 | /* We want to accept dev as bridge itself if the AF_SPEC | 370 | /* We want to accept dev as bridge itself if the AF_SPEC |
370 | * is set to see if someone is setting vlan info on the brigde | 371 | * is set to see if someone is setting vlan info on the brigde |
371 | */ | 372 | */ |
372 | if (!p && ((dev->priv_flags & IFF_EBRIDGE) && !afspec)) | 373 | if (!p && !afspec) |
373 | return -EINVAL; | 374 | return -EINVAL; |
374 | 375 | ||
375 | if (p && protinfo) { | 376 | if (p && protinfo) { |