Starli0n Posted March 29, 2021 Share Posted March 29, 2021 Hi, I do not know how to activate the TSL kernel module (ktsl) on Unraid 6.9.1. I already found some post but seems to be outdated. I tried: $ modprobe tls modprobe: FATAL: Module tls not found in directory /lib/modules/5.10.21-Unraid So it seems that Unraid 6.9.1 is based on linux kernel 5.10.21. The TLS feature seems to be activated since linux kernel 4.13 and should be enable with those flags (CONFIG_TLS=y and CONFIG_TLS_DEVICE=y) I learnt that Unraid is base on https://packages.slackware.com but I do not know on which version ? Nor if it is 64 bits or not ? Does someone have any idea to achieve that ? Thanks Quote Link to comment
doron Posted March 29, 2021 Share Posted March 29, 2021 It appears that Unraid 6.9.1's kernel does not have CONFIG_TLS set. When it is set, the way to activate offload seems to be: ethtool -K ethX tls-hw-tx-offload on Quote Link to comment
ich777 Posted March 30, 2021 Share Posted March 30, 2021 6 hours ago, Starli0n said: Nor if it is 64 bits or not ? Unraid only runs on systems that actually support the 64bit instruction set, yes it is 64bit. 6 hours ago, Starli0n said: Does someone have any idea to achieve that ? Search for the Unraid-Kernel-Helper and you can customize Unraid how you like it, but you have to enable the Custom build mode and do it by hand with the provided build script. 6 hours ago, Starli0n said: I do not know how to activate the TSL kernel module (ktsl) on Unraid 6.9.1. You know that this can lead to many problems and also to Kernel panics? HW offload is a little complicated in Linux and some say that is even not fully supported... Quote Link to comment
Starli0n Posted March 30, 2021 Author Share Posted March 30, 2021 20 hours ago, doron said: ethtool -K ethX tls-hw-tx-offload on Thank you @doron, I did not know this command Quote Link to comment
Starli0n Posted March 30, 2021 Author Share Posted March 30, 2021 Thank you @ich777, I thought to avoid rebuilding the kernel as I just want a module but I think I will not be able to do otherwise. Are you sure that activate this feature could result a Kernel panic as it seems that ktls is activated out of the box on other distro ? Quote Link to comment
Starli0n Posted March 30, 2021 Author Share Posted March 30, 2021 @ich777, I just realize that you are the author of the module. I built the kernel in Custom mode and I added the two variables at the beginning of the script: export CONFIG_TLS=y export CONFIG_TLS_DEVICE=y it seems to work fine but I do not see the TLS module in a separate file in the output dir. Does it means that something went wrong or the modules are directly included into the main files ? My aim would be not to replace the whole kernel but only to install/add the ktls compiled module. Do you have any advice on this ? Quote Link to comment
doron Posted March 30, 2021 Share Posted March 30, 2021 2 hours ago, Starli0n said: export CONFIG_TLS=y export CONFIG_TLS_DEVICE=y it seems to work fine but I do not see the TLS module in a separate file in the output dir. Does it means that something went wrong or the modules are directly included into the main files ? If you want it as a separate module, you need to specify export CONFIG_TLS_DEVICE=m When you specify it as "y", it is compiled into the kernel (becomes part of it). 1 Quote Link to comment
Starli0n Posted March 31, 2021 Author Share Posted March 31, 2021 Thank you, I did not know the 'm' config, so I use this config: export CONFIG_TLS=y export CONFIG_TLS_DEVICE=m But the file seems not to be generated nor the "*.ko" files. I attached the log, if someone can help me. build-tls.log Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.