Software flow offloading and statistics

I using OpenWrt 23.05.5 on an EA8500 but have found that when I enable software flow offloading the download statistics from collectd fail. I assume due to only collecting the first packet of data as it passes through the firewall.

I am not at all sure about the fw4 settings but I had read online this command would fix this issue in the past.

nft add flowtable inet fw4 ft { counter }

However, this generates the following error which I don't understand.

Error: missing hook and priority in flowtable declaration
add flowtable inet fw4 ft { counter }

With software flow offloading enabled, I list the flowtables and get the following

nft list flowtables
table inet fw4 {
	flowtable ft {
		hook ingress priority filter
		devices = { eth0, eth1, phy0-ap0, phy0-ap1, phy1-ap0, phy1-ap1, pppoe-wan }
		counter
	}
}
table inet banIP {
}

I am not sure if this is broken or if statistics are not compatible with software flow offloading. Any advice please?

Try the new version 24 when available. I believe that's been worked on.

See:

OK, I will try it. thanks for replying

1 Like

Flowtable returns counters only when connection is returned to slowpath including closed. Day in youtube ewill give you one second at 1 Tbps.

2 Likes