drivers/net/ethernet/mellanox/mlx5/core/steering/hws/table.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/table.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/mellanox/mlx5/core/steering/hws/table.h- Extension
.h- Size
- 1781 bytes
- Lines
- 75
- 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_default_missstruct mlx5hws_tablefunction mlx5hws_table_get_fw_ft_typefunction mlx5hws_table_get_res_fw_ft_type
Annotated Snippet
struct mlx5hws_default_miss {
/* My miss table */
struct mlx5hws_table *miss_tbl;
struct list_head next;
/* Tables missing to my table */
struct list_head head;
};
struct mlx5hws_table {
struct mlx5hws_context *ctx;
u32 ft_id;
enum mlx5hws_table_type type;
u32 fw_ft_type;
u32 level;
u16 uid;
struct list_head matchers_list;
struct list_head tbl_list_node;
struct mlx5hws_default_miss default_miss;
};
static inline
u32 mlx5hws_table_get_fw_ft_type(enum mlx5hws_table_type type,
u8 *ret_type)
{
if (type != MLX5HWS_TABLE_TYPE_FDB)
return -EOPNOTSUPP;
*ret_type = FS_FT_FDB;
return 0;
}
static inline
u32 mlx5hws_table_get_res_fw_ft_type(enum mlx5hws_table_type tbl_type,
bool is_mirror)
{
if (tbl_type == MLX5HWS_TABLE_TYPE_FDB)
return is_mirror ? FS_FT_FDB_TX : FS_FT_FDB_RX;
return 0;
}
int mlx5hws_table_create_default_ft(struct mlx5_core_dev *mdev,
struct mlx5hws_table *tbl,
u16 uid, u32 *ft_id);
void mlx5hws_table_destroy_default_ft(struct mlx5hws_table *tbl,
u32 ft_id);
int mlx5hws_table_connect_to_miss_table(struct mlx5hws_table *src_tbl,
struct mlx5hws_table *dst_tbl);
int mlx5hws_table_update_connected_miss_tables(struct mlx5hws_table *dst_tbl);
int mlx5hws_table_ft_set_default_next_ft(struct mlx5hws_table *tbl, u32 ft_id);
int mlx5hws_table_ft_set_next_rtc(struct mlx5hws_context *ctx,
u32 ft_id,
u32 fw_ft_type,
u32 rtc_0_id,
u32 rtc_1_id);
int mlx5hws_table_ft_set_next_ft(struct mlx5hws_context *ctx,
u32 ft_id,
u32 fw_ft_type,
u32 next_ft_id);
#endif /* MLX5HWS_TABLE_H_ */
Annotation
- Detected declarations: `struct mlx5hws_default_miss`, `struct mlx5hws_table`, `function mlx5hws_table_get_fw_ft_type`, `function mlx5hws_table_get_res_fw_ft_type`.
- 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.