ibmvnic: Fix assignment of RX/TX IRQ's
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Thu, 29 Jun 2017 00:55:54 +0000 (19:55 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jun 2017 19:40:59 +0000 (15:40 -0400)
commit5df969c3b0c6df03d72e0e7502c4adc7838442f9
tree229d5f20a1f0cfba2647298f3f5abf5badc1e105
parent4f75ba6982bc7e37e7738b2f1257d21a9c9e5d31
ibmvnic: Fix assignment of RX/TX IRQ's

The driver currently creates RX/TX queues during device probe, but
assigns IRQ's to them during device open. On reset, however,
IRQ's are assigned when resetting the queues. If there is a reset
while the device is closed and the device is later opened, the driver will
request IRQ's twice, causing the open to fail. This patch assigns
the IRQ's in the ibmvnic_init function after the queues are reset or
initialized, ensuring IRQ's are only requested once.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c