diff options
author | 2022-09-20 16:09:57 +0200 | |
---|---|---|
committer | 2022-09-27 09:22:09 +0200 | |
commit | ab46d8d40f01487bf637428c4767f0e75ac2a95a (patch) | |
tree | a21853a733f4ef42fea447c2b56253e2ca9cb284 /scripts/generate_rust_analyzer.py | |
parent | nvme: improve the NVME_CONNECT_AUTHREQ* definitions (diff) | |
download | wireguard-linux-ab46d8d40f01487bf637428c4767f0e75ac2a95a.tar.xz wireguard-linux-ab46d8d40f01487bf637428c4767f0e75ac2a95a.zip |
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: db1312dd9548 ("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>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions