]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: rearrange flood vs unicast receive paths
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Thu, 14 Jul 2016 03:10:00 +0000 (06:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Jul 2016 02:57:37 +0000 (19:57 -0700)
commit4d15cff5e705c028f1f55855465dfc193ae0dec9
tree189d7456665506f4840a059f9a6be0b5ef04c34a
parente979b682b63c1b75a8ebcb0242ccbb6925755bae
net: bridge: rearrange flood vs unicast receive paths

This patch removes one conditional from the unicast path by using the fact
that skb is NULL only when the packet is multicast or is local.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_input.c