Crate mctp

Source
Expand description

§Management Component Transport Protocol (MCTP)

This crate provides common types and traits for MCTP. Transport implementations can implement ReqChannel and Listener to communicate with a remote endpoint.

Structs§

Eid
MCTP endpoint ID
MsgIC
MCTP Message Integrity Check field.
MsgType
MCTP Message type field
TagValue
MCTP Message Tag

Enums§

Error
An error type for MCTP
Tag
Identifies a tag and allocation method

Constants§

MCTP_ADDR_ANY
Special EID value: broadcast and/or match any.
MCTP_ADDR_NULL
Special EID value: NULL
MCTP_HEADER_VERSION_1
MCTP Version 1
MCTP_MIN_MTU
MCTP minimum payload MTU
MCTP_SEQ_MASK
Mask for MCTP Packet Sequence Number
MCTP_TAG_MAX
Maximum MCTP Message Tag number
MCTP_TAG_OWNER
Tag Owner (TO) field; generally set in a request, clear in a response.
MCTP_TYPE_CONTROL
MCTP Control Protocol
MCTP_TYPE_CXL_CCI
CXL Component Command Interface
MCTP_TYPE_CXL_FM
CXL Fabric Manger
MCTP_TYPE_ETHERNET
Ethernet over MCTP
MCTP_TYPE_NCSI
NC-SI over MCTP
MCTP_TYPE_NVME
NVMe over MCTP
MCTP_TYPE_PCIE_MI
PCIe Management Interface
MCTP_TYPE_PLDM
PLDM
MCTP_TYPE_SPDM
SPDM
MCTP_TYPE_SPDM_SECURED
Secured Messages using SPDM
MCTP_TYPE_VENDOR_IANA
Vendor defined, IANA ID
MCTP_TYPE_VENDOR_PCIE
Vendor defined, PCIe ID

Traits§

AsyncListener
Async equivalent of Listener
AsyncReqChannel
Async equivalent of ReqChannel
AsyncRespChannel
Async equivalent of RespChannel
Listener
A MCTP listener instance
ReqChannel
A trait for communicating with an MCTP peer.
RespChannel
A MCTP response channel

Functions§

decode_type_ic
Decode message type and IC bit
encode_type_ic
Encode message type and IC bit

Type Aliases§

Result
MCTP result type