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)
commit63105e83987a08f73accfba78602a073bf219b69
tree1e7f6d182164d30551406ed11f72dfe76fd07853
parentc92bf26ccebc8501863b38c4a4f65b8fef28ce5e
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