]> git.baikalelectronics.ru Git - kernel.git/commit
bridge: Avoid unnecessary clone on forward path
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 27 Feb 2010 19:41:41 +0000 (19:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 28 Feb 2010 08:48:43 +0000 (00:48 -0800)
commitf449608154ebb29c7ffc5c893e6d9e040216b52c
tree940c62309437ca5fa087275bc64b4ffd677c79c3
parent8e4cdb5916ffc3aa75cdbd879f5f48329619f0b2
bridge: Avoid unnecessary clone on forward path

When the packet is delivered to the local bridge device we may
end up cloning it unnecessarily if no bridge port can receive
the packet in br_flood.

This patch avoids this by moving the skb_clone into br_flood.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c
net/bridge/br_input.c
net/bridge/br_private.h