]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f6e3985a40ffda5924a10fef4a63857e6b6de98
tree229d5f20a1f0cfba2647298f3f5abf5badc1e105
parent4e57516cf7f714f4c307e5144bd97a4eb262ebab
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