linux_dsm_epyc7002/drivers/infiniband/ulp/ipoib
Jason Gunthorpe 9f49a5b5c2 RDMA/netdev: Use priv_destructor for netdev cleanup
Now that the unregister_netdev flow for IPoIB no longer relies on external
code we can now introduce the use of priv_destructor and
needs_free_netdev.

The rdma_netdev flow is switched to use the netdev common priv_destructor
instead of the special free_rdma_netdev and the IPOIB ULP adjusted:
 - priv_destructor needs to switch to point to the ULP's destructor
   which will then call the rdma_ndev's in the right order
 - We need to be careful around the error unwind of register_netdev
   as it sometimes calls priv_destructor on failure
 - ULPs need to use ndo_init/uninit to ensure proper ordering
   of failures around register_netdev

Switching to priv_destructor is a necessary pre-requisite to using
the rtnl new_link mechanism.

The VNIC user for rdma_netdev should also be revised, but that is left for
another patch.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Denis Drozdov <denisd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
2018-08-02 20:27:43 -06:00
..
ipoib_cm.c IB/ipoib: Get rid of IPOIB_FLAG_GOING_DOWN 2018-08-02 20:19:41 -06:00
ipoib_ethtool.c RDMA: Fix return code check in rdma_set_cq_moderation 2018-07-31 17:03:46 -06:00
ipoib_fs.c RDMA/ipoib: Fix use of sizeof() 2018-07-09 12:02:42 -06:00
ipoib_ib.c IB/IPoIB: Simplify ib_post_(send|recv|srq_recv)() calls 2018-07-24 16:06:36 -06:00
ipoib_main.c RDMA/netdev: Use priv_destructor for netdev cleanup 2018-08-02 20:27:43 -06:00
ipoib_multicast.c IB/IPoIB: Set ah valid flag in multicast send flow 2018-08-01 15:23:03 -06:00
ipoib_netlink.c IB/ipoib: Move init code to ndo_init 2018-08-02 20:27:43 -06:00
ipoib_verbs.c RDMA/ipoib: Fix return code from ipoib_cm_dev_init 2018-07-09 15:19:08 -06:00
ipoib_vlan.c RDMA/netdev: Use priv_destructor for netdev cleanup 2018-08-02 20:27:43 -06:00
ipoib.h RDMA/netdev: Use priv_destructor for netdev cleanup 2018-08-02 20:27:43 -06:00
Kconfig kconfig: rename CONFIG_EMBEDDED to CONFIG_EXPERT 2011-01-20 17:02:05 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00