# How does (software) flow\_offloading interact with SQM?

**URL:** <https://forum.openwrt.org/t/how-does-software-flow-offloading-interact-with-sqm/114310>\
**Category:** Installing and Using OpenWrt\
**Created:** [December 11, 2021, 1:57am UTC](https://forum.openwrt.org/t/how-does-software-flow-offloading-interact-with-sqm/114310 "2021-12-11T01:57:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![StepSis](https://forum.openwrt.org/user_avatar/forum.openwrt.org/stepsis/32/67753_2.png) [@StepSis](https://forum.openwrt.org/u/StepSis)\
**Post date:** [March 31, 2023, 11:10am UTC](https://forum.openwrt.org/t/how-does-software-flow-offloading-interact-with-sqm/114310/2 "2023-03-31T11:10:32Z")

</div>

Wish this would see more development ... 😶

I found couple of interesting threads:

> [@Software flow offloading implications](https://forum.openwrt.org/t/software-flow-offloading-implications/90957/29):
>
> I have to admit that I have no reliable information to share. However as far as I understand, software offloading should work with SQM as it tries to avoid other parts of the network stack higher up than mere qdiscs like sqm uses. Hardware flow offloading however will hide all packets from sqm, so the hardware offloading engine needs to offer its own qdiscs, like the NSS stuff on e.g. r7800 as far as I understand.

> [@Software flow offloading implications](https://forum.openwrt.org/t/software-flow-offloading-implications/90957/30):
>
> It's working if the SQM interface set as wan (device), but software flow offloading does not help with SQM if the interface set as pppoe-wan (tunnel). My test on my friend's FTTH line with 200/20 plan showed that Xiaomi Mi Router 4A Gigabit Edition is able to shape up to 150mbps using CAKE without software flow offloading and it's fine doing 200mbps with software flow offloading turned on. But I'm afraid Diffserv is not working when shaping is done on wan instead of pppoe-wan, every packet goes …

> [@SQM and HTB hardware offload](https://forum.openwrt.org/t/sqm-and-htb-hardware-offload/112046):
>
> Since kernel 5.12 HTB qdisc has an API for hardware offload. Mellanox is using this feature. Would it make sense to try and implement this for some of our targets? Using Hardware HTB in combination with software fq\_codel could allow us to do SQM at higher rates?

I am not a developer but if there is any reading this , what do you think about this?  
We are approaching territory where SQM becomes impossible on all but highest end hardware... You need a beast of a router to work with gigabit ethernet (Let's not even talk about higher speeds - 5 or even 10 gigabit, straight up impossible)

---

_[View the full topic](https://forum.openwrt.org/t/how-does-software-flow-offloading-interact-with-sqm/114310)._
