drivers/net/ethernet/netronome/nfp/crypto/fw.h
Source file repositories/reference/linux-study-clean/drivers/net/ethernet/netronome/nfp/crypto/fw.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/ethernet/netronome/nfp/crypto/fw.h- Extension
.h- Size
- 2043 bytes
- Lines
- 99
- 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
../ccm.h
Detected Declarations
struct nfp_net_tls_resync_reqstruct nfp_crypto_reply_simplestruct nfp_crypto_req_resetstruct nfp_crypto_req_add_frontstruct nfp_crypto_req_add_backstruct nfp_crypto_req_add_v4struct nfp_crypto_req_add_v6struct nfp_crypto_reply_addstruct nfp_crypto_req_delstruct nfp_crypto_req_update
Annotated Snippet
struct nfp_net_tls_resync_req {
__be32 fw_handle[2];
__be32 tcp_seq;
u8 l3_offset;
u8 l4_offset;
u8 resv[2];
};
struct nfp_crypto_reply_simple {
struct nfp_ccm_hdr hdr;
__be32 error;
};
struct nfp_crypto_req_reset {
struct nfp_ccm_hdr hdr;
__be32 ep_id;
};
#define NFP_NET_TLS_IPVER GENMASK(15, 12)
#define NFP_NET_TLS_VLAN GENMASK(11, 0)
#define NFP_NET_TLS_VLAN_UNUSED 4095
struct nfp_crypto_req_add_front {
/* New members MUST be added within the struct_group() macro below. */
struct_group_tagged(nfp_crypto_req_add_front_hdr, __hdr,
struct nfp_ccm_hdr hdr;
__be32 ep_id;
u8 resv[3];
u8 opcode;
u8 key_len;
__be16 ipver_vlan __packed;
u8 l4_proto;
);
#define NFP_NET_TLS_NON_ADDR_KEY_LEN 8
u8 l3_addrs[];
};
static_assert(offsetof(struct nfp_crypto_req_add_front, l3_addrs) ==
sizeof(struct nfp_crypto_req_add_front_hdr),
"struct member likely outside of struct_group_tagged()");
struct nfp_crypto_req_add_back {
__be16 src_port;
__be16 dst_port;
__be32 key[8];
__be32 salt;
__be32 iv[2];
__be32 counter;
__be32 rec_no[2];
__be32 tcp_seq;
};
struct nfp_crypto_req_add_v4 {
struct nfp_crypto_req_add_front_hdr front;
__be32 src_ip;
__be32 dst_ip;
struct nfp_crypto_req_add_back back;
};
struct nfp_crypto_req_add_v6 {
struct nfp_crypto_req_add_front_hdr front;
__be32 src_ip[4];
__be32 dst_ip[4];
struct nfp_crypto_req_add_back back;
};
struct nfp_crypto_reply_add {
struct nfp_ccm_hdr hdr;
__be32 error;
__be32 handle[2];
};
struct nfp_crypto_req_del {
struct nfp_ccm_hdr hdr;
__be32 ep_id;
__be32 handle[2];
};
struct nfp_crypto_req_update {
struct nfp_ccm_hdr hdr;
__be32 ep_id;
u8 resv[3];
u8 opcode;
__be32 handle[2];
__be32 rec_no[2];
__be32 tcp_seq;
};
#endif
Annotation
- Immediate include surface: `../ccm.h`.
- Detected declarations: `struct nfp_net_tls_resync_req`, `struct nfp_crypto_reply_simple`, `struct nfp_crypto_req_reset`, `struct nfp_crypto_req_add_front`, `struct nfp_crypto_req_add_back`, `struct nfp_crypto_req_add_v4`, `struct nfp_crypto_req_add_v6`, `struct nfp_crypto_reply_add`, `struct nfp_crypto_req_del`, `struct nfp_crypto_req_update`.
- 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.