]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Generalize mlxsw_sp_netdevice_router_port_event()
authorPetr Machata <petrm@mellanox.com>
Thu, 13 Dec 2018 11:54:48 +0000 (11:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 02:41:39 +0000 (18:41 -0800)
commit9735f2d2fe2c0078684c1ed17e53b7640af1c21b
treea49ede6736543c6265ac0732fdf944569a4fd552
parent1caf40dec1e2098d5f0bef3a627f0b08b2f65f9c
mlxsw: spectrum_router: Generalize mlxsw_sp_netdevice_router_port_event()

Prepare mlxsw_sp_netdevice_router_port_event() for handling of
NETDEV_PRE_CHANGEADDR. Split out the part that deals with the actual
changes and call it for the two events currently handled.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c