aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOsama Abboud <osamaabb@amazon.com>2023-09-11 08:38:39 +0000
committerArthur Kiyanovski <akiyano@FreeBSD.org>2024-01-14 21:18:10 +0000
commit00916b6d298e61140c6730b9f21e0d0fb0886f04 (patch)
tree912a724dc6951be12daa935cb69bb0e23c158681
parent4526ef3d05dd469f5f61d22783a861d9db5c56fd (diff)
downloadsrc-00916b6d298e61140c6730b9f21e0d0fb0886f04.tar.gz
src-00916b6d298e61140c6730b9f21e0d0fb0886f04.zip
ena: Update ena_com_update_intr_reg API usage
This commit fixes the usage of this function to be compatible with the new API introduced by ena-com update to v2.7.0 Approved by: cperciva (mentor) MFC after: 2 weeks Sponsored by: Amazon, Inc. (cherry picked from commit 72e34ebdd08854dc896f267b0461e241c4040241)
-rw-r--r--sys/dev/ena/ena.c2
-rw-r--r--sys/dev/ena/ena_datapath.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ena/ena.c b/sys/dev/ena/ena.c
index ba1712093a7a..aca2e0b43041 100644
--- a/sys/dev/ena/ena.c
+++ b/sys/dev/ena/ena.c
@@ -2026,7 +2026,7 @@ ena_unmask_all_io_irqs(struct ena_adapter *adapter)
for (i = 0; i < adapter->num_io_queues; i++) {
ena_qid = ENA_IO_TXQ_IDX(i);
io_cq = &adapter->ena_dev->io_cq_queues[ena_qid];
- ena_com_update_intr_reg(&intr_reg, 0, 0, true);
+ ena_com_update_intr_reg(&intr_reg, 0, 0, true, false);
tx_ring = &adapter->tx_ring[i];
counter_u64_add(tx_ring->tx_stats.unmask_interrupt_num, 1);
ena_com_unmask_intr(io_cq, &intr_reg);
diff --git a/sys/dev/ena/ena_datapath.c b/sys/dev/ena/ena_datapath.c
index 3e0a8aa2bd74..e5c424139d3c 100644
--- a/sys/dev/ena/ena_datapath.c
+++ b/sys/dev/ena/ena_datapath.c
@@ -104,7 +104,7 @@ ena_cleanup(void *arg, int pending)
/* Signal that work is done and unmask interrupt */
ena_com_update_intr_reg(&intr_reg, ENA_RX_IRQ_INTERVAL,
- ENA_TX_IRQ_INTERVAL, true);
+ ENA_TX_IRQ_INTERVAL, true, false);
counter_u64_add(tx_ring->tx_stats.unmask_interrupt_num, 1);
ena_com_unmask_intr(io_cq, &intr_reg);
}