diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-29 11:34:55 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-08-03 05:27:43 +0300 |
commit | eaeb398425089cb3c8edc81a406109db94b2705c (patch) | |
tree | c4fd8b3b2af8574264f5b7549bcbd072c237bda2 /include/linux/time32.h | |
parent | 7cbee87c17965ede0eba2e7ba41d0a38ebd2249c (diff) | |
download | linux-eaeb398425089cb3c8edc81a406109db94b2705c.tar.xz |
IB/ipoib: Move init code to ndo_init
Now that we have a proper ndo_uninit, move code that naturally pairs
with the ndo_uninit into ndo_init. This allows the netdev core to natually
handle ordering.
This fixes the situation where register_netdev can fail before calling
ndo_init, in which case it wouldn't call ndo_uninit either.
Also move a bunch of duplicated init code that is shared between child
and parent for clarity. Now the child and parent register functions look
very similar.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'include/linux/time32.h')
0 files changed, 0 insertions, 0 deletions