[PATCH v3] igb: Free IRQs when device is hotplugged

2017-12-12 Thread Lyude Paul
netdev, we always allow __igb_close() to be called so that IRQs may be freed normally. Additionally, only allow igb_close() to be called from __igb_close() if it hasn't already been called for the given adapter. Signed-off-by: Lyude Paul <ly...@redhat.com> Fixes: 9474933caf21 ("igb: c

[PATCH v2] igb: Free IRQs when device is hotplugged

2017-12-11 Thread Lyude Paul
netdev, we always allow __igb_close() to be called so that IRQs may be freed normally. Additionally, only allow igb_close() to be called from __igb_close() if it hasn't already been called for the given adapter. Signed-off-by: Lyude Paul <ly...@redhat.com> Fixes: 9474933caf21 ("igb: c

Re: [PATCH] igb: Free IRQs when device is hotplugged

2017-12-11 Thread Lyude Paul
On Mon, 2017-12-11 at 16:34 -0800, Stephen Hemminger wrote: > On Mon, 11 Dec 2017 18:45:02 -0500 > Lyude Paul <ly...@redhat.com> wrote: > > > Recently I got a Caldigit TS3 Thunderbolt 3 dock, and noticed that upon > > hotplugging my kernel would i

[PATCH] igb: Free IRQs when device is hotplugged

2017-12-11 Thread Lyude Paul
hether the PCI device is stale and if so, free it's IRQs and tx/rx resources. Signed-off-by: Lyude Paul <ly...@redhat.com> Fixes: 9474933caf21 ("igb: close/suspend race in netif_device_detach") Cc: Todd Fujinaka <todd.fujin...@intel.com> Cc: sta...@vger.kernel.org --- drivers/net/e