drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send.h- Extension
.h- Size
- 6200 bytes
- Lines
- 266
- 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
- No C-style include directives detected by the generator.
Detected Declarations
struct mlx5hws_wqe_ctrl_segstruct mlx5hws_wqe_gta_ctrl_segstruct mlx5hws_wqe_gta_data_seg_stestruct mlx5hws_wqe_gta_data_seg_argstruct mlx5hws_wqe_gtastruct mlx5hws_send_ring_cqstruct mlx5hws_send_ring_privstruct mlx5hws_send_ring_dep_wqestruct mlx5hws_send_ring_sqstruct mlx5hws_send_ringstruct mlx5hws_completed_poll_entrystruct mlx5hws_completed_pollstruct mlx5hws_send_enginestruct mlx5hws_send_engine_post_ctrlstruct mlx5hws_send_engine_post_attrstruct mlx5hws_send_ste_attrenum mlx5hws_wqe_opcodeenum mlx5hws_wqe_opmodenum mlx5hws_wqe_gta_opcodeenum mlx5hws_wqe_gta_opmodenum mlx5hws_wqe_gta_szfunction mlx5hws_send_engine_emptyfunction mlx5hws_send_engine_fullfunction mlx5hws_send_engine_inc_rulefunction mlx5hws_send_engine_dec_rulefunction mlx5hws_send_engine_gen_compfunction mlx5hws_send_engine_err
Annotated Snippet
struct mlx5hws_wqe_ctrl_seg {
__be32 opmod_idx_opcode;
__be32 qpn_ds;
__be32 flags;
__be32 imm;
};
struct mlx5hws_wqe_gta_ctrl_seg {
__be32 op_dirix;
__be32 stc_ix[5];
__be32 rsvd0[6];
};
struct mlx5hws_wqe_gta_data_seg_ste {
__be32 rsvd0_ctr_id;
__be32 rsvd1_definer;
__be32 rsvd2[3];
union {
struct {
__be32 action[3];
__be32 tag[8];
};
__be32 jumbo[11];
};
};
struct mlx5hws_wqe_gta_data_seg_arg {
__be32 action_args[8];
};
struct mlx5hws_wqe_gta {
struct mlx5hws_wqe_gta_ctrl_seg gta_ctrl;
union {
struct mlx5hws_wqe_gta_data_seg_ste seg_ste;
struct mlx5hws_wqe_gta_data_seg_arg seg_arg;
};
};
struct mlx5hws_send_ring_cq {
struct mlx5_core_dev *mdev;
struct mlx5_cqwq wq;
struct mlx5_wq_ctrl wq_ctrl;
struct mlx5_core_cq mcq;
u16 poll_wqe;
};
struct mlx5hws_send_ring_priv {
struct mlx5hws_rule *rule;
void *user_data;
u32 num_wqebbs;
u32 id;
u32 retry_id;
u32 *used_id;
};
struct mlx5hws_send_ring_dep_wqe {
struct mlx5hws_wqe_gta_ctrl_seg wqe_ctrl;
struct mlx5hws_wqe_gta_data_seg_ste wqe_data;
struct mlx5hws_rule *rule;
u32 rtc_0;
u32 rtc_1;
u32 retry_rtc_0;
u32 retry_rtc_1;
u32 direct_index;
void *user_data;
};
struct mlx5hws_send_ring_sq {
struct mlx5_core_dev *mdev;
u16 cur_post;
u16 buf_mask;
struct mlx5hws_send_ring_priv *wr_priv;
unsigned int last_idx;
struct mlx5hws_send_ring_dep_wqe *dep_wqe;
unsigned int head_dep_idx;
unsigned int tail_dep_idx;
u32 sqn;
struct mlx5_wq_cyc wq;
struct mlx5_wq_ctrl wq_ctrl;
void __iomem *uar_map;
};
struct mlx5hws_send_ring {
struct mlx5hws_send_ring_cq send_cq;
struct mlx5hws_send_ring_sq send_sq;
};
struct mlx5hws_completed_poll_entry {
void *user_data;
enum mlx5hws_flow_op_status status;
Annotation
- Detected declarations: `struct mlx5hws_wqe_ctrl_seg`, `struct mlx5hws_wqe_gta_ctrl_seg`, `struct mlx5hws_wqe_gta_data_seg_ste`, `struct mlx5hws_wqe_gta_data_seg_arg`, `struct mlx5hws_wqe_gta`, `struct mlx5hws_send_ring_cq`, `struct mlx5hws_send_ring_priv`, `struct mlx5hws_send_ring_dep_wqe`, `struct mlx5hws_send_ring_sq`, `struct mlx5hws_send_ring`.
- 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.