drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/mellanox/mlx5/core/esw/ipsec_fs.c- Extension
.c- Size
- 5187 bytes
- Lines
- 188
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
fs_core.heswitch.hen_accel/ipsec.hesw/ipsec_fs.hen/tc_priv.h
Detected Declarations
function mlx5_esw_ipsec_rx_create_attr_setfunction mlx5_esw_ipsec_rx_status_pass_dest_getfunction mlx5_esw_ipsec_rx_setup_modify_headerfunction mlx5_esw_ipsec_rx_rule_add_match_objfunction mlx5_esw_ipsec_rx_id_mapping_removefunction mlx5_esw_ipsec_rx_ipsec_obj_id_searchfunction mlx5_esw_ipsec_tx_create_attr_setfunction mlx5_esw_ipsec_modify_flow_destsfunction mlx5_esw_ipsec_restore_dest_uplinkfunction mlx5_esw_for_each_rep
Annotated Snippet
while ((flow = rhashtable_walk_next(&iter)) != NULL) {
if (IS_ERR(flow))
continue;
err = mlx5_esw_ipsec_modify_flow_dests(esw, flow);
if (err)
mlx5_core_warn_once(mdev,
"Failed to modify flow dests for IPsec");
}
rhashtable_walk_stop(&iter);
rhashtable_walk_exit(&iter);
}
#endif
}
Annotation
- Immediate include surface: `fs_core.h`, `eswitch.h`, `en_accel/ipsec.h`, `esw/ipsec_fs.h`, `en/tc_priv.h`.
- Detected declarations: `function mlx5_esw_ipsec_rx_create_attr_set`, `function mlx5_esw_ipsec_rx_status_pass_dest_get`, `function mlx5_esw_ipsec_rx_setup_modify_header`, `function mlx5_esw_ipsec_rx_rule_add_match_obj`, `function mlx5_esw_ipsec_rx_id_mapping_remove`, `function mlx5_esw_ipsec_rx_ipsec_obj_id_search`, `function mlx5_esw_ipsec_tx_create_attr_set`, `function mlx5_esw_ipsec_modify_flow_dests`, `function mlx5_esw_ipsec_restore_dest_uplink`, `function mlx5_esw_for_each_rep`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.