🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #518

[PATCH net-next v16 0/7] r8169: add RSS support for RTL8127

#518
From: javen
Date: Thu, 08 Oct 2026 06:57
52 lines
7961 bytes
From: Javen Xu <javen_xu@realsil.com.cn>

This patch series adds RSS (Receive Side Scaling) support for the r8169
ethernet driver, specifically for RTL8127 (RTL_GIGA_MAC_VER_80).

RSS enables packet distribution across multiple receive queues, which can
significantly improve network throughput on multi-core systems by allowing
parallel processing of incoming packets.

Key features:
- Multi-queue RX support (up to 8 queues)
- MSI-X interrupt with vector mapping
- Dynamic queue configuration via ethtool (-L)
- RSS hash computation for flow classification

Experiments:
Platform: AMD Ryzen Embedded R2514 with Radeon Graphics(4 Cores/8 Threads)
Arch: x86_64
Test command: 
  Server: iperf3 -s
  Client: iperf3 -c 192.168.2.1 -P 20 -t 3600
Monitor: mpstat -P ALL 1

Before this patch (Without RSS):
  Throughput: Unstable, fluctuating between 3.76 Gbits/sec and
  8.2 Gbits/sec.
  CPU Usage: A single CPU core is fully occupied with softirq reaching 
  up to 96%.

After this patch (With RSS enabled):
  Throughput: Stable at 9.42 Gbits/sec.
  CPU Usage: The traffic load is evenly distributed across multiple CPU
  cores. The maximum softirq on a single core dropped to 63%.
  
Other Experiments:
Link: https://lore.kernel.org/netdev/0A5279953D81BB9C+f50c9b49-3e5d-467f-b69a-7e49ed223383@radxa.com/

Javen Xu (7):
  r8169: prepare for multi irqs and napi
  r8169: refactor RX path to prepare for multi-queue
  r8169: add support for new interrupt mapping
  r8169: prepare for new interrupt mapping
  r8169: add support and enable rss
  r8169: move struct ethtool_ops
  r8169: add get_channel support for ethtool

 drivers/net/ethernet/realtek/r8169_main.c | 1122 ++++++++++++++++++---
 1 file changed, 973 insertions(+), 149 deletions(-)

-- 
2.43.0
Technical Details
Message-ID: <20261008065722.1026-1-javen_xu@realsil.com.cn>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342776-linux-kernel-netdev=dewy.ru

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-342776-linux-kernel-netdev=dewy.ru
From: javen_xu@realsil.com.cn (javen)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next v16 0/7] r8169: add RSS support for RTL8127
Date: Thu, 8 Oct 2026 14:57:15 +0800
Organization: Usenet Network
Message-ID: <20261008065722.1026-1-javen_xu@realsil.com.cn>
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="822118"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:YefyheA8e8pFxQcK6NiucoQU52U= sha256:dwhdftBFi9SqPd2PjGsQP2SelCrEVXcnxUrjXmtopGM=
	sha1:f9mPfRDDX3LHoGIAF/LvWTOLZMU= sha256:g7i5aNU7qoRoR06YQ3p00rKR8vCRcRbzivqcMAAU4b0=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id DD82710F326; Thu,  8 Oct 2026 10:04:39 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=realsil.com.cn
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id bkwqitNUFGcZ;
	Thu,  8 Oct 2026 10:04:37 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-342776-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=realsil.com.cn
X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 1AB4710F24F; Thu,  8 Oct 2026 10:04:34 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by tor.lore.kernel.org (Postfix) with ESMTP id 1AC342C289; Thu,  8 Oct 2026 07:03:34 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id C1A703D5221;
	Thu,  8 Oct 2026 07:03:14 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=realsil.com.cn header.i=@realsil.com.cn header.b="uXjspZud"
X-Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6FEE53BBFC4;
	Thu,  8 Oct 2026 07:03:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791442994; cv=none; b=AsTSMOGJ4kl5w9iewdrUQDKFGx82OZD3H1rtYVZLGa4/US7dlng/ufCom6hIMYZlq2ib6fCnYCFTYNY/Km5/BjD1uLPgD5hkGLBD3PkIFuZOy7DpRxRa8AH0ulbeGb2aeSjC111+Ob7InmChWi4bC6XPO1lt4BJEqdY4UToRTgE=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791442994; c=relaxed/simple;
	bh=SL9bTUfn/hx2Qb3HKpr2J7B+rY/psLMm6SxP2dKw5nU=;
	h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=VpZdRmRqwgIVlHT8cJcP+Bscmz66IebqMxFogLLpW1p8e41cBmhgKODVFYHKubppPvmpPrS9+WL7E//h4pbpCuI+NM7A5oOPUHFF9gGn1fhDqTvONRCo0Tim6nm75cg52g7Wvag8cEPA7yuoELX7WVqpPxpW4gjzhHtDn2kQwK4=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realsil.com.cn; spf=pass smtp.mailfrom=realsil.com.cn; dkim=pass (2048-bit key) header.d=realsil.com.cn header.i=@realsil.com.cn header.b=uXjspZud; arc=none smtp.client-ip=211.75.126.72
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realsil.com.cn
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realsil.com.cn
X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 6986vOqrD281931, This message is accepted by code: ctloc85258
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realsil.com.cn;
	s=dkim; t=1791442645;
	bh=LETy6hp2X+5wWgTIxpGnGUUbTjpXUSM/PHd01b6dAsk=;
	h=From:To:CC:Subject:Date:Message-ID:MIME-Version:
	 Content-Transfer-Encoding:Content-Type;
	b=uXjspZud6YCPWefn2fHc5RRkFL8nXQhTr8YPE7TU8YM/TIFk3FBByhRftxwpU6+a3
	 Hj3O3O7bGAe2KRE1dHkgKiJ61eD5R8JQRK0tQ4OGUUUI/c8Xumt6cDtZ7tCmRz0NLp
	 0d7wjuBeQVf5ZEEzN1+JjT++g39D1zHHLly+Gl8U9iWh9+S8czbPnuOvhRvDkK5LV3
	 5dOcMerrVAwVl/cBJuiSxCCCH69F6F7683AdzSzTUn/XAwFqCgBxpdyjrsw1mHWqi2
	 LZvAwQLn4PKhwNVdO0WIMY8QwPWTwBswMehckVJ/x/CGoHHPyIf4slIUrqxzaZ/e9R
	 l2ntfdFdSao1A==
X-Received: from RS-EX-MBS4.realsil.com.cn ([172.29.17.104])
	by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 6986vOqrD281931
	(version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL);
	Thu, 8 Oct 2026 14:57:25 +0800
X-Received: from RS-EX-MBS1.realsil.com.cn (172.29.17.101) by
 RS-EX-MBS4.realsil.com.cn (172.29.17.104) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.2.2562.49; Thu, 8 Oct 2026 14:57:25 +0800
X-Received: from 172.29.37.154 (172.29.37.152) by RS-EX-MBS1.realsil.com.cn
 (172.29.17.101) with Microsoft SMTP Server id 15.2.2562.49 via Frontend
 Transport; Thu, 8 Oct 2026 14:57:25 +0800
X-CC: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux@armlinux.org.uk>, Javen Xu <javen_xu@realsil.com.cn>
X-Mailer: git-send-email 2.50.1.windows.1
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>