]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: fix error handling in ena_down() sequence
authorNetanel Belgazal <netanel@amazon.com>
Wed, 3 Jan 2018 06:17:30 +0000 (06:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jan 2018 17:21:00 +0000 (12:21 -0500)
commit87f7ed64d4ca7c99e11e5aa45192a9f8848df6f8
tree987e3da986b0d102099091641b719fafb1ee7a59
parentb7936bd3be813fe17fadc45673756ed2036c0fc4
net: ena: fix error handling in ena_down() sequence

ENA admin command queue errors are not handled as part of ena_down().
As a result, in case of error admin queue transitions to non-running
state and aborts all subsequent commands including those coming from
ena_up(). Reset scheduled by the driver from the timer service
context would not proceed due to sharing rtnl with ena_up()/ena_down()

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