git: 43ed91e00bbb - main - igc: Increase default per-queue interrupt rate to 20000.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Jul 2023 03:11:52 UTC
The branch main has been updated by grehan:
URL: https://cgit.FreeBSD.org/src/commit/?id=43ed91e00bbb1c7edadbe1c210d8e57d66a3badd
commit 43ed91e00bbb1c7edadbe1c210d8e57d66a3badd
Author: Peter Grehan <grehan@FreeBSD.org>
AuthorDate: 2023-07-07 08:23:42 +0000
Commit: Peter Grehan <grehan@FreeBSD.org>
CommitDate: 2023-07-11 03:29:37 +0000
igc: Increase default per-queue interrupt rate to 20000.
The default per-queue packet rate of 8000 will cause packet loss when
forwarding at 2.5G with a single stream, as is common when using e.g.
iperf3 to test a platform.
Bump this to 20000 (the "low latency" value in the Linux driver) which
avoids packet loss for this type of test.
Future work will use adaptive interrupt rate in a similar fashion
to the ixgbe driver.
Sponsored by: Rubicon Communications, LLC ("Netgate")
Reviewed by: erj, kp
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D40904
---
sys/dev/igc/if_igc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/igc/if_igc.c b/sys/dev/igc/if_igc.c
index 60f796010232..1ede99eee4ae 100644
--- a/sys/dev/igc/if_igc.c
+++ b/sys/dev/igc/if_igc.c
@@ -271,7 +271,7 @@ SYSCTL_INT(_hw_igc, OID_AUTO, eee_setting, CTLFLAG_RDTUN, &igc_eee_setting, 0,
/*
** Tuneable Interrupt rate
*/
-static int igc_max_interrupt_rate = 8000;
+static int igc_max_interrupt_rate = 20000;
SYSCTL_INT(_hw_igc, OID_AUTO, max_interrupt_rate, CTLFLAG_RDTUN,
&igc_max_interrupt_rate, 0, "Maximum interrupts per second");