]> git.baikalelectronics.ru Git - kernel.git/commit
net: pch_gbe: Inline pch_gbe_mac_mc_addr_list_update
authorPaul Burton <paul.burton@mips.com>
Sat, 23 Jun 2018 03:17:52 +0000 (20:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Jun 2018 11:52:09 +0000 (20:52 +0900)
commited43ec2d5c30cb1bf0b2409e741e41509dec445a
treeb3f6b5de516c8eff7795ab10b2e79fc7167711f4
parentc00d18a71f99e06e3312a85ab63953fc45c14d25
net: pch_gbe: Inline pch_gbe_mac_mc_addr_list_update

The pch_gbe driver sets up multicast address filters using a convoluted
mechanism by which pch_gbe_set_multi allocates an array to hold
multicast addresses, copies desired addresses into that array, calls a
pch_gbe_mac_mc_addr_list_update function which copies addresses out of
that array into MAC registers, then frees the array.

This patch simplifies this somewhat by inlining
pch_gbe_mac_mc_addr_list_update into pch_gbe_set_multi, and removing the
requirement for the MAC addresses to stored consecutively in a single
array.

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