From nobody Fri Nov 28 16:51:32 2025 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dHzlK2CKKz6HqCt for ; Fri, 28 Nov 2025 16:48:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dHzlK0946z4LQm for ; Fri, 28 Nov 2025 16:48:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-8b2148ca40eso233908585a.1 for ; Fri, 28 Nov 2025 08:48:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764348524; x=1764953324; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xSGZInKqwOxzbVKymWmQDqL+YWEickbdcl06tVH+Umo=; b=RM/Q0+MtBwgsxvnPLPRLghNHPmOcM/NHEqxMm6fFJB9/6vtKykVABA88xbKHwQpYUg NJ1E1resAWRES90kcTHKgpzYhNEzjwe/F9DyDV5Ok5JBzhMw58bwqp2NfPf0YB8/bmeI F+a6zd74RU+lVd+JqSwR72cacu84mZkw3lneaFGeO1l6smctyKMZJ9Tf1wxfk3VNgv+w E3CHOh0KxBGzSp9d//vCQn2XDYRJBrSaa+mG7b9d+FW7V3ReY6wVRbOA9g6sFROZxpWc CcLaAJ0ZjU6QAQmBrxZxLkaq+m3fDLzcidABRA5nJnDlJpdzYFWjBlHEexLSzr/pbTcX 24XQ== X-Gm-Message-State: AOJu0Ywr0ZdzpGLUOgAzxpGI+soLhC8V38qjkcy9yM5VEzD/Ls51Z9TV qlgivGjo3U12J0MBaa1RyF/QlJCBt0+VpPl1n9BnvYxkRE7T4fL0pojSzaS1BaeAjz9mADpBuPA 30rvPbuaKvbXv0ff/pThBd+9W6oFJbvA= X-Gm-Gg: ASbGnct9rUbm5qogT1lwylcNfgNm1ceAZ5TH9MyhF7PnkvsNwqiHbCHOqxDR5Dy0Cik 4nvTqGuvXkEjQIj4aHoRHlIjwWxwCGJS59RUfHwAzeBNCm30dZoq49foiRc6BS3v6a8OKn4LTMp wIvKR4N3nepqaZDHFpX3as59HytMbFRYSCfvOuhkFqF+oHez8Ak6elCoJK4wKm3uK935AcFHp/I gPkYI7wsQG7X/ct7DXKTNKocTjOGa+jgjt3GWm2/2tjKUy6rqpgjHdyWfwjp7+6zX506z8YJmgt CeAZZjk+ty+PGk6idhM4oQz4ovSIuQ== X-Google-Smtp-Source: AGHT+IE0Qk/Z1YLslDi8kXbi8RxJYjwJADHh8v7ja93a1imPQoss2uAIrm4HMDJBq+tVDnI4TfICMFosGhHxtSpU77E= X-Received: by 2002:a05:620a:414b:b0:815:630d:2cbd with SMTP id af79cd13be357-8b33d1fd830mr3856489685a.34.1764348524208; Fri, 28 Nov 2025 08:48:44 -0800 (PST) List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Adrian Chadd Date: Fri, 28 Nov 2025 08:51:32 -0800 X-Gm-Features: AWmQ_bnMO2eofoSm9hvTXdqykZ2HbvuWytqNRHT2e1Qv3meJQcXKw5aH6Q-iQB4 Message-ID: Subject: Re: looking for testers for if_rge - RTL8125/8126/8127 ethernet driver To: Florian Smeets Cc: FreeBSD Net , freebsd-current Content-Type: text/plain; charset="UTF-8" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dHzlK0946z4LQm On Thu, 27 Nov 2025 at 10:13, Florian Smeets wrote: > > On 23.11.25 03:16, Adrian Chadd wrote: > > hi! > > > > i've ported Kevin Lo's openbsd driver for these realtek chipsets to FreeBSD. > > It works well enough for me to use on my laptop w/ RTL8125B / Killer E3000. > > I'm now opening it up to others who are willing to build/run a kernel > > module to test the driver out and report back. > > > This is great. Finally, an in tree driver for these very common NICs. > The 1100.00 version of the net/realtek-re-kmod was just unreliable for > me (constant hangs, no matter which options I turned off and on). I've > only done light testing with the official 1101.00 driver. I was able to > wedge it with less than a minute of iperf3, and the ifconfig down/up > dance that was able to revive the interface with 1100.00 was not able to > recover the interface. > > I ran if_rge on my NAS and did some testing. I haven't had one hang with > this driver, even after pounding the network for hours. That's a big > plus for me. Thanks. > > I was able to achieve close to 2.5Gb/s TX and close to 1Gb/s RX with > iperf3 --bidir. > > CPU usage appears to be substantially higher than with the official > Realtek driver. That's a good data point. > > [intr{irq59: rge0}] goes to around 50% of one core, and [kernel{rge0 > taskq thread}] hovers between 20-25% when running the above iperf3 tests. > > With the official 1101.00 driver, the only process using > 1% CPU is > this one [kernel{re0 taskq}] and it is around 10% with the test > mentioned above. I'll go dig into that a bit. It shouldn't be taking very much CPU to process this number of packets; the bulk of the CPU should be used by the IP stack. I'll go run some profiling over the next few days and see if I can nail down what I'm doing poorly. Hopefully it's something stupid on my end. ;-) -adrian