Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361107
b: refs/heads/master
c: fbca58a
h: refs/heads/master
i:
  361105: 465639b
  361103: 1b52b1e
v: v3
  • Loading branch information
Cong Wang authored and David S. Miller committed Mar 7, 2013
1 parent a400264 commit c67fec7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 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: c10cb5fc0fc9fa605e01f715118bde5ba5a98616
refs/heads/master: fbca58a2242ef2b84049365786d501ee512aefcf
2 changes: 1 addition & 1 deletion trunk/net/bridge/br_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ netdev_tx_t br_dev_xmit(struct sk_buff *skb, struct net_device *dev)
goto out;
}

mdst = br_mdb_get(br, skb);
mdst = br_mdb_get(br, skb, vid);
if (mdst || BR_INPUT_SKB_CB_MROUTERS_ONLY(skb))
br_multicast_deliver(mdst, skb);
else
Expand Down
2 changes: 1 addition & 1 deletion trunk/net/bridge/br_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ int br_handle_frame_finish(struct sk_buff *skb)
if (is_broadcast_ether_addr(dest))
skb2 = skb;
else if (is_multicast_ether_addr(dest)) {
mdst = br_mdb_get(br, skb);
mdst = br_mdb_get(br, skb, vid);
if (mdst || BR_INPUT_SKB_CB_MROUTERS_ONLY(skb)) {
if ((mdst && mdst->mglist) ||
br_multicast_is_router(br))
Expand Down
3 changes: 2 additions & 1 deletion trunk/net/bridge/br_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static struct net_bridge_mdb_entry *br_mdb_ip6_get(
#endif

struct net_bridge_mdb_entry *br_mdb_get(struct net_bridge *br,
struct sk_buff *skb)
struct sk_buff *skb, u16 vid)
{
struct net_bridge_mdb_htable *mdb = rcu_dereference(br->mdb);
struct br_ip ip;
Expand All @@ -144,6 +144,7 @@ struct net_bridge_mdb_entry *br_mdb_get(struct net_bridge *br,
return NULL;

ip.proto = skb->protocol;
ip.vid = vid;

switch (skb->protocol) {
case htons(ETH_P_IP):
Expand Down
4 changes: 2 additions & 2 deletions trunk/net/bridge/br_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ extern int br_multicast_rcv(struct net_bridge *br,
struct net_bridge_port *port,
struct sk_buff *skb);
extern struct net_bridge_mdb_entry *br_mdb_get(struct net_bridge *br,
struct sk_buff *skb);
struct sk_buff *skb, u16 vid);
extern void br_multicast_add_port(struct net_bridge_port *port);
extern void br_multicast_del_port(struct net_bridge_port *port);
extern void br_multicast_enable_port(struct net_bridge_port *port);
Expand Down Expand Up @@ -504,7 +504,7 @@ static inline int br_multicast_rcv(struct net_bridge *br,
}

static inline struct net_bridge_mdb_entry *br_mdb_get(struct net_bridge *br,
struct sk_buff *skb)
struct sk_buff *skb, u16 vid)
{
return NULL;
}
Expand Down

0 comments on commit c67fec7

Please sign in to comment.