]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1c4c89c152395907bb19ed6aa0f070db88afeba
treeff8caf510ae4cb0e0a7df1a64dbd1fa82894856b
parent58a1ac84445c23e04202561d6c781c069f8a8d0f
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