net: bridge: update multicast stats from maybe_deliver()
authorPablo Neira Ayuso <pablo@netfilter.org>
Thu, 4 Apr 2019 11:56:38 +0000 (13:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Apr 2019 17:49:27 +0000 (10:49 -0700)
commit847d44efad07c4e4e37eddd8cdfea3bc9a5df51b
tree1d2fed14bedd935bacec424ed54a462c58e8d405
parent942f146a63cecaa6d7fb1e8d255efab217126c50
net: bridge: update multicast stats from maybe_deliver()

Simplify this code by updating bridge multicast stats from
maybe_deliver().

Note that commit 6db6f0eae605 ("bridge: multicast to unicast"), in case
the port flag BR_MULTICAST_TO_UNICAST is set, never updates the previous
port pointer, therefore it is always going to be different from the
existing port in this deduplicated list iteration.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c