]> git.baikalelectronics.ru Git - kernel.git/commit
rtnl: split __rtnl_newlink() into two functions
authorJakub Kicinski <kuba@kernel.org>
Fri, 29 Apr 2022 23:55:07 +0000 (16:55 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 2 May 2022 13:14:20 +0000 (15:14 +0200)
commit78d5aec0cf45e25bc7dff84e9ee9819718773878
tree1e7f6d182164d30551406ed11f72dfe76fd07853
parent02d0a30d5ae2a6578d95ba62b9444395b38d026a
rtnl: split __rtnl_newlink() into two functions

__rtnl_newlink() is 250LoC, but has a few clear sections.
Move the part which creates a new netdev to a separate
function.

For ease of review code will be moved in the next change.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/rtnetlink.c