Kmod-nft-offload Jun 2026

table ip filter # 1. Define the flowtable flowtable f1 hook ingress priority 0; devices = eth0, eth1 ;

Implementing kmod-nft-offload offers several key performance enhancements:

Without kmod-nft-offload active, a classic multi-core ARM or legacy MIPS router may struggle to route data speeds exceeding 200–300 Mbps, completely maxing out the CPU to 100% utilization.

kmod-nft-offload is a critical component for network administrators and enthusiasts looking to maximize the performance of their Linux-based routers. By shifting the burden of packet processing for established connections from the CPU to specialized network hardware, it enables near-wire-speed forwarding, dramatically reduces CPU load, and frees up resources for other tasks. While it requires specific hardware support and has limitations, particularly concerning bridge interfaces, the performance benefits it delivers for high-throughput routing scenarios are undeniable. As the Linux kernel and driver support continue to evolve, kmod-nft-offload will undoubtedly play an increasingly central role in high-performance networking on embedded systems and beyond. kmod-nft-offload

user wants a comprehensive article on "kmod-nft-offload". This appears to be a kernel module related to nftables hardware offloading. I need to provide a detailed article. I'll search for information on this topic. search results show that "kmod-nft-offload" is a package in OpenWrt, likely providing hardware offloading for nftables. I need to write a detailed article. I'll open some of the relevant results to gather more information. search results provide a good overview. I'll structure the article with an introduction, explanation of what kmod-nft-offload is, how it works, prerequisites and hardware support, installation, configuration examples, verification, performance benefits, and limitations. I'll cite sources accordingly.ware offload is a pivotal concept in modern networking, and kmod-nft-offload is a crucial kernel module that brings this capability to the nftables firewall on the Linux platform. At its core, kmod-nft-offload is an OpenWrt kernel module that enables the hardware offload of nftables' flowtables. It functions by programming the network hardware to handle the bulk of the traffic for established connections, thereby bypassing the main CPU. This mechanism significantly reduces CPU load and dramatically increases overall routing throughput.

kmod-nft-offload is a Linux kernel module that allows (smart NICs or switches) that support flow offloading.

When you define a flowtable in nftables, you are instructing the kernel to create a fast-path for traffic on specified network interfaces (e.g., eth0 , eth1 ). The flowtable can be configured to operate in two primary modes: and hardware offload . table ip filter # 1

make M=net/netfilter/ modules insmod net/netfilter/nft_offload.ko

: The following command creates a software-based flowtable, which provides a performance boost by bypassing parts of the netfilter stack but keeps the processing on the CPU:

In simple terms:

If you are managing a raw Linux system via configuration files, the flow table is declared directly inside your nftables.conf file:

In most modern OpenWrt builds (22.03 and newer), nftables is the default firewall backend. Install the module via the command-line interface: opkg update opkg install kmod-nft-offload Use code with caution. Configuration via LuCI (Web Interface) Log into your OpenWrt dashboard. Navigate to -> Firewall . Locate the Routing/NAT Offloading section. Check Software flow offloading (optional layer).