How to check software offloading is working

Is there a way to verify software offloading is working?

Try [TP-Link EX220 v1] Upgrading and Switch kmod support - #3 by brada4.

3 Likes

I assume you want physical proof of this...
I recommend you test the transfer speed with and without "software offloading" enable/disable ...

if you can create/install two 2 PCs,
one connected to the WAN and one connected to the LAN,
you can test the transfer speed between the two,
so you can tell if and how much the "software offloading" affects it

ps: be careful not to install iperf on the router as the performance will be limited by the performance of the CPU on the router.

1 Like

Hi, I have a GL-MT3000 and I enabled WED:

root@GL-MT3000:~# cat /sys/module/mt7915e/parameters/wed_enable
Y

there're some entries in /sys/kernel/debug/ppe0/entries:

00464 UNB IPv4 5T orig=192.168.54.4:50853->157.148.61.140:443 new=0.0.0.0:0->0.0.0.0:0 eth=00:00:00:00:00:00->00:00:00:00:00:00 etype=0000 vlan=0,0 ib1=1000086a ib2=00000000 packets=0 bytes=0
00468 UNB IPv4 5T orig=192.168.54.4:50854->157.148.61.140:443 new=0.0.0.0:0->0.0.0.0:0 eth=00:00:00:00:00:00->00:00:00:00:00:00 etype=0000 vlan=0,0 ib1=1000086a ib2=00000000 packets=0 bytes=0
0070c UNB IPv4 5T orig=157.148.61.213:80->192.168.1.2:42492 new=0.0.0.0:0->0.0.0.0:0 eth=00:00:00:00:00:00->00:00:00:00:00:00 etype=0000 vlan=0,0 ib1=1000016b ib2=00000000 packets=0 bytes=0

but /sys/kernel/debug/ppe0/bind is empty. Is the hardware offloading working in this case?

nftables:

table ip main {
	flowtable ft {
		hook ingress priority filter
		devices = { eth0, phy0-ap0, phy1-ap0 }
	}

	chain postrouting {
		type nat hook postrouting priority srcnat; policy accept;
		oif "eth0" masquerade
	}

	chain forward {
		type filter hook forward priority filter; policy accept;
		ip protocol { tcp, udp } flow add @ft
	}
}

Hardwate offloading is NOT enabled. It works once you enable it

Thanks for the reply, so, what's the option I'm missing?

Your question was whether SOFTWARE offloading is working, config matches that. Just get back to firewall and make it hardware?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.