Missing act_mirred module?

Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.)
Author Message
7heblackwolf
DD-WRT User


Joined: 21 Nov 2019
Posts: 66

PostPosted: Mon Jul 12, 2021 0:46    Post subject: Missing act_mirred module? Reply with quote
Hi there, I'm trying to set a custom Cake implementation, and after a couple of unsuccessful attempts, contacted the Cake mantainers for some support.

As we were going step by step, some modules were required to make things work. ifb, which is using to create a dummy interface in order to make cake work on ingoing traffic. And act_mirred, which is used to forward the traffic from the wan interface to this dummy device.

I can modprobe ifb without problem, but the issue comes when I try to load act_mirred, returning:
Quote:
modprobe: module act_mirred not found
modprobe: failed to load module act_mirred: No such file or directory


There's a way to load this module in order to have a fully working cake implementation? It was renamed or removed? I did this in the past on dd-wrt and I don't remember finding this issue.

Btw, I can set a qdisc on egress (no ifb required in this case), and it's working pretty snappy on upload.

You should ask "why you're trying to set cake when cake is already an option in QoS settings?". Well, yes, but no. Afaik, the current dd-wrt implementation just use the HTB in order to limit the bandwidth and then cake is applied in order to make the fairness magic work. Also, is using besteffort mode which is ok, but could be a little better. I'm trying to get rid of HTB and set cake the right way.

Ty in advance.

_________________
Linksys WRT3200ACM
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Mon Jul 12, 2021 1:12    Post subject: Reply with quote
If you're still using 41954, you need to update to something newer than 43382 which is when the latest cake code (at the time - Jun 10, 2020) was merged. I see there have been a few commits since then. The DD-WRT implementation is build out-of-kernel-tree. I am back-tracking commits for mvbeu for the 4.9 kernel, but so far, CONFIG_NET_ACT_MIRRED is compiled into the kernel itself, not as a module.

https://svn.dd-wrt.com/browser/src/linux/universal/linux-4.9/.config_mvebu?rev=42658#L1107

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
7heblackwolf
DD-WRT User


Joined: 21 Nov 2019
Posts: 66

PostPosted: Mon Jul 12, 2021 1:26    Post subject: Reply with quote
kernel-panic69 wrote:
If you're still using 41954, you need to update to something newer than 43382 which is when the latest cake code (at the time - Jun 10, 2020) was merged. I see there have been a few commits since then. The DD-WRT implementation is build out-of-kernel-tree. I am back-tracking commits for mvbeu for the 4.9 kernel, but so far, CONFIG_NET_ACT_MIRRED is compiled into the kernel itself, not as a module.

https://svn.dd-wrt.com/browser/src/linux/universal/linux-4.9/.config_mvebu?rev=42658#L1107


Nah, the footer is old, I'm using 47000 btw. But that wasn't the problem.

Figured out.

If someone is curious, you can have a peek in here: https://github.com/dtaht/sch_cake/issues/151

_________________
Linksys WRT3200ACM
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Mon Jul 12, 2021 1:37    Post subject: Reply with quote
Still does not negate the fact that there are a few commits that aren't blatantly obvious to me that they have been merged from that git repo. I've emailed BrainSlayer about this, hopefully he will peek in here and comment. Thanks for the update!
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2975
Location: Germany

PostPosted: Mon Jul 12, 2021 11:30    Post subject: Reply with quote
if I may join

Now I wanted to try the whole thing on the R7800.

root@DD-WRT:~# modprobe ifb
modprobe: module ifb not found


https://svn.dd-wrt.com/browser/src/linux/universal/linux-4.9/.config_ipq806x

# CONFIG_IFB is not set

?


@kernel-panic69

can you ask ?
or should I ask myself
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14221
Location: Texas, USA

PostPosted: Mon Jul 12, 2021 12:00    Post subject: Reply with quote
I'm surprised that CONFIG_IFB is not set for R7800, EA8500, etc. but is set for Marvells. I just sent BrainSlayer and email about it.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Mon Jul 12, 2021 12:15    Post subject: Reply with quote
The config file is a starting point and is modified in several places before the actual compiling.

That said I do not see it set in the usual places (and it is missing of course) so curious about BS's reaction.

I think IFB is an alternative to tc filters for handling ingress traffic but I am far from an expert in this field.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2975
Location: Germany

PostPosted: Mon Jul 12, 2021 12:43    Post subject: Reply with quote
I am also not a QoS expert but IFB is not available even not built in
I just wanted to try the simple Cake without HTB with dd-wrt.
I had already asked at the time of introduction if we can not just get the normal Cake (with the simple cake and OpenWRT I have a much better bufferbloat)

Must be somehow also possible to get such values with DD-WRT.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12884
Location: Netherlands

PostPosted: Mon Jul 12, 2021 14:23    Post subject: Reply with quote
I compiled ifb.ko for 4.9.274 maybe you can put it to use if BS does not come up with the goodies (which I am sure he will Smile )

I have not tested it myself so no guarantees

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 2975
Location: Germany

PostPosted: Mon Jul 12, 2021 16:48    Post subject: Reply with quote
thanks for compiling, works!
first dsl report test >

http://www.dslreports.com/speedtest/68924383

good latency

as said is the first test, still need to adjust the bandwidth (is a bit too low)

I hope BS still enables this in the kernel config.
So it's a bit tricky to load the module with the ro filesystem
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Marvell MVEBU based Hardware (WRT1900AC etc.) All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum