diff options
author | Netanel Belgazal <netanel@amazon.com> | 2017-12-29 00:31:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-02 22:35:12 +0300 |
commit | 8510e1a3d16c7e4e2b47c9675b18725407c616b7 (patch) | |
tree | bb5285244774553c8ea08da5f24a89496d787e73 /drivers/net/ethernet/amazon/ena/ena_eth_com.h | |
parent | acfbf3ca313edd550f0139fe70509cb3b0b38932 (diff) | |
download | linux-8510e1a3d16c7e4e2b47c9675b18725407c616b7.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/amazon/ena/ena_eth_com.h')
-rw-r--r-- | drivers/net/ethernet/amazon/ena/ena_eth_com.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_eth_com.h b/drivers/net/ethernet/amazon/ena/ena_eth_com.h index bb53c3a4f8e9..2f7657227cfe 100644 --- a/drivers/net/ethernet/amazon/ena/ena_eth_com.h +++ b/drivers/net/ethernet/amazon/ena/ena_eth_com.h @@ -88,6 +88,8 @@ int ena_com_add_single_rx_desc(struct ena_com_io_sq *io_sq, int ena_com_tx_comp_req_id_get(struct ena_com_io_cq *io_cq, u16 *req_id); +bool ena_com_cq_empty(struct ena_com_io_cq *io_cq); + static inline void ena_com_unmask_intr(struct ena_com_io_cq *io_cq, struct ena_eth_io_intr_reg *intr_reg) { |