From: sundeep subbaraya <[email protected]> Date: Thu, 23 Jul 2020 20:29:03 +0530
> Hi David, > > On Wed, Jul 22, 2020 at 7:34 PM sundeep subbaraya > <[email protected]> wrote: >> >> Hi David, >> >> On Wed, Jul 22, 2020 at 4:47 AM David Miller <[email protected]> wrote: >> > >> > From: [email protected] >> > Date: Tue, 21 Jul 2020 22:44:05 +0530 >> > >> > > Subbaraya Sundeep (3): >> > > octeontx2-pf: Fix reset_task bugs >> > > octeontx2-pf: cancel reset_task work >> > > octeontx2-pf: Unregister netdev at driver remove >> > >> > I think you should shut down all the interrupts and other state >> > before unregistering the vf network device. >> >> Okay will change it and send v2. >> > > For our case interrupts need to be ON when unregister_netdev is called. > If driver remove is called when the interface is up then > otx2_stop(called by unregister_netdev) > needs mailbox interrupts to communicate with PF to release its resources. If you leave interrupts on then an interrupt can arrive after the software state has been released by unregister_netdev. Sounds like you need to resolve this some other way.
