]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: fix bug that might cause hang after consecutive open/close interface.
authorNetanel Belgazal <netanel@amazon.com>
Sun, 11 Jun 2017 12:42:44 +0000 (15:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Jun 2017 20:36:46 +0000 (16:36 -0400)
commitb5e38b54fd2038d5d7639efa5b706b77b4939e85
tree4fbda3df2b1954e60795c0dd793dcc6dedcd4789
parentf9b8bc075094b8b3c9d36db8e610cf899266980e
net: ena: fix bug that might cause hang after consecutive open/close interface.

Fixing a bug that the driver does not unmask the IO interrupts
in ndo_open():
occasionally, the MSI-X interrupt (for one or more IO queues)
can be masked when ndo_close() was called.
If that is followed by ndo open(),
then the MSI-X will be still masked so no interrupt
will be received by the driver.

Fixes: 42904aea461f ("Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Netanel Belgazal <netanel@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.c