net/sched/cls_flower.c
Source file repositories/reference/linux-study-clean/net/sched/cls_flower.c
File Facts
- System
- Linux kernel
- Corpus path
net/sched/cls_flower.c- Extension
.c- Size
- 112623 bytes
- Lines
- 3871
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/init.hlinux/module.hlinux/rhashtable.hlinux/workqueue.hlinux/refcount.hlinux/bitfield.hlinux/if_ether.hlinux/in6.hlinux/ip.hlinux/mpls.hlinux/ppp_defs.hnet/sch_generic.hnet/pkt_cls.hnet/pkt_sched.hnet/ip.hnet/flow_dissector.hnet/geneve.hnet/vxlan.hnet/erspan.hnet/gtp.hnet/pfcp.hnet/tc_wrapper.hnet/dst.hnet/dst_metadata.huapi/linux/netfilter/nf_conntrack_common.h
Detected Declarations
struct fl_flow_keystruct fl_flow_mask_rangestruct fl_flow_maskstruct fl_flow_tmpltstruct cls_fl_headstruct cls_fl_filterfunction fl_mask_rangefunction fl_mask_update_rangefunction fl_set_masked_keyfunction fl_mask_fits_tmpltfunction fl_clear_masked_rangefunction fl_range_port_dst_cmpfunction fl_range_port_src_cmpfunction list_for_each_entry_rcufunction fl_classifyfunction list_for_each_entry_rcufunction fl_initfunction fl_mask_freefunction fl_mask_free_workfunction fl_uninit_mask_free_workfunction fl_mask_putfunction __fl_destroy_filterfunction fl_destroy_filter_workfunction fl_hw_destroy_filterfunction fl_hw_replace_filterfunction fl_hw_update_statsfunction __fl_putfunction __fl_deletefunction fl_destroy_sleepablefunction fl_destroyfunction list_for_each_entry_safefunction fl_putfunction fl_set_key_valfunction fl_set_key_spifunction fl_set_key_port_rangefunction ntohsfunction ntohsfunction fl_set_key_mpls_lsefunction fl_set_key_mpls_optsfunction nla_for_each_nestedfunction fl_set_key_mplsfunction fl_set_key_vlanfunction fl_set_key_pppoefunction fl_set_key_flagfunction fl_set_key_flagsfunction fl_set_key_ipfunction fl_set_geneve_optfunction fl_set_vxlan_opt
Annotated Snippet
module_init(cls_fl_init);
module_exit(cls_fl_exit);
MODULE_AUTHOR("Jiri Pirko <jiri@resnulli.us>");
MODULE_DESCRIPTION("Flower classifier");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/module.h`, `linux/rhashtable.h`, `linux/workqueue.h`, `linux/refcount.h`, `linux/bitfield.h`, `linux/if_ether.h`.
- Detected declarations: `struct fl_flow_key`, `struct fl_flow_mask_range`, `struct fl_flow_mask`, `struct fl_flow_tmplt`, `struct cls_fl_head`, `struct cls_fl_filter`, `function fl_mask_range`, `function fl_mask_update_range`, `function fl_set_masked_key`, `function fl_mask_fits_tmplt`.
- 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.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.