Skip to content

Commit bc9f23e

Browse files
committed
spdm: large-transfer: set chunk capability
In the flags field of a GET_CAPABILITIES request, ensure we indicate that large transfers are supported by setting the CHUNK_CAP bit [1]. [1] SPDM Spec 1.3: Table 13 Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
1 parent 2d75092 commit bc9f23e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/spdm/req-authenticate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ static int spdm_get_capabilities(struct spdm_state *spdm_state)
118118
rsp_sz = sizeof(*rsp);
119119
req->data_transfer_size = cpu_to_le32(spdm_state->transport_sz);
120120
req->max_spdm_msg_size = cpu_to_le32(UINT_MAX);
121+
req->flags = cpu_to_le32(req->flags | SPDM_CHUNK_CAP);
121122
}
122123

123124
rsp = spdm_state->transcript_end += req_sz;

0 commit comments

Comments
 (0)