From nobody Mon Dec 1 02:42:11 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 4dKSly3zYmz6HlWf for ; Mon, 01 Dec 2025 02:39:26 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qt1-f177.google.com (mail-qt1-f177.google.com [209.85.160.177]) (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 4dKSlx6Kgvz3cft for ; Mon, 01 Dec 2025 02:39:25 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-f177.google.com with SMTP id d75a77b69052e-4edb7c8232aso51103001cf.3 for ; Sun, 30 Nov 2025 18:39:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764556765; x=1765161565; h=content-transfer-encoding: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=vS9oFwMYVbOnW5+Xaz/lFj2cka4cCsT1q1BRHYXIyYU=; b=xBQoVCpQwThL6IBb0E5tuvqp3ZS6DI11sNY5MyB1G/NyqAEkbcoaYAr3LuSmTI20xr 1jljt3pL7g5vNLParVenq9KrOzdLcGiNGoy+/DwRu195crOR3ZAgxQ5rQFul9Rxq+ilg EB+oR/iO5LuCsXiHTqqbMrWRpUYe3LxfVf0MYeuyC+zvnttHOIjRogvFx8mr4Zee1fUa KSg89ZRDYxoKjDr31VaLbXFNwPnQLK1LMJMq2iF1KEzc6KtokaUVSy70k2OS8otI8Wru X9EDeBIoazB9BkheGsTDFxyyccAU3HzwJTxjl4JH1ZESspWuT1LqD4DyFO1viLB91A2n EN6A== X-Forwarded-Encrypted: i=1; AJvYcCVv7ATtp0OUTm7vy4/BykKQjWOMr0BpgT1MdE/CKOrX0q75hlcDX3i3NMeVBOwXU/Yyva4cRqudaoZEDvgO8aI=@freebsd.org X-Gm-Message-State: AOJu0YwUsT7+LlZ8jlsAePft5vgX5Q64O6Totd+1Rf2s5fGRYIaSiHYf 0nfEpe4AMVZKRpWh4TAfvz0gw1i27tVSByxfWt56pGQlDnscDnlqdLghFLjZ28JEFe8/c4V5yq5 OMude/HLz/25gdIkvdW/U0ipZ5CdpaiAklxa+ X-Gm-Gg: ASbGncssHUtLdgwSeITYkTUi88utJ/LSFSirygL3p9Mr/uurzf6z26fTYCDnEhcae0p sqevu0GdbzlJc0aEhxvNOpZ9OuAIkCJXlq7JzDPOECswX7gWshmrcwmyzKHddOU86IMeV+UyyFy m76uFoM9wjuT+KQLiAXj9uRQ926MIRAXQU6q8i7+E1FVHuORuG3U+DyaZ6Hbd4SxqGG/FKzfwIR 9ibmvuhKnGiNyvPKyMFODeZfMWeZk2TQgoWfWS7f4uTd6IsZ6SqsXuP2evzmLySUEPto+C8xhVK 9bqm+XwGpqf79IsN1P/+1ivWQKSPMvgfErQdv/WB X-Google-Smtp-Source: AGHT+IH9pU9NSF41q2XsAzzXXRNdUVrbw/2+g0o/UCnkP1OjH+ltuyjWIUBKNMIRyJpnNQJH5xN62oW8r/epL78U4NU= X-Received: by 2002:ac8:5893:0:b0:4ee:483:3128 with SMTP id d75a77b69052e-4ee58adf9c5mr467614061cf.44.1764556764752; Sun, 30 Nov 2025 18:39:24 -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: Adrian Chadd Date: Sun, 30 Nov 2025 18:42:11 -0800 X-Gm-Features: AWmQ_bmCeO-ACk6kZN_RAYDG6ehK3R5S2cRF7_IPa3vnCRDoq9xpk6VzAWp6aNk Message-ID: Subject: Re: looking for testers for if_rge - RTL8125/8126/8127 ethernet driver To: Bernard Spil 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 [-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: 4dKSlx6Kgvz3cft 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=3D0= x10ec > 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=3D0= x10ec > 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 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 commi= tting 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 / Kil= ler E3000. > > > > > I'm now opening it up to others who are willing to build/run a ke= rnel > > > > > module to test the driver out and report back. > > > > > > > > > This is great. Finally, an in tree driver for these very common NIC= s. > > > > 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 abl= e to > > > > wedge it with less than a minute of iperf3, and the ifconfig down/u= p > > > > dance that was able to revive the interface with 1100.00 was not ab= le 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 bi= g > > > > plus for me. Thanks. > > > > > > > > I was able to achieve close to 2.5Gb/s TX and close to 1Gb/s RX wit= h > > > > 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{rge= 0 > > > > taskq thread}] hovers between 20-25% when running the above iperf3 = tests. > > > > > > > > With the official 1101.00 driver, the only process using > 1% CPU i= s > > > > 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 na= il down > > > what I'm doing poorly. Hopefully it's something stupid on my end. ;-) > > > > > > > > > > > > -adrian > > >