linux_dsm_epyc7002/drivers/infiniband/hw/mlx5
Niranjana Vishwanathapura 8e95960199 IB/core, opa_vnic, hfi1, mlx5: Properly free rdma_netdev
IPOIB is calling free_rdma_netdev even though alloc_rdma_netdev has
returned -EOPNOTSUPP.
Move free_rdma_netdev from ib_device structure to rdma_netdev structure
thus ensuring proper cleanup function is called for the rdma net device.

Fix the following trace:

ib0: Failed to modify QP to ERROR state
BUG: unable to handle kernel paging request at 0000000000001d20
IP: hfi1_vnic_free_rn+0x26/0xb0 [hfi1]
Call Trace:
 ipoib_remove_one+0xbe/0x160 [ib_ipoib]
 ib_unregister_device+0xd0/0x170 [ib_core]
 rvt_unregister_device+0x29/0x90 [rdmavt]
 hfi1_unregister_ib_device+0x1a/0x100 [hfi1]
 remove_one+0x4b/0x220 [hfi1]
 pci_device_remove+0x39/0xc0
 device_release_driver_internal+0x141/0x200
 driver_detach+0x3f/0x80
 bus_remove_driver+0x55/0xd0
 driver_unregister+0x2c/0x50
 pci_unregister_driver+0x2a/0xa0
 hfi1_mod_cleanup+0x10/0xf65 [hfi1]
 SyS_delete_module+0x171/0x250
 do_syscall_64+0x67/0x150
 entry_SYSCALL64_slow_path+0x25/0x25

Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2017-07-05 17:11:00 -04:00
..
ah.c IB/core: Define 'ib' and 'roce' rdma_ah_attr types 2017-05-01 14:32:43 -04:00
cmd.c IB/mlx5: Support congestion related counters 2017-04-21 12:29:31 -04:00
cmd.h IB/mlx5: Support congestion related counters 2017-04-21 12:29:31 -04:00
cq.c IB/mlx5: Set correct SL in completion for RoCE 2017-04-21 12:29:31 -04:00
doorbell.c IB/mlx5: Fix Mellanox copyright note 2015-04-02 16:33:42 -04:00
gsi.c IB/mlx5: Fix iteration overrun in GSI qps 2016-08-02 14:32:51 -04:00
ib_virt.c IB/mlx5: Implement callbacks for manipulating VFs 2016-03-21 17:13:14 -04:00
Kconfig net/mlx5: Extend mlx5_core to support ConnectX-4 Ethernet functionality 2015-05-30 18:24:51 -07:00
mad.c IB/mlx5: Add port_xmit_wait to counter registers read 2017-05-01 15:04:23 -04:00
main.c IB/core, opa_vnic, hfi1, mlx5: Properly free rdma_netdev 2017-07-05 17:11:00 -04:00
Makefile IB/mlx5: Add null_mkey access 2017-02-14 11:41:18 -05:00
mem.c IB/mlx5: Add contiguous ODP support 2017-04-25 15:40:28 -04:00
mlx5_ib.h RDMA/mlx5: set UMR wqe fence according to HCA cap 2017-06-01 17:19:57 -04:00
mr.c mlx5: Fix mlx5_ib_map_mr_sg mr length 2017-05-01 14:56:07 -04:00
odp.c IB/mlx5: Add ODP support to MW 2017-04-25 15:40:28 -04:00
qp.c RDMA/mlx5: set UMR wqe fence according to HCA cap 2017-06-01 17:19:57 -04:00
srq.c IB/mlx5: Fix out-of-bound access 2017-02-14 10:14:25 -05:00