On Wed, 2025-09-03 at 12:01 +0200, Klaus Jensen wrote: > On Sep 1 13:47, Wilfred Mallawa wrote: > > From: Wilfred Mallawa <wilfred.mall...@wdc.com> > > > > Adds the NVMe Admin Security Send/Receive command support with > > support > > for DMTFs SPDM. The transport binding for SPDM is defined in the > > DMTF DSP0286. > > > > Signed-off-by: Wilfred Mallawa <wilfred.mall...@wdc.com> > > --- > > > +/* From host to controller */ > > +static uint16_t nvme_security_send(NvmeCtrl *n, NvmeRequest *req) > > +{ > > + uint32_t dw10 = le32_to_cpu(req->cmd.cdw10); > > + uint8_t secp = (dw10 >> 24) & 0xff; > > + > > + switch (secp) { > > + case NVME_SEC_PROT_DMTF_SPDM: > > + return nvme_sec_prot_spdm_send(n, req); > > If spdm_socket is not set, I think this should be Invalid Field in > Command too, right? Same for receive. Yeah! it should be. will fixup in V4.
Thanks, Wilfred >