On 1/18/22 10:13 PM, Jason Gunthorpe wrote:
On Tue, Jan 18, 2022 at 09:03:47PM +0800, Cheng Xu wrote:Before calling ib_register_device(), the driver must call ib_device_set_netdev(), otherwise ib_register_device() will failed due to NULL netdev in ib_device structure, the call stack is:You'll need to fix some core stuff to allow an ib_device to defer attaching the netdev, nothing does that today. Jason
Sure, I will go deep into the core code, and try to fix this. Thanks, Cheng Xu