drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/chcr_ipsec.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/chcr_ipsec.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/chcr_ipsec.h- Extension
.h- Size
- 1103 bytes
- Lines
- 58
- 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
t4_hw.hcxgb4.ht4_msg.hcxgb4_uld.hchcr_core.hchcr_algo.hchcr_crypto.h
Detected Declarations
struct ipsec_uld_ctxstruct chcr_ipsec_reqstruct chcr_ipsec_wrstruct chcr_ipsec_aadivstruct ipsec_sa_entry
Annotated Snippet
struct ipsec_uld_ctx {
struct list_head entry;
struct cxgb4_lld_info lldi;
};
struct chcr_ipsec_req {
struct ulp_txpkt ulptx;
struct ulptx_idata sc_imm;
struct cpl_tx_sec_pdu sec_cpl;
struct _key_ctx key_ctx;
};
struct chcr_ipsec_wr {
struct fw_ulptx_wr wreq;
struct chcr_ipsec_req req;
};
#define ESN_IV_INSERT_OFFSET 12
struct chcr_ipsec_aadiv {
__be32 spi;
u8 seq_no[8];
u8 iv[8];
};
struct ipsec_sa_entry {
int hmac_ctrl;
u16 esn;
u16 resv;
unsigned int enckey_len;
unsigned int kctx_len;
unsigned int authsize;
__be32 key_ctx_hdr;
char salt[MAX_SALT];
char key[2 * AES_MAX_KEY_SIZE];
};
#endif /* __CHCR_IPSEC_H__ */
Annotation
- Immediate include surface: `t4_hw.h`, `cxgb4.h`, `t4_msg.h`, `cxgb4_uld.h`, `chcr_core.h`, `chcr_algo.h`, `chcr_crypto.h`.
- Detected declarations: `struct ipsec_uld_ctx`, `struct chcr_ipsec_req`, `struct chcr_ipsec_wr`, `struct chcr_ipsec_aadiv`, `struct ipsec_sa_entry`.
- 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.