mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
bridge: Do br_pass_frame_up after other ports
At the moment we deliver to the local bridge port via the function br_pass_frame_up before all other ports. There is no requirement for this. For the purpose of IGMP snooping, it would be more convenient if we did the local port last. Therefore this patch rearranges the bridge input processing so that the local bridge port gets to see the packet last (if at all). Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4181b2c8bc
commit
87557c18ac
1 changed files with 3 additions and 3 deletions
|
@ -73,9 +73,6 @@ int br_handle_frame_finish(struct sk_buff *skb)
|
|||
if (skb2 == skb)
|
||||
skb2 = skb_clone(skb, GFP_ATOMIC);
|
||||
|
||||
if (skb2)
|
||||
br_pass_frame_up(br, skb2);
|
||||
|
||||
if (skb) {
|
||||
if (dst)
|
||||
br_forward(dst->dst, skb);
|
||||
|
@ -83,6 +80,9 @@ int br_handle_frame_finish(struct sk_buff *skb)
|
|||
br_flood_forward(br, skb);
|
||||
}
|
||||
|
||||
if (skb2)
|
||||
br_pass_frame_up(br, skb2);
|
||||
|
||||
out:
|
||||
return 0;
|
||||
drop:
|
||||
|
|
Loading…
Reference in a new issue