drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/fs_hws_pools.h- Extension
.h- Size
- 2404 bytes
- Lines
- 74
- 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/if_vlan.hfs_pool.hfs_core.h
Detected Declarations
struct mlx5_fs_hws_prstruct mlx5_fs_hws_pr_bulkstruct mlx5_fs_hws_pr_pool_ctxstruct mlx5_fs_hws_mhstruct mlx5_fs_hws_mh_bulk
Annotated Snippet
struct mlx5_fs_hws_pr {
struct mlx5_fs_hws_pr_bulk *bulk;
u32 offset;
u8 hdr_idx;
u8 *data;
size_t data_size;
};
struct mlx5_fs_hws_pr_bulk {
struct mlx5_fs_bulk fs_bulk;
struct mlx5hws_action *hws_action;
struct mlx5_fs_hws_pr prs_data[];
};
struct mlx5_fs_hws_pr_pool_ctx {
enum mlx5hws_action_type reformat_type;
size_t encap_data_size;
};
struct mlx5_fs_hws_mh {
struct mlx5_fs_hws_mh_bulk *bulk;
u32 offset;
u8 *data;
};
struct mlx5_fs_hws_mh_bulk {
struct mlx5_fs_bulk fs_bulk;
struct mlx5_fs_pool *mh_pool;
struct mlx5hws_action *hws_action;
struct mlx5_fs_hws_mh mhs_data[];
};
int mlx5_fs_hws_pr_pool_init(struct mlx5_fs_pool *pr_pool,
struct mlx5_core_dev *dev, size_t encap_data_size,
enum mlx5hws_action_type reformat_type);
void mlx5_fs_hws_pr_pool_cleanup(struct mlx5_fs_pool *pr_pool);
struct mlx5_fs_hws_pr *mlx5_fs_hws_pr_pool_acquire_pr(struct mlx5_fs_pool *pr_pool);
void mlx5_fs_hws_pr_pool_release_pr(struct mlx5_fs_pool *pr_pool,
struct mlx5_fs_hws_pr *pr_data);
struct mlx5hws_action *mlx5_fs_hws_pr_get_action(struct mlx5_fs_hws_pr *pr_data);
int mlx5_fs_hws_mh_pool_init(struct mlx5_fs_pool *fs_hws_mh_pool,
struct mlx5_core_dev *dev,
struct mlx5hws_action_mh_pattern *pattern);
void mlx5_fs_hws_mh_pool_cleanup(struct mlx5_fs_pool *fs_hws_mh_pool);
struct mlx5_fs_hws_mh *mlx5_fs_hws_mh_pool_acquire_mh(struct mlx5_fs_pool *mh_pool);
void mlx5_fs_hws_mh_pool_release_mh(struct mlx5_fs_pool *mh_pool,
struct mlx5_fs_hws_mh *mh_data);
bool mlx5_fs_hws_mh_pool_match(struct mlx5_fs_pool *mh_pool,
struct mlx5hws_action_mh_pattern *pattern);
struct mlx5hws_action *mlx5_fc_get_hws_action(struct mlx5hws_context *ctx,
struct mlx5_fc *counter);
void mlx5_fc_put_hws_action(struct mlx5_fc *counter);
#endif /* __MLX5_FS_HWS_POOLS_H__ */
Annotation
- Immediate include surface: `linux/if_vlan.h`, `fs_pool.h`, `fs_core.h`.
- Detected declarations: `struct mlx5_fs_hws_pr`, `struct mlx5_fs_hws_pr_bulk`, `struct mlx5_fs_hws_pr_pool_ctx`, `struct mlx5_fs_hws_mh`, `struct mlx5_fs_hws_mh_bulk`.
- 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.