]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: add detection and recovery mechanism for handling missed/misrouted MSI-X
authorNetanel Belgazal <netanel@amazon.com>
Thu, 28 Dec 2017 21:31:30 +0000 (21:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Jan 2018 19:35:12 +0000 (14:35 -0500)
commit479e22004c14726a90b4edbf9eebf75d9848fa49
treebb5285244774553c8ea08da5f24a89496d787e73
parentfc453b0d086c16d6a986f18e47b5ac218499cdc3
net: ena: add detection and recovery mechanism for handling missed/misrouted MSI-X

A mechanism for detection of stuck Rx/Tx rings due to missed or
misrouted interrupts.
Check if there are unhandled completion descriptors before the first
MSI-X interrupt arrived.
The check is per queue and per interrupt vector.
Once such condition is detected, driver and device reset is scheduled.

Signed-off-by: Netanel Belgazal <netanel@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_eth_com.c
drivers/net/ethernet/amazon/ena/ena_eth_com.h
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h
drivers/net/ethernet/amazon/ena/ena_regs_defs.h