]> 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)
commitfef0e657ce5bcfcbf5507ca04e66d940e1bfe780
tree189d7456665506f4840a059f9a6be0b5ef04c34a
parent0d3d1fb70dee37180125e965a6dd3a484e84c286
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