net: introduce dev_net notifier register/unregister variants
authorJiri Pirko <jiri@mellanox.com>
Sat, 25 Jan 2020 11:17:08 +0000 (12:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jan 2020 10:03:44 +0000 (11:03 +0100)
commit93642e14bd50e59b11cf6389ce3fc243e932777a
tree174e4be628985d7de770ea2dcf2dcbdbc254ec24
parent1f637703d8b63f1ba411b4c798e998e3f828b6cb
net: introduce dev_net notifier register/unregister variants

Introduce dev_net variants of netdev notifier register/unregister functions
and allow per-net notifier to follow the netdevice into the namespace it is
moved to.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c