net/ncsi/ncsi-pkt.h
Source file repositories/reference/linux-study-clean/net/ncsi/ncsi-pkt.h
File Facts
- System
- Linux kernel
- Corpus path
net/ncsi/ncsi-pkt.h- Extension
.h- Size
- 21386 bytes
- Lines
- 466
- Domain
- Networking Core
- Bucket
- Sockets, Protocols, Packet Path, And Network Policy
- Inferred role
- Networking Core: implementation source
- Status
- source implementation candidate
Why This File Exists
Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.
- 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 ncsi_pkt_hdrstruct ncsi_cmd_pkt_hdrstruct ncsi_rsp_pkt_hdrstruct ncsi_aen_pkt_hdrstruct ncsi_cmd_pktstruct ncsi_rsp_pktstruct ncsi_cmd_sp_pktstruct ncsi_cmd_dc_pktstruct ncsi_cmd_rc_pktstruct ncsi_cmd_ae_pktstruct ncsi_cmd_sl_pktstruct ncsi_cmd_svf_pktstruct ncsi_cmd_ev_pktstruct ncsi_cmd_sma_pktstruct ncsi_cmd_ebf_pktstruct ncsi_cmd_egmf_pktstruct ncsi_cmd_snfc_pktstruct ncsi_cmd_oem_pktstruct ncsi_rsp_oem_pktstruct ncsi_rsp_oem_mlx_pktstruct ncsi_rsp_oem_bcm_pktstruct ncsi_rsp_oem_intel_pktstruct ncsi_rsp_gls_pktstruct ncsi_rsp_gvi_pktstruct ncsi_rsp_gc_pktstruct ncsi_rsp_gp_pktstruct ncsi_rsp_gcps_pktstruct ncsi_rsp_gns_pktstruct ncsi_rsp_gnpts_pktstruct ncsi_rsp_gps_pktstruct ncsi_rsp_gpuuid_pktstruct ncsi_rsp_gmcma_pktstruct ncsi_aen_lsc_pktstruct ncsi_aen_cr_pktstruct ncsi_aen_hncdsc_pkt
Annotated Snippet
struct ncsi_pkt_hdr {
unsigned char mc_id; /* Management controller ID */
unsigned char revision; /* NCSI version - 0x01 */
unsigned char reserved; /* Reserved */
unsigned char id; /* Packet sequence number */
unsigned char type; /* Packet type */
unsigned char channel; /* Network controller ID */
__be16 length; /* Payload length */
__be32 reserved1[2]; /* Reserved */
};
struct ncsi_cmd_pkt_hdr {
struct ncsi_pkt_hdr common; /* Common NCSI packet header */
};
struct ncsi_rsp_pkt_hdr {
struct ncsi_pkt_hdr common; /* Common NCSI packet header */
__be16 code; /* Response code */
__be16 reason; /* Response reason */
};
struct ncsi_aen_pkt_hdr {
struct ncsi_pkt_hdr common; /* Common NCSI packet header */
unsigned char reserved2[3]; /* Reserved */
unsigned char type; /* AEN packet type */
};
/* NCSI common command packet */
struct ncsi_cmd_pkt {
struct ncsi_cmd_pkt_hdr cmd; /* Command header */
__be32 checksum; /* Checksum */
unsigned char pad[26];
};
struct ncsi_rsp_pkt {
struct ncsi_rsp_pkt_hdr rsp; /* Response header */
__be32 checksum; /* Checksum */
unsigned char pad[22];
};
/* Select Package */
struct ncsi_cmd_sp_pkt {
struct ncsi_cmd_pkt_hdr cmd; /* Command header */
unsigned char reserved[3]; /* Reserved */
unsigned char hw_arbitration; /* HW arbitration */
__be32 checksum; /* Checksum */
unsigned char pad[22];
};
/* Disable Channel */
struct ncsi_cmd_dc_pkt {
struct ncsi_cmd_pkt_hdr cmd; /* Command header */
unsigned char reserved[3]; /* Reserved */
unsigned char ald; /* Allow link down */
__be32 checksum; /* Checksum */
unsigned char pad[22];
};
/* Reset Channel */
struct ncsi_cmd_rc_pkt {
struct ncsi_cmd_pkt_hdr cmd; /* Command header */
__be32 reserved; /* Reserved */
__be32 checksum; /* Checksum */
unsigned char pad[22];
};
/* AEN Enable */
struct ncsi_cmd_ae_pkt {
struct ncsi_cmd_pkt_hdr cmd; /* Command header */
unsigned char reserved[3]; /* Reserved */
unsigned char mc_id; /* MC ID */
__be32 mode; /* AEN working mode */
__be32 checksum; /* Checksum */
unsigned char pad[18];
};
/* Set Link */
struct ncsi_cmd_sl_pkt {
struct ncsi_cmd_pkt_hdr cmd; /* Command header */
__be32 mode; /* Link working mode */
__be32 oem_mode; /* OEM link mode */
__be32 checksum; /* Checksum */
unsigned char pad[18];
};
/* Set VLAN Filter */
struct ncsi_cmd_svf_pkt {
struct ncsi_cmd_pkt_hdr cmd; /* Command header */
__be16 reserved; /* Reserved */
__be16 vlan; /* VLAN ID */
Annotation
- Detected declarations: `struct ncsi_pkt_hdr`, `struct ncsi_cmd_pkt_hdr`, `struct ncsi_rsp_pkt_hdr`, `struct ncsi_aen_pkt_hdr`, `struct ncsi_cmd_pkt`, `struct ncsi_rsp_pkt`, `struct ncsi_cmd_sp_pkt`, `struct ncsi_cmd_dc_pkt`, `struct ncsi_cmd_rc_pkt`, `struct ncsi_cmd_ae_pkt`.
- Atlas domain: Networking Core / Sockets, Protocols, Packet Path, And Network Policy.
- 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.