My message was a reply to nbds comment above asking me for a packet dump.
Its not related to SQM at all. (Im blaming discourse for the bad visibility of that fact)
On a sidenote sqm and hw offloading together will not work as long as the sqm stuff is not done by the offloading hardware itself (so probably never.)
And im using the latest version that is available on the master branch of openwrt aka lede.
Just making sure: is there any kmod package I should be selecting, or is flowoffload baked inside the base code? (or another package I'm not aware of)
I'm trying to replace NSS stack with this as a best option given that I'm not a programmer and can't port the R7800 version of the NSS stack to my device.
Does Witi-mt7621 board has openwrt hardware nat support?
I use openwrt v18.06.0-rc1 from github.
In /etc/config/firewall at default section strings added are:
option flow_offloading 1
option flow_offloading_hw 1
kmod-ipt-offload compiled.
But I see 100% CPU utilization and network bandwidth is 4,8 Mb/sec at packets forwarding.
which connections are offloaded (soft offload) ?
Obviously connections that are are getting forwarded and are in ctstate RELATED,ESTABLISHED
But when i invoke:
cat /proc/net/nf_conntrack | grep ESTABLISHED | grep "wanip" | wc -l
That gives me around 110 connections atm.
cat /proc/net/nf_conntrack | grep OFFLOAD | wc -l
Shows 8 connections are being offloded.
So why is the number offloaded connections so low?
There is a setting for the number of packages on which a connection gets offloaded... So all non offloaded connection didn´t reach the minimum transmitted packages... At the moment i don´t know where to set the minimum needed transmitted packages, but i think the default value is ok.
I dont know...
The offloaded connections range from 2 to few thousands packets.
But the none offloaded connections also have few thousands packets.
So i don't know why they aren't offloaded.
Which image are you using? snapshot, 18.06 or self compiled?
I use Openwrt from https://github.com/openwrt/openwrt self compiled.
I try branch 'master' and 'v18.06.0-rc1'.
Now I look dts file target/linux/ramips/dts/mt7621.dts
I am not sure that string compatible = "mediatek,mt7623-hnat"; is correct.
Maybe mt7621-hnat, I try recompile with this string but harrdware nat still doesn't work.