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 55147453A52; Mon, 28 Sep 2026 07:05:01 +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=1790579106; cv=none; b=PzcFoHlBM5OXy21QxLMLBWmSltXgpNemUJeMc8H6MoMXGcMs+d3/JRycY7OTeQfssoFsbl8wRPz+FIxA8/hc+yOFODY3Ht1KvsrKO8bF1S6O4WVex4auKgBU4oAmpF9dJA5kBTZ+Vp6cz8kxsCn7iPO1xkrKwV5Zx793Lb0Thbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790579106; c=relaxed/simple; bh=xW5HI047B2xMCce03u0tcIppx9S1Jln838V+U1kNKvM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=S3RbfacVWPsEoeJTeHNIb+OgrwHDHBYSjxaYDO08PKkZvfBTQ31Dc1VaUF7dXQyek9zi2J3KEOlj+7E0nRb+zHy6d0/6ts3InLX+CbLLguUkBbyXIdvqZ4gswnCEoHZa6RIrCJQZ+SFdN/+ecJkSg6d2edS4/ITOb7aOby8b5Fs= 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=b3vH9SdY; 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="b3vH9SdY" X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 68S74PmsC217875, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realsil.com.cn; s=dkim; t=1790579065; bh=k+MktGY3x7iMvh4/46AdR6V8IWjqceBQXvoQCZiTyjE=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:Content-Type; b=b3vH9SdYEVqvhuhDdD/d376jD445srvaPfccEDPiv3hE6IK/2/p3Ht1c+mUmmGxm0 Qq8FpfiXq6SEUwEADFyIJ1018/j/T9kIOytEoOBtbqqtZMGHgNUsEzQSOcibMEDyPV wqLrpEzFT6TWnhIDgr3+DKoZ6diy8JIrm/WB4M+xE/dZmdstv6fgc6vMCGm7YQVbue T8cxgiF0h+/XKmyLuL/pdpXTlWplAbIEEGchdyXFfg3SN1M5hYSTG6vfeJIw3Ir8oO jpylGWRAg26VZqgAJt0eUKEtV/qWmaKVLzNOVgDDvZdjI/Z9NOYB/kyRGuO7z5VMwg ybycJZZFhYe0A== Received: from RS-EX-MBS2.realsil.com.cn ([172.29.17.102]) by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 68S74PmsC217875 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 28 Sep 2026 15:04:25 +0800 Received: from RS-EX-MBS2.realsil.com.cn (172.29.17.102) by RS-EX-MBS2.realsil.com.cn (172.29.17.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.49; Mon, 28 Sep 2026 15:04:25 +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.49 via Frontend Transport; Mon, 28 Sep 2026 15:04:25 +0800 From: javen To: , , , , , , , CC: , , Javen Xu Subject: [PATCH net-next v15 0/7] r8169: add RSS support for RTL8127 Date: Mon, 28 Sep 2026 15:04:16 +0800 Message-ID: <20260928070423.202-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: prepare for multi irqs and napi r8169: refactor RX path to prepare for multi-queue 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 get_channel support for ethtool drivers/net/ethernet/realtek/r8169_main.c | 1119 ++++++++++++++++++--- 1 file changed, 970 insertions(+), 149 deletions(-) -- 2.43.0