realtek-r8125-dkms icon indicating copy to clipboard operation
realtek-r8125-dkms copied to clipboard

大佬下一个版本更新能否开启rx和tx

Open 8890564 opened this issue 3 years ago • 25 comments

大佬下一个版本更新能否开启rx和tx,谢谢!

8890564 avatar Jun 09 '22 02:06 8890564

Hello,

I translated using Google 😅 => Can you enable rx and tx in the next version update, thank you!

What's the enabling rx and tx? Do you mean that a feature using rx/tx?

If you want a new feature from the driver, I'm sorry that this package is for the DKMS package of the Realtek r8125 Linux driver so I can't support it. 😃

awesometic avatar Jun 09 '22 05:06 awesometic

感谢您的回复。好像从9.007.01开始官方驱动默认关闭了RSS(rx 的多队列支持,)也关闭了TX的多队列,RTL8125B硬件上是支持32个队列的,Makefile参数ENABLE_MULTIPLE_TX_QUEUE = n和ENABLE_RSS_SUPPORT =n 实测开启后仍支持RSS。

8890564 avatar Jun 09 '22 10:06 8890564

Ah okay, I understand. Then, do you want a package that enabled ENABLE_MULTIPLE_TX_QUEUE and ENABLE_RSS_SUPPORT?

I don't know them exactly, is there any side effect with them? Or, you can build the driver yourself after cloning my repository.

awesometic avatar Jun 10 '22 02:06 awesometic

Ah okay, I understand. Then, do you want a package that enabled ENABLE_MULTIPLE_TX_QUEUE and ENABLE_RSS_SUPPORT?

I don't know them exactly, is there any side effect with them? Or, you can build the driver yourself after cloning my repository.

Actually he means that change ENABLE_MULTIPLE_TX_QUEUE = n ENABLE_RSS_SUPPORT = n from n to y in file realtek-r8125-dkms/src/Makefile Because it‘s disable by default from 9.007.01 But yeah,just edit this make file after cloning is okay as well~

pikachullk avatar Jul 05 '22 20:07 pikachullk

Thanks, I didn't notice that is disabled since 9.007.01.

I can prepare another package besides the existing package. Then I think I should gather the features people would want, such as disabling ASPM.

Is there another feature that can be enabled in the new package? The name would be, realtek-r8125-dkms-tune, is it good in English?

awesometic avatar Jul 08 '22 02:07 awesometic

Thanks, I didn't notice that is disabled since 9.007.01.

I can prepare another package besides the existing package. Then I think I should gather the features people would want, such as disabling ASPM.

Is there another feature that can be enabled in the new package? The name would be, realtek-r8125-dkms-tune, is it good in English?

That sounds awesome bro!!! Would you please notice us as soon as this "realtek-r8125-dkms-tune" release~ thank you for your driver again~

pikachullk avatar Jul 08 '22 14:07 pikachullk

Thanks, I didn't notice that is disabled since 9.007.01.

I can prepare another package besides the existing package. Then I think I should gather the features people would want, such as disabling ASPM.

Is there another feature that can be enabled in the new package? The name would be, realtek-r8125-dkms-tune, is it good in English?

What's more,I found that no matter if I set CONFIG_ASPM = y or n After I install the driver~ when I type~ modinfo r8125 there still showing parm: aspm:Enable ASPM. (int) Is that mean aspm is fail to disable? So what should I do to disable it?

pikachullk avatar Jul 08 '22 15:07 pikachullk

2.5G Ethernet LINUX driver r8125 for kernel up to 5.19 | 9.009.02

crazyshitass avatar Jul 10 '22 12:07 crazyshitass

Thanks, I didn't notice that is disabled since 9.007.01. I can prepare another package besides the existing package. Then I think I should gather the features people would want, such as disabling ASPM. Is there another feature that can be enabled in the new package? The name would be, realtek-r8125-dkms-tune, is it good in English?

What's more,I found that no matter if I set CONFIG_ASPM = y or n After I install the driver~ when I type~ modinfo r8125 there still showing parm: aspm:Enable ASPM. (int) Is that mean aspm is fail to disable? So what should I do to disable it?

It looks like that parm list in modinfo shows us the available module parameters, not the current value. In the source codes, it lists all the parameters regardless of which parameter actually turns on or off now. We can get the parameters using sysfs but there are no parameter files for r8125.

But by editing the configs in src/Makefile, it should take effect when the compile time.

awesometic avatar Jul 10 '22 14:07 awesometic

2.5G Ethernet LINUX driver r8125 for kernel up to 5.19 | 9.009.02

Thanks for the information. I updated to the latest one. :)

awesometic avatar Jul 10 '22 14:07 awesometic

realtek-r8125-dkms_9.009.02-1_amd64.deb.zip I personally build one with ENABLE_MULTIPLE_TX_QUEUE = y ,ENABLE_RSS_SUPPORT = y, CONFIG_ASPM = n. JUST UNZIP the file and install. Hope it works :)

crazyshitass avatar Jul 12 '22 08:07 crazyshitass

realtek-r8125-dkms_9.009.02-1_amd64.deb.zip I personally build one with ENABLE_MULTIPLE_TX_QUEUE = y ,ENABLE_RSS_SUPPORT = y, CONFIG_ASPM = n. JUST UNZIP the file and install. Hope it works :)

I appreciate it !!!My sweet crazyshitass!!! This really help!!Thanks again & again!!!

pikachullk avatar Jul 12 '22 13:07 pikachullk

2.5G Ethernet LINUX driver r8125 for kernel up to 5.19 | 9.009.02

Thanks for the information. I updated to the latest one. :)

In the next update, it is recommended to provide amd64.deb with RSS enabled, thank you

CONFIG_ASPM = n

aspm也关闭了,这玩意不关闭容易断流

LsnmxNB avatar Sep 20 '22 18:09 LsnmxNB

hello! 9.010.01 has just been released. Thankyou for your project!

barkmann44 avatar Nov 04 '22 21:11 barkmann44

可以了,谢谢

Snipaste_2022-11-09_16-51-08 Snipaste_2022-11-09_16-50-25

LsnmxNB avatar Nov 09 '22 08:11 LsnmxNB

可以了,谢谢

Snipaste_2022-11-09_16-51-08 Snipaste_2022-11-09_16-50-25

你好,请问这个realtek-r8125-dkms_9.010.01-1版本那里可以下载啊? 在releases里面下载的版本Makefile文档里面CONFIG_ASPM还是y其他参数也没有修改。

smdx avatar Dec 15 '22 06:12 smdx

你好,请问这个realtek-r8125-dkms_9.010.01-1版本那里可以下载啊? 在releases里面下载的版本Makefile文档里面CONFIG_ASPM还是y其他参数也没有修改。

There isn't yet. I need to prepare the script for releasing both stock one and the tuned one simultaneously, with the same PPA repository.

Temporarily, I attached the tuned version here for you. Edited 3 configs,

  • CONFIG_ASPM to n
  • ENABLE_MULTIPLE_TX_QUEUE to y
  • ENABLE_RSS_SUPPORT to y

realtek-r8125-dkms_9.010.01-1_amd64.deb.zip

Please tell me if it doesn't work as it should with the edited configs :)

awesometic avatar Dec 15 '22 06:12 awesometic

你好,请问这个realtek-r8125-dkms_9.010.01-1版本那里可以下载啊? 在releases里面下载的版本Makefile文档里面CONFIG_ASPM还是y其他参数也没有修改。

There isn't yet. I need to prepare the script for releasing both stock one and the tuned one simultaneously, with the same PPA repository.

Temporarily, I attached the tuned version here for you. Edited 3 configs,

  • CONFIG_ASPM to n
  • ENABLE_MULTIPLE_TX_QUEUE to y
  • ENABLE_RSS_SUPPORT to y

realtek-r8125-dkms_9.010.01-1_amd64.deb.zip

Please tell me if it doesn't work as it should with the edited configs :)

The network service cannot be interrupted yet, I will install this driver later. thank you very much

smdx avatar Dec 15 '22 07:12 smdx

Hello, The driver release version has reached 9.010.01-2. Can you take the time to upload the edited version? thank you very much.

  • CONFIG_ASPM to n
  • ENABLE_MULTIPLE_TX_QUEUE to y
  • ENABLE_RSS_SUPPORT to y

smdx avatar Dec 27 '22 08:12 smdx

Hello, The driver release version has reached 9.010.01-2. Can you take the time to upload the edited version? thank you very much.

* CONFIG_ASPM to n

* ENABLE_MULTIPLE_TX_QUEUE to y

* ENABLE_RSS_SUPPORT to y

Sure, here you are.

realtek-r8125-dkms_9.010.01-2_amd64.zip

awesometic avatar Dec 28 '22 01:12 awesometic

That's great, thank you very much.

smdx avatar Dec 28 '22 01:12 smdx

realtek官方版本从9.007.01开始默认关闭了RSS,r8125_n.c以下代码片段确定了EnableRss为0,关闭了RSS功能。最终只能使用1个rx队列 2个tx队列了,HwSuppNumTxQueues还是2。

#ifndef ENABLE_LIB_SUPPORT         switch (tp->mcfg) {         case CFG_METHOD_4:         case CFG_METHOD_5:         case CFG_METHOD_7:                 if (tp->HwSuppIsrVer == 2) {                         tp->RequireRduNonStopPatch = 1;                        tp->EnableRss = 0;                }                 break;        } #endif

licocofan avatar Mar 24 '23 14:03 licocofan

Thanks, I didn't notice that is disabled since 9.007.01. I can prepare another package besides the existing package. Then I think I should gather the features people would want, such as disabling ASPM. Is there another feature that can be enabled in the new package? The name would be, realtek-r8125-dkms-tune, is it good in English?

What's more,I found that no matter if I set CONFIG_ASPM = y or n After I install the driver~ when I type~ modinfo r8125 there still showing parm: aspm:Enable ASPM. (int) Is that mean aspm is fail to disable? So what should I do to disable it?

I have the same problem on version 9.011.01 and 9.010.01 no matter i set the CONFIG_ASPM to 'y' or 'n'. modinfo always show "parm: aspm:Enable ASPM. (int)"

root@pve:/usr/src/r8125-9.011.01/src# modinfo r8215
modinfo: ERROR: Module r8215 not found.
root@pve:/usr/src/r8125-9.011.01/src# modinfo r8125
filename:       /lib/modules/5.15.104-1-pve/updates/dkms/r8125.ko
version:        9.011.01-NAPI-RSS
license:        GPL
description:    Realtek RTL8125 2.5Gigabit Ethernet driver
author:         Realtek and the Linux r8125 crew <[email protected]>
srcversion:     E26366B3A512ACEBC7008DD
alias:          pci:v000010ECd00005000sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008126sv*sd*bc*sc*i*
alias:          pci:v000010ECd00003000sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008162sv*sd*bc*sc*i*
alias:          pci:v000010ECd00008125sv*sd*bc*sc*i*
depends:        
retpoline:      Y
name:           r8125
vermagic:       5.15.104-1-pve SMP mod_unload modversions 
parm:           speed_mode:force phy operation. Deprecated by ethtool (8). (uint)
parm:           duplex_mode:force phy operation. Deprecated by ethtool (8). (uint)
parm:           autoneg_mode:force phy operation. Deprecated by ethtool (8). (uint)
parm:           advertising_mode:force phy operation. Deprecated by ethtool (8). (uint)
parm:           aspm:Enable ASPM. (int)
parm:           s5wol:Enable Shutdown Wake On Lan. (int)
parm:           s5_keep_curr_mac:Enable Shutdown Keep Current MAC Address. (int)
parm:           use_dac:Enable PCI DAC. Unsafe on 32 bit PCI slot. (int)
parm:           timer_count:Timer Interrupt Interval. (int)
parm:           eee_enable:Enable Energy Efficient Ethernet. (int)
parm:           hwoptimize:Enable HW optimization function. (ulong)
parm:           s0_magic_packet:Enable S0 Magic Packet. (int)
parm:           tx_no_close_enable:Enable TX No Close. (int)
parm:           enable_ptp_master_mode:Enable PTP Master Mode. (int)
parm:           disable_pm_support:Disable PM support. (int)
parm:           enable_double_vlan:Enable Double VLAN. (int)
parm:           debug:Debug verbosity level (0=none, ..., 16=all) (int)

suhdd avatar May 05 '23 16:05 suhdd

That message is from MODULE_PARM_DESC function, which is for describing the available parameters. It may not be the current state.

By the way, we couldn't know the currently activated parameters. It should be under the/sys/module/r8125 directory but there is no parameters thing 🤔

awesometic avatar May 08 '23 03:05 awesometic