From mboxrd@z Thu Jan 1 00:00:00 1970 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 30FEE2F2607; Fri, 8 May 2026 12:18:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778242727; cv=none; b=R/52FzgS8StxEfmat4I6qxW6tZn8GLRtVIZPcWouYAVc/4iyoTp9fKJqWFEGfRuGTYuZAGVXDaKSc1z+E6vBzVEPvtzRbZWijaEkj1aDV8APcOi92qoQW8ej0zkJU+0oqqUQMBaE3YEWb1LTUVrBrBlJfCa91M06xmSzdvL72u0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778242727; c=relaxed/simple; bh=3Phk+l9sIadOVMIGGEmyNnmvGhN+U8bSEBRJfl1LHlc=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=X2/Jn/XindAFruePUfnFEPNCrWC1INTjMIPmKqfk/KLvmQyXdH3RBwMP4G+AxHNRNQT0FWR2RsoxXgC1d8y9NPkc0Co4+hhjqEKVSfCd5kIFIuggPJ7ihA6u2u5XwCb5hnQtZ8whYW9U8yjDQCWpgeSDiovMjIQ6nAanOk5vNQM= 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=HtANS3+M; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realsil.com.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realsil.com.cn Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=realsil.com.cn header.i=@realsil.com.cn header.b="HtANS3+M" X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 648CIBqmC3782632, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realsil.com.cn; s=dkim; t=1778242692; bh=brSc1Jtay5WqHkQfXSBVL3n9kGofsNFKoYolWZ4W2y0=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:Content-Type; b=HtANS3+MMfvJ0rdGt654Lg2iRC9asP+I2YMzGMZFKF1S4vz6QTIGlV/EtmfAJt2u0 gUlAvfXauuHgakN2AgPG5yaL9oVaJKU78sgHYaKb2Nq4L5Nm6Q7dYDVBY5eyb5uBEh INjZf2FJOz6TdyP1O1o8WzZ08+DMR0EZXVTYw+LOcXQz9WjFgWo4l4uHUeyWUSwssv 3q9ubx7vKcn1fZx29TySYlx3pYc8VRF9VJVj9wiEAD6deBsPw0fZ4YyAzrw2sWCtOe LpU7RN5+lbhZy06J/WA5GP7YHIocYCh9GDPSmYG88R8gcco48YlgbL9sWkFWG2GD2z d8V9EI3vJ42+A== Received: from RS-EX-MBS1.realsil.com.cn ([172.29.17.101]) by rtits2.realtek.com.tw (8.15.2/3.27/5.94) with ESMTPS id 648CIBqmC3782632 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 8 May 2026 20:18:12 +0800 Received: from RS-EX-MBS2.realsil.com.cn (172.29.17.102) by RS-EX-MBS1.realsil.com.cn (172.29.17.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.17; Fri, 8 May 2026 20:18:11 +0800 Received: from 172.29.37.154 (172.29.37.152) by RS-EX-MBS2.realsil.com.cn (172.29.17.102) with Microsoft SMTP Server id 15.2.2562.17 via Frontend Transport; Fri, 8 May 2026 20:18:11 +0800 From: javen To: , , , , , , , CC: , , Javen Xu Subject: [Patch net-next v2 0/7] r8169: add RSS support for RTL8127 Date: Fri, 8 May 2026 20:17:54 +0800 Message-ID: <20260508121802.2010-1-javen_xu@realsil.com.cn> X-Mailer: git-send-email 2.50.1.windows.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain From: Javen Xu 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: add support for multi irqs r8169: add support for multi rx queues r8169: add support for new interrupt mapping r8169: enable new interrupt mapping r8169: add support and enable rss r8169: move struct ethtool_ops r8169: add support for ethtool drivers/net/ethernet/realtek/r8169_main.c | 1159 ++++++++++++++++++--- 1 file changed, 1034 insertions(+), 125 deletions(-) -- 2.43.0