mlxsw: spectrum: Use per-netns netdevice notifier registration
authorJiri Pirko <jiri@mellanox.com>
Mon, 30 Sep 2019 08:15:11 +0000 (10:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2019 15:48:44 +0000 (11:48 -0400)
commitf1cdaa077ccacb0d78a2da5c9df9b4aa7b7a0927
tree801eb4b5aaef8cf0a3d39607794858e36fa954ce
parenta30c7b429f2dd980202c912fcb76442364937b4d
mlxsw: spectrum: Use per-netns netdevice notifier registration

The mlxsw_sp instance is not interested in events happening in other
network namespaces. So use "_net" variants for netdevice notifier
registration/unregistration and get only events which are happening in
the net the instance is in.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c