Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 2023 03:11:52 GMT
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 43ed91e00bbb - main - igc: Increase default per-queue interrupt rate to 20000.
Message-ID:  <202307110311.36B3BqfH031379@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307110311.36B3BqfH031379>