From nobody Fri Nov 28 16:51:32 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 4dHzlK2C3Fz6HqCs for ; Fri, 28 Nov 2025 16:48:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qk1-f170.google.com (mail-qk1-f170.google.com [209.85.222.170]) (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 4dHzlK00Frz4LFc for ; Fri, 28 Nov 2025 16:48:44 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qk1-f170.google.com with SMTP id af79cd13be357-8b220ddc189so211011085a.0 for ; Fri, 28 Nov 2025 08:48:44 -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=HtZN7zvRjN3JpPMfCGx01oUMKmCSDVw+/fCbog2l640AEee0leuVcyjU4yUPieR5EK aiWh5KY+K16qBhaWu1ZdZdQM3IZJOXLR69wdCxmpyIMfwQC1R47BQK19ckiqu8YAS8Dq V/PWw5rPcQdQrMGngLhPZrM0nWBmfcI4HixG5CEU0knLtq3DalPpvmJio7/j0tUQUMKs auaEuMQIUwCvsWsH3/ke7CCB2zGT4NfHfMR0mGUUyKGWPCOYBgEI51IopTIJmISlPK/2 dqVC5wEhaywBBEQnF44/6mYHeRoigfRyA9Mfm47Zkgy980Vng1bWc0BYXK7MnZzs3fRm 7grw== X-Forwarded-Encrypted: i=1; AJvYcCUOs009sTpOTTrgq0GU00zn+pAE6pJfCTmsIN3cr1Oj3UxJnbRrF6tWGrfhJi7Jmpd5zu4ygIehCkBuyT1cYiU=@freebsd.org X-Gm-Message-State: AOJu0Yw8bla8uhckafpWKE8wasBMcOoTbs/zMQ7R52B9tCGGoOnefCQL i9/MeyFQgnXe4+KTNYfek/3FwLFWxdJ/6jmmpRIAIqKDtHvkQH9gJa136ih1gnd8FzGdp0JHdoO Hynp9l5XOyaalmQQc2N6q3YpAQMAyY6jnAnre X-Gm-Gg: ASbGncuw723iF5SRb3SG3I3SDdgn4/j6jkuQIRcPO2+b8iRz1U4nH4UyRkmdzYuHSvJ G01BBQGFzxi2QdGWkoeEvKSXE0V6WS4zZrh8WtW5HlX5zkmOhzdLF+LeM7SMNLLfNPtpxooPpGI 7J8tEDikZwazGEwPJ+RuLLftdIGPGi4IWSTK58EfeMk8rQxkGuld7vc7ogjzjkWsRJ5p1MM7MID ANJLVz3Vr6sGvHUlJvVAp5q4esiJx8fdFR3GiwgG7A95av/GFWDrsk61nNtfGMJdz76z0ay+zge eHe4VbM+XDZSi1ly+2e1p8OHTxsTcg== 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: 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: 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)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dHzlK00Frz4LFc 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