Check hardware offload enables only indicates a request to use that path. To confirm that a test connection has indeed entered hardware processing, the configuration, connection state, and driver counter must be correlated. A decrease in CPU utilization, faster download speeds, or the appearance of flags offload in the ruleset alone are insufficient to establish this determination.
This document applies to OpenWrt firmware using Linux Netfilter flowtable. Vendor-specific acceleration modules may have their own status interfaces and are not subject to the same field mappings. The software branch includes actual echo and status logging for isolated instances. The hardware branch requires validation using the corresponding physical devices.
Let the traffic pass through the router first
Prepare two wired experiment hosts: Host A on the router's LAN side, Host B connected to a dedicated experimental WAN. The experimental WAN is not connected to the public internet, and the two network segments are not bridged. Retain a wired login or serial port recovery access point on the management computer. First verify routing, return path, and access permissions restricted to experiment endpoints; do not disable the entire firewall for testing.
In the example, A is 192.0.2.10, and the gateway is 192.0.2.1; B is 198.51.100.20, with the peer router interface at 198.51.100.1. These are document addresses, usable only after actual configuration in an isolated test network. Without NAT, B must also have a route back to the A subnet via the router. Record whether NAT is used, and do not change it inadvertently between the two groups.
At A check actual outbound:
ip route get 198.51.100.20
The route via 192.0.2.1 should be visible. If a different gateway is displayed, first check and correct the experimental cabling and routing configuration. If the client or server is running directly on the router, the observed path will be the local host's send/receive path and cannot substitute for testing the forwarding behavior through a device.
Save current settings, then check the actual rules
In the OpenWrt SSH terminal, record the board type, distribution, and kernel version, and save the firewall configuration for this exclusive experiment:
ubus call system board
uname -r
lab_backup=$(mktemp -d /tmp/offload-lab.XXXXXX)
cp -p /etc/config/firewall "$lab_backup/firewall"
printf '%s\n' "$lab_backup"
uci -q get 'firewall.@defaults[0].flow_offloading'
uci -q get 'firewall.@defaults[0].flow_offloading_hw'
nft list table inet fw4
command -v conntrack
Note the backup directory and copy it to the management computer; /tmp is not preserved after a restart. UCI returning no value may indicate that it was not explicitly set; the current firmware's default value and generation rules should still be examined. If inet fw4 is not present, first verify whether the old firewall or vendor-specific branch is being used; do not blindly copy table names to create new ones.
Common LuCI entry is "Network → Firewall → General Settings" under the software and hardware offload options. Specific labels may vary based on installed version. First, retain software offload and disable hardware offload for comparison, then toggle only the hardware offload switch. The application will reload rules, and a test connection will be reestablished for each group. Identify the generated flowtable, device list, and flags offload; these indicate the intended configuration, but have not yet been verified to establish successful connection acceptance.
If command -v conntrack produces no output, the tool is not installed. First, verify in «System → Packages» that the correct version of the conntrack package matching the current distribution is present and available, install it, and record the version; if no matching package exists on this machine or if the tool does not support state display, treat the connection status as "not acquired." Do not consider a blank output as "not supported for offload." Do not mix-install packages from a different software source.
Find the corresponding connection using limited traffic
(Use multicast to detect the connection, and ensure uplink bandwidth is properly configured. Prepare the environment to offload traffic where possible. If restore is needed, ensure the firmware version supports multicast and limited traffic handling. Is the uplink path correctly identified for traffic flow?)
The following example only uses 1 Mbit/s, 20 seconds to validate the path, without attempting to determine device limits. First, check iperf3 --version and iperf3 --help on both ends to confirm support for these parameters.
Start a one-time service on the front-end terminal of B, listening only to the experiment address:
iperf3 -s -1 -B 198.51.100.20 -p 5201
Establish a new TCP test connection with rate limiting on A:
iperf3 -c 198.51.100.20 -B 192.0.2.10 -p 5201 -b 1M -t 20
During transmission, in the router's other SSH window, establish a connection to this experimental pair of addresses:
conntrack -L -p tcp -s 192.0.2.10 -d 198.51.100.20 --dport 5201 -o extended
Check the original direction of src, dst, sport, dport—do not misinterpret return path fields after NAT. iperf3 may have both control and data connections; distinguish them by port, test timestamp, and available count. Wait several seconds before reading again to avoid capturing state immediately upon connection establishment. This command is read-only and does not require clearing the connection table.
Resynchronize the same TCP connection in the software control group
The screenshots and recording show software flow offload in an OpenWrt 25.12.6 x86/64 virtual machine. Physical hardware offload was not tested.
In «Network → Firewall → General Settings», set Flow offloading type to Software flow offloading. Note the original value, and using an isolated test machine, verify that no other unsubmitted firewall changes exist. The following are the actual parameters used in the video.

# Router SSH
uci set 'firewall.@defaults[0].flow_offloading=1'
uci set 'firewall.@defaults[0].flow_offloading_hw=0'
uci commit firewall
/etc/init.d/firewall reload
nft list flowtable inet fw4 ft
# B: On the isolated address, initiate a temporary echo; the firewall allows only A
socat TCP4-LISTEN:18449,bind=198.18.20.2,reuseaddr,fork EXEC:/bin/cat
# A: In the recording, send-three 43449 executes this echo flow
{ echo first; sleep 1; echo second; sleep 1; echo third; sleep 22; } |
socat -T25 - TCP4:198.18.20.2:18449,sourceport=43449
# During connection retention, read from the router's other window
conntrack -L -p tcp --sport 43449 --dport 18449
Two ends actually transmitted and received three lines of text, and the connection displays [OFFLOAD]. The recording was in the off state prior to the router restore experiment, and echo connectivity is confirmed as functional with a fresh connection. Replace the example address with the actual experimental address; the two endpoints only need to independently use either command B or A.
# Router: In this example, both switches were originally off.
uci set 'firewall.@defaults[0].flow_offloading=0'
uci commit firewall
/etc/init.d/firewall reload
nft list flowtable inet fw4 ft
# A: Use the new connection to verify service normality, then at B end terminate the temporary multicast listening.
echo restored | socat -T2 - TCP4:198.18.20.2:18449
Assess based on evidence strength, rather than relying on a single switch
| What is observed? | The following conclusions can be written: | Next step |
|---|---|---|
Rules have flags offload |
Hardware offload requested | Continue to investigate the specific connection |
Connected with OFFLOAD |
Observed software flowtable offload status | Cannot be rewritten as hardware hit |
Corresponding connection has HW_OFFLOAD |
The kernel reports that this flow is using the hardware offload path | Compare driver statistics with business results |
| Neither of the two tags is present. | No evidence of this flow offload was obtained this time. | Verify connections, rules, versions, and capabilities |
What is the difference between these two status flags? Linux flowtable documentationHardware acceptance involves asynchronous processes; the absence of a mark in a single instance does not prove the entire chip lacks support. Old tools, different branches, and flows that do not meet admission criteria also need to be individually excluded.
If the driver documents hardware entry, hit or fallback counters, use that documentation to interpret them. Run ethtool -S IFNAME with the name of the physical interface to list driver-specific fields. Compare changes only in counters whose scope you understand. Record unavailable hardware counters as unknown. A lower CPU load is supporting evidence at most.
Verify this path, then restore the configuration
Deliverable records shall simultaneously include: complete board type and version, rule configuration, test five-tuple, state during stable transmission, evidence of driver acquisition, and receive/transmit results. Success is limited to the specified protocol and path and shall not extend to IPv6, PPPoE, VPN, or other port combinations.
Wait for the one-time service to exit; if not connected or abnormal, press Ctrl-C at B. Restore the two offload options made during this change, then reestablish a low-load connection to verify original communication. If the interface is unavailable, use the remaining local management connection or serial port; after verifying the backup files, proceed with restore. The following actions are only to be executed under the same exclusive experiment, with no other configuration changes.
# Change the path to the actual directory where it is saved this time; do not directly use REPLACE.
cp -p /tmp/offload-lab.REPLACE/firewall /etc/config/firewall && /etc/init.d/firewall restart
After restore, verify that management access and experimental communication are both functioning normally, then revoke the temporary test license. Do not use conntrack -F to clear all active connections. The low-load results here only validate state and connectivity; they do not represent throughput, power consumption, or packet-loss performance metrics.
Why hardware flow offload can bypass your OpenWrt SQM limits
Comments