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)
commit58e2e13f41d003701d256533a99030e9a7be078e
treea37f6d45a0b6ce2fe57246bfac8759ce2b6ea00a
parented43ec2d5c30cb1bf0b2409e741e41509dec445a
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