[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/9] qtest/e1000e|igb: Test interrupt throttling in multiple_tran
From: |
Nicholas Piggin |
Subject: |
[PATCH 7/9] qtest/e1000e|igb: Test interrupt throttling in multiple_transfers test |
Date: |
Sat, 18 Jan 2025 03:03:03 +1000 |
Enable interrupt throtling on one of the two queue interrupts used
in the multiple_transfers test, to improve coverage.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
---
tests/qtest/e1000e-test.c | 4 ++--
tests/qtest/igb-test.c | 4 ++++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/qtest/e1000e-test.c b/tests/qtest/e1000e-test.c
index 9ab81ecff5b..5e391095f32 100644
--- a/tests/qtest/e1000e-test.c
+++ b/tests/qtest/e1000e-test.c
@@ -194,8 +194,8 @@ static void test_e1000e_multiple_transfers(void *obj, void
*data,
return;
}
- /* Clear EITR because buggy QEMU throttle timer causes superfluous irqs */
- e1000e_macreg_write(d, E1000_EITR + E1000E_RX0_MSG_ID * 4, 0);
+ /* Use EITR for one irq and disable it for the other, for testing */
+ e1000e_macreg_write(d, E1000_EITR + E1000E_RX0_MSG_ID * 4, 500);
e1000e_macreg_write(d, E1000_EITR + E1000E_TX0_MSG_ID * 4, 0);
for (i = 0; i < iterations; i++) {
diff --git a/tests/qtest/igb-test.c b/tests/qtest/igb-test.c
index 1bbb4bea4c1..0a9c5162019 100644
--- a/tests/qtest/igb-test.c
+++ b/tests/qtest/igb-test.c
@@ -198,6 +198,10 @@ static void test_igb_multiple_transfers(void *obj, void
*data,
return;
}
+ /* Use EITR for one irq and disable it for the other, for testing */
+ e1000e_macreg_write(d, E1000_EITR(E1000E_RX0_MSG_ID), 0);
+ e1000e_macreg_write(d, E1000_EITR(E1000E_TX0_MSG_ID), 125 << 2);
+
for (i = 0; i < iterations; i++) {
igb_send_verify(d, data, alloc);
igb_receive_verify(d, data, alloc);
--
2.45.2
- [PATCH 2/9] net/e1000e: Permit disabling interrupt throttling, (continued)
- [PATCH 2/9] net/e1000e: Permit disabling interrupt throttling, Nicholas Piggin, 2025/01/17
- [PATCH 1/9] qtest/e1000e|igb: Clear interrupt-cause and msix pending bits after irq, Nicholas Piggin, 2025/01/17
- [PATCH 3/9] qtest/e1000e|igb: assert irqs are clear before triggering an irq, Nicholas Piggin, 2025/01/17
- [PATCH 4/9] net/igb: Fix interrupt throttling interval calculation, Nicholas Piggin, 2025/01/17
- [PATCH 5/9] net/igb: Fix EITR LLI and counter fields, Nicholas Piggin, 2025/01/17
- [PATCH 6/9] net/e1000e|igb: Fix interrupt throttling logic, Nicholas Piggin, 2025/01/17
- [PATCH 7/9] qtest/e1000e|igb: Test interrupt throttling in multiple_transfers test,
Nicholas Piggin <=
- [PATCH 9/9] hw/net/e1000e|igb: Remove xitr_guest_value logic, Nicholas Piggin, 2025/01/17
- [PATCH 8/9] net/e1000e: Fix xITR minimum value, Nicholas Piggin, 2025/01/17