linux/drivers/infiniband/ulp/ipoib
Erez Shitrit 515ed4f3aa IB/IPoIB: Separate control and data related initializations
This patch prepares init and teardown flows so we can call them
through ipoib_options function pointers.

It arranges that area of code as the following:
 * All operations which deal with the resource allocation/deletion
   are performed in one place.
 * All operations that are control oriented, meaning that they are not
   connected to a specific hardware, are performed in a separate place.

The operations for allocation of hardware resources are now in the
function ipoib_dev_init_default, and the deletion of all the resources
are in ipoib_dev_uninit_default

The only exception is the creation of the PD object,
which is used both for resource allocation (create QP etc.)
and for control flows like creating AH.

It also does:
 * Move creation of rx_ring and tx_ring to be in the resources
   allocation area.
 * Move the function ipoib_ib_dev_open that does the open device
   to the control area instead of the dev_init which creates resources.

Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-04-20 15:19:42 -04:00
..
ipoib_cm.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
ipoib_ethtool.c IB/IPoIB: Switch from dma_device to dev.parent 2017-01-24 12:26:17 -05:00
ipoib_fs.c IB/IPoIB: ibX: failed to create mcg debug file 2017-04-05 13:47:24 -04:00
ipoib_ib.c IB/IPoIB: Separate control and data related initializations 2017-04-20 15:19:42 -04:00
ipoib_main.c IB/IPoIB: Separate control and data related initializations 2017-04-20 15:19:42 -04:00
ipoib_multicast.c IB/ipoib: Remove the unnecessary error check 2017-01-24 16:22:24 -05:00
ipoib_netlink.c infiniband: make sure the src net is infiniband when create new link 2014-01-03 20:38:56 -05:00
ipoib_verbs.c IB/IPoIB: Separate control and data related initializations 2017-04-20 15:19:42 -04:00
ipoib_vlan.c IB/IPoIB: ibX: failed to create mcg debug file 2017-04-05 13:47:24 -04:00
ipoib.h IB/IPoIB: Separate control and data related initializations 2017-04-20 15:19:42 -04:00
Kconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile IB/ipoib: Add rtnl_link_ops support 2012-09-20 16:49:17 -04:00