Kmod-nft-offload
If your SoC vendor (e.g., certain older Broadcom or Realtek chips) has not open-sourced or implemented hardware flow offload capabilities in their Linux drivers, kmod-nft-offload will silently fall back to software processing. Conclusion
nft add table netdev filter nft add chain netdev filter forward type filter hook ingress device eth0 priority 0 ; flags offload ;
Check (if your router supports it). Click Save & Apply .
First, let's decode the name:
Here’s an engaging, tech-deep-dive-style content piece on , tailored for Linux enthusiasts, networking engineers, and anyone curious about high-performance packet processing.
framework. By offloading flows, the router can skip several expensive networking stack steps for established connections, significantly reducing CPU usage and increasing maximum transfer speeds—especially on Gigabit connections. Key Technical Details Dependencies : This module typically requires kmod-nf-flow kmod-nft-nat to function. Implementation : It works by utilizing the Linux kernel's nf_flow_table_offload.c
The underlying Linux kernel (requires v4.14 or newer). kmod-nf-flow : The core Netfilter flow table module. kmod-nft-offload
Alternatively, you can define the flowtable in a separate configuration file:
Allows low-power, budget routers to achieve line-rate gigabit routing speeds that would otherwise choke the CPU.
Low-power embedded devices (like home routers powered by MediaTek, Atheros, or Marvell SoCs) often struggle to route 1 Gbps or 2.5 Gbps traffic using software alone. Hardware offloading unlocks the physical speed limit of the hardware ports. If your SoC vendor (e
: It supports routing and NAT offloading by allowing established network flows to bypass certain parts of the standard kernel processing.
When a packet enters a network interface, the CPU interrupts its current tasks to process the packet. The Linux kernel examines the packet headers, checks them against the Nftables firewall rules (NAT, filtering, mangling), determines the destination, and forwards it out of the target interface. This process repeats for every single packet in a data stream, consuming significant CPU cycles. 2. The Offloaded Path (Hardware Routing)