drivers/net/ethernet/netronome/nfp/flower/cmsg.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/netronome/nfp/flower/cmsg.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/netronome/nfp/flower/cmsg.h- Extension
.h- Size
- 24833 bytes
- Lines
- 753
- Domain
- Driver Families
- Bucket
- drivers/net
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bitfield.hlinux/skbuff.hlinux/types.hnet/geneve.hnet/gre.hnet/vxlan.h../nfp_app.h../nfpcore/nfp_cpp.h
Detected Declarations
struct nfp_fl_act_headstruct nfp_fl_set_ethstruct nfp_fl_set_ip4_addrsstruct nfp_fl_set_ip4_ttl_tosstruct nfp_fl_set_ipv6_tc_hl_flstruct nfp_fl_set_ipv6_addrstruct nfp_fl_set_tportstruct nfp_fl_outputstruct nfp_fl_push_vlanstruct nfp_fl_pop_vlanstruct nfp_fl_pre_lagstruct nfp_fl_pre_tunnelstruct nfp_fl_set_tunstruct nfp_fl_push_genevestruct nfp_fl_push_mplsstruct nfp_fl_pop_mplsstruct nfp_fl_set_mplsstruct nfp_fl_meterstruct nfp_flower_meta_tcistruct nfp_flower_ext_metastruct nfp_flower_in_portstruct nfp_flower_mac_mplsstruct nfp_flower_vlanstruct nfp_flower_tp_portsstruct nfp_flower_ip_extstruct nfp_flower_ipv4struct nfp_flower_ipv6struct nfp_flower_tun_ipv4struct nfp_flower_tun_ipv6struct nfp_flower_tun_ip_extstruct nfp_flower_ipv4_udp_tunstruct nfp_flower_ipv6_udp_tunstruct nfp_flower_ipv4_gre_tunstruct nfp_flower_ipv6_gre_tunstruct nfp_flower_geneve_optionsstruct nfp_flower_cmsg_hdrstruct nfp_flower_cmsg_mac_reprstruct nfp_flower_cmsg_portmodstruct nfp_flower_cmsg_portreifystruct nfp_flower_cmsg_merge_hintenum nfp_flower_tun_typeenum nfp_flower_cmsg_type_portenum nfp_flower_cmsg_port_typeenum nfp_flower_cmsg_port_vnic_typefunction nfp_flower_internal_port_get_port_idfunction nfp_flower_cmsg_phys_portfunction nfp_flower_cmsg_pcie_portfunction nfp_flower_cmsg_get_data_len
Annotated Snippet
struct nfp_fl_act_head {
u8 jump_id;
u8 len_lw;
};
struct nfp_fl_set_eth {
struct nfp_fl_act_head head;
__be16 reserved;
u8 eth_addr_mask[ETH_ALEN * 2];
u8 eth_addr_val[ETH_ALEN * 2];
};
struct nfp_fl_set_ip4_addrs {
struct nfp_fl_act_head head;
__be16 reserved;
__be32 ipv4_src_mask;
__be32 ipv4_src;
__be32 ipv4_dst_mask;
__be32 ipv4_dst;
};
struct nfp_fl_set_ip4_ttl_tos {
struct nfp_fl_act_head head;
u8 ipv4_ttl_mask;
u8 ipv4_tos_mask;
u8 ipv4_ttl;
u8 ipv4_tos;
__be16 reserved;
};
struct nfp_fl_set_ipv6_tc_hl_fl {
struct nfp_fl_act_head head;
u8 ipv6_tc_mask;
u8 ipv6_hop_limit_mask;
__be16 reserved;
u8 ipv6_tc;
u8 ipv6_hop_limit;
__be32 ipv6_label_mask;
__be32 ipv6_label;
};
struct nfp_fl_set_ipv6_addr {
struct nfp_fl_act_head head;
__be16 reserved;
struct {
__be32 mask;
__be32 exact;
} ipv6[4];
};
struct nfp_fl_set_tport {
struct nfp_fl_act_head head;
__be16 reserved;
u8 tp_port_mask[4];
u8 tp_port_val[4];
};
struct nfp_fl_output {
struct nfp_fl_act_head head;
__be16 flags;
__be32 port;
};
struct nfp_fl_push_vlan {
struct nfp_fl_act_head head;
__be16 reserved;
__be16 vlan_tpid;
__be16 vlan_tci;
};
struct nfp_fl_pop_vlan {
struct nfp_fl_act_head head;
__be16 reserved;
};
struct nfp_fl_pre_lag {
struct nfp_fl_act_head head;
__be16 group_id;
u8 lag_version[3];
u8 instance;
};
#define NFP_FL_PRE_LAG_VER_OFF 8
struct nfp_fl_pre_tunnel {
struct nfp_fl_act_head head;
__be16 flags;
union {
__be32 ipv4_dst;
struct in6_addr ipv6_dst;
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/skbuff.h`, `linux/types.h`, `net/geneve.h`, `net/gre.h`, `net/vxlan.h`, `../nfp_app.h`, `../nfpcore/nfp_cpp.h`.
- Detected declarations: `struct nfp_fl_act_head`, `struct nfp_fl_set_eth`, `struct nfp_fl_set_ip4_addrs`, `struct nfp_fl_set_ip4_ttl_tos`, `struct nfp_fl_set_ipv6_tc_hl_fl`, `struct nfp_fl_set_ipv6_addr`, `struct nfp_fl_set_tport`, `struct nfp_fl_output`, `struct nfp_fl_push_vlan`, `struct nfp_fl_pop_vlan`.
- Atlas domain: Driver Families / drivers/net.
- 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.