From nobody Mon Dec 01 17:05:22 2025 X-Original-To: freebsd-current@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 4dKqzT6MX5z6JvCJ for ; Mon, 01 Dec 2025 17:05:41 +0000 (UTC) (envelope-from lobo@bsd.com.br) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (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 4dKqzT4X8Fz3mbV for ; Mon, 01 Dec 2025 17:05:41 +0000 (UTC) (envelope-from lobo@bsd.com.br) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-b73161849e1so1095185766b.2 for ; Mon, 01 Dec 2025 09:05:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; t=1764608735; x=1765213535; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9bhRKRxCvBE2m7Q2O1fJwnnfHekvraU3iimDPqyd51A=; b=Wx8Fp/2u+a6+Nb8P10pUlrlxx863rqDHQ84GYSe+JE0D3sSYOelYlCWVfN7IkfyXh7 hWs+3uAtJQgjew9Zp1w9LKkjTUjYHyvNVrMKMQpkI0D+kH7TFr3aBWX7Cn8WoL5Sw3gU 4y42j0JNSMGrhK/83Gyd8LelNFiQ++ycELoYc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764608735; x=1765213535; 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=9bhRKRxCvBE2m7Q2O1fJwnnfHekvraU3iimDPqyd51A=; b=l41cowCIlmVANc1NfdtKNkvUhX0x3zLjfHDVIqNRCUExun1y2Ovf7B2dr9n9WFt/ji /GdRi39c18KYB16a9hGGGF5LagUnOCNkXl8rT74CSrSJcXnkrEn5QYr6whSaOCOXqzXQ xLqH98Zv2aTvTb9N/lDBqQgwbMDQJPOSL9eXdlmqCp5Ftj8OiO7sOGGnghzwE0JZt5Ks /d6LBtxVkkpSG5BBElbsOkEiQLADll3wTgrfyT2A+qPfLbQtq++we1cNpZhU8IO9HDKJ wOLOyJWXN5U5ntKS24j/iaLbNg/PMXAVljcqHjaiCxDYeLW4m6F9uyjK7dmpERBwmxZi qDkw== X-Forwarded-Encrypted: i=1; AJvYcCW2+2GM2YvuBy7ujH4qKNO9/nHfZ7BCD+GdOnu+AQshF7a0PqbHN1rrjz4+vSWVNsjuoUX6LxF/SAdvttKMrAM=@freebsd.org X-Gm-Message-State: AOJu0YyAnWGT+VrkWgdhP02mpdIW3v1cWS3AuNA81XgKFjktTvZLFoxY 4vWK4y4Bapd1RlP9+KxslAV0ucFhyAhGznZGIanGELOPgVjrIc/lO8AWgZh9qDJ1NoMfXAszLcS welXWbtvD1kq1mb2QupiD6CoNcosliwybdm8PVA4BQoFor5T/qhY= X-Gm-Gg: ASbGncuWXhBHq5OnkIok4+V0P8QN5FJKkvgDU4/gxP28k1nEn5zNgmol9iu/kQ5k5Qb sksY6gDNGyEUZECFzhGj6RdvosHc9wblkOuo9JNi6TZLAic7SsGCF0O1Ox2wSD0leZMZ/D9tH/M f0YTV34aaQ6/3BjWD5skWq52H+1b/2qYPDfGUTzi2RJjzMUvwoySsIHYCsmqLjeAA+iIzTu6sE6 ZELy92zSzBAvzd1HJE+v78dwKdO/JpClF8/9wDoO5TPHA7gpJ2yMvfz84MhvqGuX3/xBVdlWw== X-Google-Smtp-Source: AGHT+IHwSMKEnLwi41R/+FB36iAthapXP8Al3VJFX1F+vr1cfSSz7M97Zf3p8VlkcR80v45h0eVoyM8MH7jlrmmdElE= X-Received: by 2002:a17:907:3cc5:b0:b71:51b:bd4c with SMTP id a640c23a62f3a-b767170c7dbmr3829043666b.50.1764608733749; Mon, 01 Dec 2025 09:05:33 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Lobo Date: Mon, 1 Dec 2025 14:05:22 -0300 X-Gm-Features: AWmQ_bnRURF0qZ7bwhZkWwO0e7ztK6un9NFABO1DPK7cwEuAzksMDzxhJfLia6A Message-ID: Subject: Re: looking for testers for if_rge - RTL8125/8126/8127 ethernet driver To: Bernard Spil Cc: Adrian Chadd , FreeBSD Net , current Content-Type: multipart/alternative; boundary="000000000000be3ba20644e6fcab" X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dKqzT4X8Fz3mbV --000000000000be3ba20644e6fcab Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 1, 2025, 05:40 Bernard Spil wrote: > Hi! > > Happy to be of service! Anything else we can do to get more testers? > (I'll see if I can make some noise on Mastodon). > Should there be some instruction on providing feedback in the port? > > Let's make this a very short-lived port. > > Cheers, Bernard. > > On 2025-12-01 02:42, Adrian Chadd wrote: > > hi! > > > > Thanks! My goal is to get this into a review next week, so hopefully > > this is a short lived port! > > > > > > -a > > > > On Sun, 30 Nov 2025 at 10:48, Bernard Spil wrote: > >> > >> 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= =3D0x10ec > >> 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= =3D0x10ec > >> 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 > >> wrote: > >> > > >> > 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 agai= n. > >> > 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 o= ut > >> > 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 > committing 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 / > 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% CP= U > 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 > >> > > > Hi! Compiled successfully from the git project page, and I've been testing it on a 14.3 stable. Really great! Thanks, Adrian! Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] --000000000000be3ba20644e6fcab Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Dec 1, 2025, 05:40 Bernard Spil = <brnrd@freebsd.org> wrote:
Hi!

Happy to be of service! Anything else we can do to get more testers?
(I'll see if I can make some noise on Mastodon).
Should there be some instruction on providing feedback in the port?

Let's make this a very short-lived port.

Cheers, Bernard.

On 2025-12-01 02:42, Adrian Chadd wrote:
> hi!
>
> Thanks! My goal is to get this into a review next week, so hopefully > this is a short lived port!
>
>
> -a
>
> On Sun, 30 Nov 2025 at 10:48, Bernard Spil <brnrd@freebsd.org>= ; wrote:
>>
>> 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 bidirecti= onal
>> for 10 minutes showed negligible load.
>>
>> rge0@pci0:1:0:0:=C2=A0 =C2=A0 =C2=A0 =C2=A0 class=3D0x020000 rev= =3D0x05 hdr=3D0x00 vendor=3D0x10ec
>> device=3D0x8125 subvendor=3D0x10ec subdevice=3D0x8125
>>=C2=A0 =C2=A0 =C2=A0vendor=C2=A0 =C2=A0 =C2=A0=3D 'Realtek Semi= conductor Co., Ltd.'
>>=C2=A0 =C2=A0 =C2=A0device=C2=A0 =C2=A0 =C2=A0=3D 'RTL8125 2.5G= bE Controller'
>>=C2=A0 =C2=A0 =C2=A0class=C2=A0 =C2=A0 =C2=A0 =3D network
>>=C2=A0 =C2=A0 =C2=A0subclass=C2=A0 =C2=A0=3D ethernet
>> rge1@pci0:2:0:0:=C2=A0 =C2=A0 =C2=A0 =C2=A0 class=3D0x020000 rev= =3D0x05 hdr=3D0x00 vendor=3D0x10ec
>> device=3D0x8125 subvendor=3D0x10ec subdevice=3D0x8125
>>=C2=A0 =C2=A0 =C2=A0vendor=C2=A0 =C2=A0 =C2=A0=3D 'Realtek Semi= conductor Co., Ltd.'
>>=C2=A0 =C2=A0 =C2=A0device=C2=A0 =C2=A0 =C2=A0=3D 'RTL8125 2.5G= bE Controller'
>>=C2=A0 =C2=A0 =C2=A0class=C2=A0 =C2=A0 =C2=A0 =3D network
>>=C2=A0 =C2=A0 =C2=A0subclass=C2=A0 =C2=A0=3D ethernet
>>
>> Cheers, Bernard.
>>
>> On Sun, Nov 30, 2025 at 2:51=E2=80=AFPM Bernard Spil <brnrd@fr= eebsd.org>
>> wrote:
>> >
>> > Hi all,
>> >
>> > Thanks to flo for notifying me that there's an alternativ= e to
>> > net/realtek-re-kmod.
>> >
>> > I've had crashes running realtek-re-kmod and realtek-re-k= mod198
>> > 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 n= ow.
>> >
>> > Nice to have this if_rge in the back pocket when things don&#= 39;t work out
>> > with 1101.00. Started porting it, find the patch at
>> > https://brnrd.eu/bs= d/patch-net_realtek-rge-kmod-20251129
>> > Seeing that this is supposed to land in base, I'm holding= back on committing it.
>> >
>> > Thanks all! Bernard (brnrd@)
>> >
>> > On Fri, Nov 28, 2025 at 5:48=E2=80=AFPM Adrian Chadd <adri= an@freebsd.org> wrote:
>> > >
>> > > On Thu, 27 Nov 2025 at 10:13, Florian Smeets <flo@freebs= d.org> 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 lapto= p w/ RTL8125B / Killer E3000.
>> > > > > I'm now opening it up to others who are wi= lling 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 turne= d off and on). I've
>> > > > only done light testing with the official 1101.00 d= river. 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 11= 00.00 was not able to
>> > > > recover the interface.
>> > > >
>> > > > I ran if_rge on my NAS and did some testing. I have= n't had one hang with
>> > > > this driver, even after pounding the network for ho= urs. 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 w= ith 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 t= he 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% w= ith the test
>> > > > mentioned above.
>> > >
>> > > I'll go dig into that a bit. It shouldn't be tak= ing very much CPU to process
>> > > this number of packets; the bulk of the CPU should be us= ed by the IP stack.
>> > >
>> > > I'll go run some profiling over the next few days an= d see if I can nail down
>> > > what I'm doing poorly. Hopefully it's something = stupid on my end. ;-)
>> > >
>> > >
>> > >
>> > > -adrian
>> > >

=
Hi!

Co= mpiled successfully from the git project page,=C2=A0 and I've been test= ing it on a 14.3 stable.

Really great!

Thanks, A= drian!
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since version 2.2.= 8 [not Pro-Audio.... YET!!]

--000000000000be3ba20644e6fcab--