net: push loops and nb calls into helper functions
authorJiri Pirko <jiri@mellanox.com>
Mon, 30 Sep 2019 08:15:09 +0000 (10:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Oct 2019 15:48:44 +0000 (11:48 -0400)
commitafa0df5998131153ec3036f41e76ece33bf1334f
treeff8caf510ae4cb0e0a7df1a64dbd1fa82894856b
parentc01ebd6c46980654220f6d2b660308a074ee29df
net: push loops and nb calls into helper functions

Push iterations over net namespaces and netdevices from
register_netdevice_notifier() and unregister_netdevice_notifier()
into helper functions. Along with that introduce continue_reverse macros
to make the code a bit nicer allowing to get rid of "last" marks.

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