public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Javen <javen_xu@realsil.com.cn>
To: Heiner Kallweit <hkallweit1@gmail.com>
Cc: "andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
	"davem@davemloft.net" <davem@davemloft.net>,
	"edumazet@google.com" <edumazet@google.com>,
	"kuba@kernel.org" <kuba@kernel.org>,
	"pabeni@redhat.com" <pabeni@redhat.com>,
	"horms@kernel.org" <horms@kernel.org>,
	"netdev@vger.kernel.org" <netdev@vger.kernel.org>
Subject: RE: r8169: Discussion on implementing RSS support for r8169
Date: Fri, 20 Mar 2026 03:22:52 +0000	[thread overview]
Message-ID: <86784e19c4504c3ba49a9299701a2c1f@realsil.com.cn> (raw)
In-Reply-To: <e063ce5f-1789-49d0-880c-e4b6a40da9e1@gmail.com>

>On 19.03.2026 09:56, Javen wrote:
>> Hi, Heiner
>>
>> We are now planning to implement RSS support on r8169 driver. This will
>require significant changes to the existing driver architecture, so we want to
>discuss it with you.
>>
>Thanks for the question.
>I also once considered this, but decided against it, as I didn't see enough
>benefit justifying the significantly increased complexity of the driver. Even
>with a N100-based mini-pc I can easily saturate a 2.5Gbps link with the driver
>as-is.
>Any specific reason why you consider adding RSS support? Would be good to
>see a performance comparison as basis for a decision on for which chip
>versions RSS may provide a significant benefit.
>

The primary beneft of adding rss here is to reduce cpu load per core.

Since I currently only have one RTL8111ep and one RTL8127, I'm going to do a simple test.

Based on my iperf test from RTL8111ep to RTL8127:
	1. With rss: cpu load is distributed across 4 cores(1% ~ 2% each)
	2. Without rss: cpu load is concentrated on a single core(7% ~ 8%)

If test from RTL8127 to RTL8127, especially on platforms with weaker cpu, disabling rss will easily lead to cpu overload. 
That's the main reason we consider adding rss support for RTL8127.

I will show the result from RTL8127 to RTL8127 when I submit rss patch.

Thanks,
Javen Xu

>> Based on our vendor driver which can be fetched from Realtek, the key
>modifications will include:
>>
>>       1. Enable msix and updating the irq allocation mechanism
>>       2. Support multiple rx/tx queues
>>       3. Register multiple napi and update new interrupt mapping(isr/imr) for
>multi-queue
>>       4. Implement rx msix poll and rx interrupt function
>>       5. Implement ethtool callbacks for rss configuration
>>
>> Should we submit the changes above separately or submit them all at once?
>Or do you have any other suggestions?
>>
>As Andrew already said, please submit the patches in smaller, reviewable,
>chunks.
>Best tagged as RFC.
>
>> We want to align with you on the development and submission approach.
>>
>> Best regards,
>>
>> Javen Xu
>
>Heiner

  reply	other threads:[~2026-03-20  3:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-19  8:56 r8169: Discussion on implementing RSS support for r8169 Javen
2026-03-19 17:19 ` Andrew Lunn
2026-03-19 19:59 ` Heiner Kallweit
2026-03-20  3:22   ` Javen [this message]
2026-03-20  7:01     ` Heiner Kallweit

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=86784e19c4504c3ba49a9299701a2c1f@realsil.com.cn \
    --to=javen_xu@realsil.com.cn \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=hkallweit1@gmail.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.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