drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/mellanox/mlx5/core/en_accel/macsec.h- Extension
.h- Size
- 1812 bytes
- Lines
- 54
- 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/mlx5/driver.hnet/macsec.hnet/dst_metadata.hlib/macsec_fs.h
Detected Declarations
struct mlx5e_privstruct mlx5e_macsecfunction mlx5e_macsec_skb_is_offloadfunction mlx5e_macsec_is_rx_flowfunction mlx5e_macsec_build_netdevfunction mlx5e_macsec_cleanupfunction mlx5e_macsec_is_rx_flowfunction mlx5e_macsec_offload_handle_rx_skb
Annotated Snippet
static inline void mlx5e_macsec_build_netdev(struct mlx5e_priv *priv) {}
static inline int mlx5e_macsec_init(struct mlx5e_priv *priv) { return 0; }
static inline void mlx5e_macsec_cleanup(struct mlx5e_priv *priv) {}
static inline bool mlx5e_macsec_skb_is_offload(struct sk_buff *skb) { return false; }
static inline bool mlx5e_macsec_is_rx_flow(struct mlx5_cqe64 *cqe) { return false; }
static inline void mlx5e_macsec_offload_handle_rx_skb(struct net_device *netdev,
struct sk_buff *skb,
struct mlx5_cqe64 *cqe)
{}
#endif /* CONFIG_MLX5_MACSEC */
#endif /* __MLX5_ACCEL_EN_MACSEC_H__ */
Annotation
- Immediate include surface: `linux/mlx5/driver.h`, `net/macsec.h`, `net/dst_metadata.h`, `lib/macsec_fs.h`.
- Detected declarations: `struct mlx5e_priv`, `struct mlx5e_macsec`, `function mlx5e_macsec_skb_is_offload`, `function mlx5e_macsec_is_rx_flow`, `function mlx5e_macsec_build_netdev`, `function mlx5e_macsec_cleanup`, `function mlx5e_macsec_is_rx_flow`, `function mlx5e_macsec_offload_handle_rx_skb`.
- 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.