Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194538
b: refs/heads/master
c: dcdca2c
h: refs/heads/master
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Apr 27, 2010
1 parent 3f8135a commit e189b5a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7180f7751d5a1b6f1ef40285b5e928970cdd5306
refs/heads/master: dcdca2c49bb6328bbc7cd8d73434c308b5dd0df2
30 changes: 15 additions & 15 deletions trunk/net/bridge/br_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -1042,21 +1042,21 @@ static int br_ip6_multicast_mld2_report(struct net_bridge *br,
static void br_multicast_add_router(struct net_bridge *br,
struct net_bridge_port *port)
{
struct hlist_node *p;
struct hlist_node **h;

for (h = &br->router_list.first;
(p = *h) &&
(unsigned long)container_of(p, struct net_bridge_port, rlist) >
(unsigned long)port;
h = &p->next)
;

port->rlist.pprev = h;
port->rlist.next = p;
rcu_assign_pointer(*h, &port->rlist);
if (p)
p->pprev = &port->rlist.next;
struct net_bridge_port *p;
struct hlist_node *n, *last = NULL;

hlist_for_each_entry(p, n, &br->router_list, rlist) {
if ((unsigned long) port >= (unsigned long) p) {
hlist_add_before_rcu(n, &port->rlist);
return;
}
last = n;
}

if (last)
hlist_add_after_rcu(last, &port->rlist);
else
hlist_add_head_rcu(&port->rlist, &br->router_list);
}

static void br_multicast_mark_router(struct net_bridge *br,
Expand Down

0 comments on commit e189b5a

Please sign in to comment.