]> 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)
commit3581ef81c6f0bb72684335c6a6cac8809e28973d
tree1e7f6d182164d30551406ed11f72dfe76fd07853
parentdcbae1d951f40cf1b0611413ff86143def5ce354
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