tools/testing/selftests/bpf/xdp_lb_bench_common.h
Source file repositories/reference/linux-study-clean/tools/testing/selftests/bpf/xdp_lb_bench_common.h
File Facts
- System
- Linux kernel
- Corpus path
tools/testing/selftests/bpf/xdp_lb_bench_common.h- Extension
.h- Size
- 2474 bytes
- Lines
- 113
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct flow_keystruct vip_definitionstruct vip_metastruct real_pos_lrustruct real_definitionstruct lb_statsstruct ctl_valuefunction create_encap_ipv4_srcfunction create_encap_ipv6_src
Annotated Snippet
struct flow_key {
union {
__be32 src;
__be32 srcv6[4];
};
union {
__be32 dst;
__be32 dstv6[4];
};
union {
__u32 ports;
__u16 port16[2];
};
__u8 proto;
__u8 pad[3];
};
struct vip_definition {
union {
__be32 vip;
__be32 vipv6[4];
};
__u16 port;
__u8 proto;
__u8 pad;
};
struct vip_meta {
__u32 flags;
__u32 vip_num;
};
struct real_pos_lru {
__u32 pos;
__u64 atime;
};
struct real_definition {
__be32 dst;
__be32 dstv6[4];
__u8 flags;
};
struct lb_stats {
__u64 v1;
__u64 v2;
};
struct ctl_value {
__u8 mac[6];
__u8 pad[2];
};
#endif /* XDP_LB_BENCH_COMMON_H */
Annotation
- Detected declarations: `struct flow_key`, `struct vip_definition`, `struct vip_meta`, `struct real_pos_lru`, `struct real_definition`, `struct lb_stats`, `struct ctl_value`, `function create_encap_ipv4_src`, `function create_encap_ipv6_src`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: source implementation candidate.
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.