Files
linux/drivers/infiniband/hw/i40iw
Shiraz, Saleem ee4e4040ab RDMA/i40iw: Associate ibdev to netdev before IB device registration
i40iw IB device registration fails with ENODEV.

ib_register_device
 setup_device/setup_port_data
  i40iw_port_immutable
   ib_query_port
     iw_query_port
      ib_device_get_netdev(ENODEV)

ib_device_get_netdev() does not have a netdev associated
with the ibdev and thus fails.
Use ib_device_set_netdev() to associate netdev to ibdev
in i40iw before IB device registration.

Fixes: 4929116bdf ("RDMA/core: Add common iWARP query port")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Shiraz, Saleem <[email protected]>
Reviewed-by: Kamal Heib <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
2019-10-04 14:29:14 -03:00
..
2016-02-29 17:10:53 -05:00
2016-02-29 17:10:53 -05:00
2017-08-18 14:01:08 -04:00
2016-02-29 17:10:53 -05:00
2018-01-16 20:38:18 -07:00
2016-03-16 13:50:53 -04:00
2017-08-16 11:27:44 -04:00