linux/drivers/nvme/target
Christoph Hellwig ab46d8d40f nvmet: add helpers to set the result field for connect commands
The code to set the result field for the admin and I/O connect commands
is not only verbose and duplicated, but also violates the aliasing
rules as it accesses both the u16 and u32 members in the union.

Add a little helper to sort all that out.

Fixes: db1312dd95 ("nvmet: implement basic In-Band Authentication")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Hannes Reinecke <hare@suse.de>
2022-09-27 09:22:09 +02:00
..
admin-cmd.c nvme: move from strlcpy with unused retval to strscpy 2022-09-19 11:33:53 +02:00
auth.c nvmet-auth: fix a couple of spelling mistakes 2022-08-02 17:22:51 -06:00
configfs.c nvmet: expose max queues to configfs 2022-09-19 17:55:16 +02:00
core.c nvmet-auth: don't try to cancel a non-initialized work_struct 2022-09-27 09:22:09 +02:00
discovery.c nvme: move from strlcpy with unused retval to strscpy 2022-09-19 11:33:53 +02:00
fabrics-cmd-auth.c nvmet-auth: don't try to cancel a non-initialized work_struct 2022-09-27 09:22:09 +02:00
fabrics-cmd.c nvmet: add helpers to set the result field for connect commands 2022-09-27 09:22:09 +02:00
fc.c nvmet: use a private workqueue instead of the system workqueue 2022-03-29 09:29:04 +02:00
fcloop.c nvmet: use a private workqueue instead of the system workqueue 2022-03-29 09:29:04 +02:00
io-cmd-bdev.c nvmet: avoid unnecessary flush bio 2022-09-19 11:33:54 +02:00
io-cmd-file.c keep iocb_flags() result cached in struct file 2022-06-10 16:10:23 -04:00
Kconfig nvmet-auth: select the intended CRYPTO_DH_RFC7919_GROUPS 2022-08-02 17:22:51 -06:00
loop.c nvme-loop: use nvme core helpers to cancel all requests in a tagset 2022-08-02 17:14:47 -06:00
Makefile nvmet: implement basic In-Band Authentication 2022-08-02 17:14:49 -06:00
nvmet.h nvmet-auth: don't try to cancel a non-initialized work_struct 2022-09-27 09:22:09 +02:00
passthru.c nvme: handle effects after freeing the request 2022-09-27 09:15:56 +02:00
rdma.c RDMA/core: introduce ib_dma_pci_p2p_dma_supported() 2022-07-26 07:28:07 -04:00
tcp.c nvmet-tcp: remove nvmet_tcp_finish_cmd 2022-09-27 09:22:08 +02:00
trace.c nvmet: add set feature tracing support 2021-08-16 14:42:23 +02:00
trace.h nvmet: use min of device_path and disk len 2021-02-10 16:38:05 +01:00
zns.c nvme/target: Use the new blk_opf_t type 2022-07-14 12:14:32 -06:00