diff options
author | Petr Machata | 2018-12-13 12:54:48 +0100 |
---|---|---|
committer | David S. Miller | 2018-12-14 03:41:39 +0100 |
commit | 9735f2d2fe2c0078684c1ed17e53b7640af1c21b (patch) | |
tree | a49ede6736543c6265ac0732fdf944569a4fd552 /drivers/net/ethernet/mellanox/mlxsw/spectrum.h | |
parent | net: bonding: Issue NETDEV_PRE_CHANGEADDR (diff) | |
download | kernel-qcow2-linux-9735f2d2fe2c0078684c1ed17e53b7640af1c21b.tar.gz kernel-qcow2-linux-9735f2d2fe2c0078684c1ed17e53b7640af1c21b.tar.xz kernel-qcow2-linux-9735f2d2fe2c0078684c1ed17e53b7640af1c21b.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h index 41a5de4a0965..373d648b0976 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum.h +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum.h @@ -454,7 +454,8 @@ union mlxsw_sp_l3addr { int mlxsw_sp_router_init(struct mlxsw_sp *mlxsw_sp); void mlxsw_sp_router_fini(struct mlxsw_sp *mlxsw_sp); -int mlxsw_sp_netdevice_router_port_event(struct net_device *dev); +int mlxsw_sp_netdevice_router_port_event(struct net_device *dev, + unsigned long event, void *ptr); void mlxsw_sp_rif_macvlan_del(struct mlxsw_sp *mlxsw_sp, const struct net_device *macvlan_dev); int mlxsw_sp_inetaddr_event(struct notifier_block *unused, |