[PATCH v2 7/7] nvmet-tcp: Support KeyUpdate

Simon Horman horms at kernel.org
Fri Sep 5 06:25:43 PDT 2025


On Fri, Sep 05, 2025 at 12:46:59PM +1000, alistair23 at gmail.com wrote:

...

> diff --git a/drivers/nvme/target/tcp.c b/drivers/nvme/target/tcp.c

...

>  static int nvmet_tcp_tls_record_ok(struct nvmet_tcp_queue *queue,
>  		struct msghdr *msg, char *cbuf)
>  {
>  	struct cmsghdr *cmsg = (struct cmsghdr *)cbuf;
> -	u8 ctype, level, description;
> +	u8 ctype, htype, level, description;

nit: htype is unused in this function

Flagged by W=1 builds.

>  	int ret = 0;
>  
>  	ctype = tls_get_record_type(queue->sock->sk, cmsg);

...



More information about the Linux-nvme mailing list