]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e9d016a4c3bc7d2f741e87749b59022caa4beaa
tree801eb4b5aaef8cf0a3d39607794858e36fa954ce
parentdc97ed7827a5452a0f909dc8ae3234459967e547
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