include/linux/qed/qed_ll2_if.h
Source file repositories/reference/linux-study-clean/include/linux/qed/qed_ll2_if.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/qed/qed_ll2_if.h- Extension
.h- Size
- 6319 bytes
- Lines
- 288
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/types.hlinux/interrupt.hlinux/netdevice.hlinux/pci.hlinux/skbuff.hlinux/kernel.hlinux/slab.hlinux/qed/qed_if.h
Detected Declarations
struct qed_ll2_statsstruct qed_ll2_comp_rx_datastruct qed_ll2_cbsstruct qed_ll2_acquire_data_inputsstruct qed_ll2_acquire_datastruct qed_ll2_tx_pkt_infostruct qed_ll2_cb_opsstruct qed_ll2_paramsstruct qed_ll2_opsenum qed_ll2_conn_typeenum qed_ll2_rx_conn_typeenum qed_ll2_roce_flavor_typeenum qed_ll2_tx_destenum qed_ll2_error_handleenum qed_ll2_xmit_flagsfunction qed_ll2_alloc_iffunction qed_ll2_dealloc_if
Annotated Snippet
struct qed_ll2_stats {
u64 gsi_invalid_hdr;
u64 gsi_invalid_pkt_length;
u64 gsi_unsupported_pkt_typ;
u64 gsi_crcchksm_error;
u64 packet_too_big_discard;
u64 no_buff_discard;
u64 rcv_ucast_bytes;
u64 rcv_mcast_bytes;
u64 rcv_bcast_bytes;
u64 rcv_ucast_pkts;
u64 rcv_mcast_pkts;
u64 rcv_bcast_pkts;
u64 sent_ucast_bytes;
u64 sent_mcast_bytes;
u64 sent_bcast_bytes;
u64 sent_ucast_pkts;
u64 sent_mcast_pkts;
u64 sent_bcast_pkts;
};
struct qed_ll2_comp_rx_data {
void *cookie;
dma_addr_t rx_buf_addr;
u16 parse_flags;
u16 err_flags;
u16 vlan;
bool b_last_packet;
u8 connection_handle;
union {
u16 packet_length;
u16 data_length;
} length;
u32 opaque_data_0;
u32 opaque_data_1;
/* GSI only */
u32 src_qp;
u16 qp_id;
union {
u8 placement_offset;
u8 data_length_error;
} u;
};
typedef
void (*qed_ll2_complete_rx_packet_cb)(void *cxt,
struct qed_ll2_comp_rx_data *data);
typedef
void (*qed_ll2_release_rx_packet_cb)(void *cxt,
u8 connection_handle,
void *cookie,
dma_addr_t rx_buf_addr,
bool b_last_packet);
typedef
void (*qed_ll2_complete_tx_packet_cb)(void *cxt,
u8 connection_handle,
void *cookie,
dma_addr_t first_frag_addr,
bool b_last_fragment,
bool b_last_packet);
typedef
void (*qed_ll2_release_tx_packet_cb)(void *cxt,
u8 connection_handle,
void *cookie,
dma_addr_t first_frag_addr,
bool b_last_fragment, bool b_last_packet);
typedef
void (*qed_ll2_slowpath_cb)(void *cxt, u8 connection_handle,
u32 opaque_data_0, u32 opaque_data_1);
struct qed_ll2_cbs {
qed_ll2_complete_rx_packet_cb rx_comp_cb;
qed_ll2_release_rx_packet_cb rx_release_cb;
qed_ll2_complete_tx_packet_cb tx_comp_cb;
qed_ll2_release_tx_packet_cb tx_release_cb;
qed_ll2_slowpath_cb slowpath_cb;
void *cookie;
};
Annotation
- Immediate include surface: `linux/types.h`, `linux/interrupt.h`, `linux/netdevice.h`, `linux/pci.h`, `linux/skbuff.h`, `linux/kernel.h`, `linux/slab.h`, `linux/qed/qed_if.h`.
- Detected declarations: `struct qed_ll2_stats`, `struct qed_ll2_comp_rx_data`, `struct qed_ll2_cbs`, `struct qed_ll2_acquire_data_inputs`, `struct qed_ll2_acquire_data`, `struct qed_ll2_tx_pkt_info`, `struct qed_ll2_cb_ops`, `struct qed_ll2_params`, `struct qed_ll2_ops`, `enum qed_ll2_conn_type`.
- Atlas domain: Core OS / Core Kernel Interface.
- 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.