net: pch_gbe: Clean up pch_gbe_set_multi
authorPaul Burton <paul.burton@mips.com>
Sat, 23 Jun 2018 03:17:53 +0000 (20:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jun 2018 11:52:09 +0000 (20:52 +0900)
commit418e7dab0f83fcef4f3cb1ae5b1c02ee83b8e26c
treea37f6d45a0b6ce2fe57246bfac8759ce2b6ea00a
parent6ab91e47694e03775bbe874fa8f15f84db404c00
net: pch_gbe: Clean up pch_gbe_set_multi

Refactor pch_gbe_set_multi in order to avoid unnecessary indentation &
make it clearer what the code is doing.

The one behavioral change from this patch is that we'll no longer
configure the MAC address registers for multicast addresses when the
IFF_PROMISC or IFF_ALLMULTI flags are set. In these cases, just as when
we want to monitor more multicast addresses than we have MAC address
registers, we disable multicast filtering so the MAC address registers
are unused.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c