ntb_unregister_device problem
I noticed that when I call ntb_unregister_device from my HW driver for NTB, the ntb_transport emits this message:
ntb_transport 0000:0b:00.0: ntb_netdev0 still attached to bus, removing
The network interface disappears however something is left behind. On subsequent call to ntb_register_device I get:
debugfs: Directory '0000:0b:00.0' with parent 'ntb_transport' already present!
No network device gets created. To fix I have to reload the ntb_transport and ntb_netdev modules.
Am I missing something in HW device unregistration sequence?
Thank you.