From nobody Sun Nov 30 18:48:38 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 4dKGK55Whtz6Jcqb for ; Sun, 30 Nov 2025 18:48:57 +0000 (UTC) (envelope-from brnrd@freebsd.org) Received: from smtp-out08.qsp.nl (smtp-out08.qsp.nl [193.254.214.172]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.qsp.nl", Issuer "Sectigo RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dKGK53B59z3b63 for ; Sun, 30 Nov 2025 18:48:57 +0000 (UTC) (envelope-from brnrd@freebsd.org) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=fail reason="No valid SPF, No valid DKIM" header.from=freebsd.org (policy=none); spf=softfail (mx1.freebsd.org: 193.254.214.172 is neither permitted nor denied by domain of brnrd@freebsd.org) smtp.mailfrom=brnrd@freebsd.org Received: from 5921114a.static.cust.trined.nl (5921114a.static.cust.trined.nl [89.33.17.74]) by smtp02.qsp.nl (Postfix) with ESMTPSA id C1F502FB7 for ; Sun, 30 Nov 2025 19:48:50 +0100 (CET) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by 5921114a.static.cust.trined.nl (Postfix) with ESMTPSA id 4dKGJw1wNZzDZ for ; Sun, 30 Nov 2025 18:48:48 +0000 (UTC) Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-596ba05aaecso3070292e87.0 for ; Sun, 30 Nov 2025 10:48:49 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWwzlHGpS+4sSW14oJcXxnve3aPpMTK3r5Riozw6q1P1YwQ6ZxtNa4mwDuhFjw9iiI3J0haJoB/ARSTmA==@freebsd.org X-Gm-Message-State: AOJu0Yxjwui+btj9em+RWefqU8MhJ6WL0ekuG58KNkHoAtOToT+e42YS /+XcB5B5E4mA6yBE/YM197Xgrn4X10lAeJrPeZcKMVERHHsZvCHkhHq9Bfs/MejBGA9rAZ8Bgds 9LuJsouKcWmL81h9JhcLU/MXG4C0OaA== X-Google-Smtp-Source: AGHT+IEE2tekcnmyWq7UCLuI8TvcqiKYzfc2LQPdOfvRQ8MWjGv/lr04UesVU0yr8EtuPKgmkTGUEWlbvVeNBpNBEtg= X-Received: by 2002:a05:6512:2207:b0:595:81e7:3daa with SMTP id 2adb3069b0e04-596a3ec084fmr11660698e87.27.1764528528266; Sun, 30 Nov 2025 10:48:48 -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: Bernard Spil Date: Sun, 30 Nov 2025 19:48:38 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: AWmQ_blSeAYVMd6fI4ZviC2bCLZICuLktyfdsiCv7PiMnrAR_tTX1Zosr0AsmPk Message-ID: Subject: Re: looking for testers for if_rge - RTL8125/8126/8127 ethernet driver To: Adrian Chadd Cc: Florian Smeets , FreeBSD Net , current , Alex Dupre Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.96 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.96)[-0.960]; DMARC_POLICY_SOFTFAIL(0.10)[freebsd.org : No valid SPF, No valid DKIM,none]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; FREEFALL_USER(0.00)[brnrd]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-net@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[209.85.167.41:received]; R_SPF_SOFTFAIL(0.00)[~all:c]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-net@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_FIVE(0.00)[5] X-Rspamd-Queue-Id: 4dKGK53B59z3b63 Hi, Turns out the realtek-re-kmod wasn't working out for me after all, machine started repeatedly crashing. Committed the port net/realtek-rge-kmod hoping to attract more testers. So far, works out great for me. GMKTek M5 Plus / AMD 5825U / Dual RTL8215 FreeBSD 15.0-RC4-p1 releng/15.0-n280991-c7ccd5b3f879 GENERIC amd64 Testing with 2 clients, both 100 parallel streams iperf3 bidirectional for 10 minutes showed negligible load. rge0@pci0:1:0:0: class=3D0x020000 rev=3D0x05 hdr=3D0x00 vendor=3D0x1= 0ec device=3D0x8125 subvendor=3D0x10ec subdevice=3D0x8125 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8125 2.5GbE Controller' class =3D network subclass =3D ethernet rge1@pci0:2:0:0: class=3D0x020000 rev=3D0x05 hdr=3D0x00 vendor=3D0x1= 0ec device=3D0x8125 subvendor=3D0x10ec subdevice=3D0x8125 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTL8125 2.5GbE Controller' class =3D network subclass =3D ethernet Cheers, Bernard. On Sun, Nov 30, 2025 at 2:51=E2=80=AFPM Bernard Spil wr= ote: > > Hi all, > > Thanks to flo for notifying me that there's an alternative to > net/realtek-re-kmod. > > I've had crashes running realtek-re-kmod and realtek-re-kmod198 > before, none of the switches seemed to help. > After upgrading to from 14.3 to 15.0-RC4-p1, I thought I'd test again. > So far so good, no crashes. Generating load with iperf for 5 minutes > from 2 machines to the server works OK with the 1101.00 for now. > > Nice to have this if_rge in the back pocket when things don't work out > with 1101.00. Started porting it, find the patch at > https://brnrd.eu/bsd/patch-net_realtek-rge-kmod-20251129 > Seeing that this is supposed to land in base, I'm holding back on committ= ing it. > > Thanks all! Bernard (brnrd@) > > On Fri, Nov 28, 2025 at 5:48=E2=80=AFPM Adrian Chadd = wrote: > > > > 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 / Kille= r E3000. > > > > I'm now opening it up to others who are willing to build/run a kern= el > > > > 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 fo= r > > > me (constant hangs, no matter which options I turned off and on). I'v= e > > > 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 w= ith > > > 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 te= sts. > > > > > > 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 pr= ocess > > this number of packets; the bulk of the CPU should be used by the IP st= ack. > > > > 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 > >