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)
commite151aab9b5b3fae96b0fcd6cbe3a7f952d6cb8f8
tree189d7456665506f4840a059f9a6be0b5ef04c34a
parent46c0772d85306f2edec03c8fa40a6efa6af915bc
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