From: Howard Wang <howard_wang@realsil.com.cn>
To: <dev@dpdk.org>
Cc: <pro_nic_dpdk@realtek.com>, Howard Wang <howard_wang@realsil.com.cn>
Subject: [PATCH v1 02/12] net/r8169: tune RX desc fetch num for 8126 and 8127
Date: Mon, 9 Feb 2026 16:54:52 +0800 [thread overview]
Message-ID: <20260209085502.26722-3-howard_wang@realsil.com.cn> (raw)
In-Reply-To: <20260209085502.26722-1-howard_wang@realsil.com.cn>
For RTL8126: Tune RX descriptor fetch number to 20.
For RTL8127: Tune RX descriptor fetch number to 12.
Signed-off-by: Howard Wang <howard_wang@realsil.com.cn>
---
drivers/net/r8169/base/rtl8126a.c | 4 ++--
drivers/net/r8169/base/rtl8127.c | 2 +-
drivers/net/r8169/r8169_compat.h | 2 ++
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/net/r8169/base/rtl8126a.c b/drivers/net/r8169/base/rtl8126a.c
index 047ef83587..58b1cc2664 100644
--- a/drivers/net/r8169/base/rtl8126a.c
+++ b/drivers/net/r8169/base/rtl8126a.c
@@ -14,12 +14,12 @@ hw_init_rxcfg_8126a(struct rtl_hw *hw)
{
switch (hw->mcfg) {
case CFG_METHOD_69:
- RTL_W32(hw, RxConfig, Rx_Fetch_Number_8 | RxCfg_pause_slot_en |
+ RTL_W32(hw, RxConfig, Rx_Fetch_Number_20 | RxCfg_pause_slot_en |
(RX_DMA_BURST_512 << RxCfgDMAShift));
break;
case CFG_METHOD_70:
case CFG_METHOD_71:
- RTL_W32(hw, RxConfig, Rx_Fetch_Number_8 | Rx_Close_Multiple |
+ RTL_W32(hw, RxConfig, Rx_Fetch_Number_20 | Rx_Close_Multiple |
RxCfg_pause_slot_en | (RX_DMA_BURST_512 << RxCfgDMAShift));
break;
}
diff --git a/drivers/net/r8169/base/rtl8127.c b/drivers/net/r8169/base/rtl8127.c
index 9e79255e3c..26c2cfd25b 100644
--- a/drivers/net/r8169/base/rtl8127.c
+++ b/drivers/net/r8169/base/rtl8127.c
@@ -14,7 +14,7 @@ hw_init_rxcfg_8127(struct rtl_hw *hw)
{
switch (hw->mcfg) {
case CFG_METHOD_91:
- RTL_W32(hw, RxConfig, Rx_Fetch_Number_8 | Rx_Close_Multiple |
+ RTL_W32(hw, RxConfig, Rx_Fetch_Number_12 | Rx_Close_Multiple |
RxCfg_pause_slot_en | (RX_DMA_BURST_512 << RxCfgDMAShift));
break;
}
diff --git a/drivers/net/r8169/r8169_compat.h b/drivers/net/r8169/r8169_compat.h
index 9163c7f59f..ab6a984a54 100644
--- a/drivers/net/r8169/r8169_compat.h
+++ b/drivers/net/r8169/r8169_compat.h
@@ -563,6 +563,8 @@ enum RTL_chipset_name {
#define TX_DMA_BURST_16 0
#define InterFrameGap 0x03 /* 3 means InterFrameGap = the shortest one */
#define Rx_Fetch_Number_8 (1 << 30)
+#define Rx_Fetch_Number_12 (BIT_30 | BIT_29)
+#define Rx_Fetch_Number_20 (BIT_31 | BIT_29)
#define Rx_Close_Multiple (1 << 21)
#define RxEarly_off_V2 (1 << 11)
#define Rx_Single_fetch_V2 (1 << 14)
--
2.34.1
next prev parent reply other threads:[~2026-02-09 8:55 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-09 8:54 [PATCH v1 00/12] net/r8169: update driver with new HW support and fixes Howard Wang
2026-02-09 8:54 ` [PATCH v1 01/12] net/r8169: fix NULL pointer dereference in rtl8168fp_ops Howard Wang
2026-02-09 8:54 ` Howard Wang [this message]
2026-02-09 8:54 ` [PATCH v1 03/12] net/r8169: add support for RTL8168KD Howard Wang
2026-02-09 8:54 ` [PATCH v1 04/12] net/r8169: update hardware configurations for 8127 Howard Wang
2026-02-09 8:54 ` [PATCH v1 05/12] net/r8169: adjust jumbo frame size limit for non-1G cards Howard Wang
2026-02-09 8:54 ` [PATCH v1 06/12] net/r8169: remove support for CFG_METHOD_69 Howard Wang
2026-02-09 8:54 ` [PATCH v1 07/12] net/r8169: update hardware configurations for 8126 Howard Wang
2026-02-09 8:54 ` [PATCH v1 08/12] net/r8169: update hardware configurations for 8125 Howard Wang
2026-02-09 8:54 ` [PATCH v1 09/12] net/r8169: add support for RTL9151 Howard Wang
2026-02-09 8:55 ` [PATCH v1 10/12] net/r8169: add support for RTL8125K Howard Wang
2026-02-09 8:55 ` [PATCH v1 11/12] net/r8169: fix one bug about RTL8168KB Howard Wang
2026-02-09 8:55 ` [PATCH v1 12/12] net/r8169: ensure the old mapping is used Howard Wang
2026-02-09 19:26 ` [PATCH v1 00/12] net/r8169: update driver with new HW support and fixes Stephen Hemminger
2026-02-09 19:44 ` Stephen Hemminger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260209085502.26722-3-howard_wang@realsil.com.cn \
--to=howard_wang@realsil.com.cn \
--cc=dev@dpdk.org \
--cc=pro_nic_dpdk@realtek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox