net/netfilter/nft_flow_offload.c
Source file repositories/reference/linux-study-clean/net/netfilter/nft_flow_offload.c
File Facts
- System
- Linux kernel
- Corpus path
net/netfilter/nft_flow_offload.c- Extension
.c- Size
- 7171 bytes
- Lines
- 288
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/etherdevice.hlinux/kernel.hlinux/module.hlinux/init.hlinux/netlink.hlinux/netfilter.hlinux/workqueue.hlinux/spinlock.hlinux/netfilter/nf_conntrack_common.hlinux/netfilter/nf_tables.hnet/ip.hnet/flow.hnet/netfilter/nf_tables.hnet/netfilter/nf_tables_core.hnet/netfilter/nf_conntrack_core.hnet/netfilter/nf_conntrack_extend.hnet/netfilter/nf_flow_table.h
Detected Declarations
struct nft_flow_offloadfunction nft_flow_offload_skipfunction flow_offload_ct_tcpfunction nft_flow_offload_evalfunction nft_flow_offload_validatefunction nft_flow_offload_initfunction nft_flow_offload_deactivatefunction nft_flow_offload_activatefunction nft_flow_offload_destroyfunction nft_flow_offload_dumpfunction flow_offload_netdev_eventfunction nft_flow_offload_module_initfunction nft_flow_offload_module_exitmodule init nft_flow_offload_module_init
Annotated Snippet
module_init(nft_flow_offload_module_init);
module_exit(nft_flow_offload_module_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Pablo Neira Ayuso <pablo@netfilter.org>");
MODULE_ALIAS_NFT_EXPR("flow_offload");
MODULE_DESCRIPTION("nftables hardware flow offload module");
Annotation
- Immediate include surface: `linux/etherdevice.h`, `linux/kernel.h`, `linux/module.h`, `linux/init.h`, `linux/netlink.h`, `linux/netfilter.h`, `linux/workqueue.h`, `linux/spinlock.h`.
- Detected declarations: `struct nft_flow_offload`, `function nft_flow_offload_skip`, `function flow_offload_ct_tcp`, `function nft_flow_offload_eval`, `function nft_flow_offload_validate`, `function nft_flow_offload_init`, `function nft_flow_offload_deactivate`, `function nft_flow_offload_activate`, `function nft_flow_offload_destroy`, `function nft_flow_offload_dump`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.