diff options
author | Joe Eykholt <jre@nuovasystems.com> | 2008-07-02 21:22:02 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-08-07 04:00:01 -0400 |
commit | f982307f22db96201e41540295f24e8dcc10c78f (patch) | |
tree | cb7c3f07691ffd9ace90dc4c8d1672009e0cd6cd | |
parent | 0d7a3681232f545c6a59f77e60f7667673ef0e93 (diff) |
net/core: Allow receive on active slaves.
If a packet_type specifies an active slave to bonding and not just any
interface, allow it to receive frames that came in on that interface.
Signed-off-by: Joe Eykholt <jre@nuovasystems.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
-rw-r--r-- | net/core/dev.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index dab97c7cf275..600bb23c4c2e 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
@@ -2210,7 +2210,8 @@ int netif_receive_skb(struct sk_buff *skb) | |||
2210 | #endif | 2210 | #endif |
2211 | 2211 | ||
2212 | list_for_each_entry_rcu(ptype, &ptype_all, list) { | 2212 | list_for_each_entry_rcu(ptype, &ptype_all, list) { |
2213 | if (ptype->dev == null_or_orig || ptype->dev == skb->dev) { | 2213 | if (ptype->dev == null_or_orig || ptype->dev == skb->dev || |
2214 | ptype->dev == orig_dev) { | ||
2214 | if (pt_prev) | 2215 | if (pt_prev) |
2215 | ret = deliver_skb(skb, pt_prev, orig_dev); | 2216 | ret = deliver_skb(skb, pt_prev, orig_dev); |
2216 | pt_prev = ptype; | 2217 | pt_prev = ptype; |
@@ -2235,7 +2236,8 @@ ncls: | |||
2235 | list_for_each_entry_rcu(ptype, | 2236 | list_for_each_entry_rcu(ptype, |
2236 | &ptype_base[ntohs(type) & PTYPE_HASH_MASK], list) { | 2237 | &ptype_base[ntohs(type) & PTYPE_HASH_MASK], list) { |
2237 | if (ptype->type == type && | 2238 | if (ptype->type == type && |
2238 | (ptype->dev == null_or_orig || ptype->dev == skb->dev)) { | 2239 | (ptype->dev == null_or_orig || ptype->dev == skb->dev || |
2240 | ptype->dev == orig_dev)) { | ||
2239 | if (pt_prev) | 2241 | if (pt_prev) |
2240 | ret = deliver_skb(skb, pt_prev, orig_dev); | 2242 | ret = deliver_skb(skb, pt_prev, orig_dev); |
2241 | pt_prev = ptype; | 2243 | pt_prev = ptype; |